Skip to content

Commit 44e783c

Browse files
jfedor2gonfunko
authored andcommitted
fix: treat media files as binary while packaging them (#8706)
By default gulp's src() treats files as UTF-8, which corrupts binary files like MP3s when copying them for packaging. This makes it treat them as binary. (cherry picked from commit dd6be31)
1 parent 2a36de1 commit 44e783c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/gulpfiles/package_tasks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ module.exports = require('./${bundle}');
159159
* This task copies all the media/* files into the release directory.
160160
*/
161161
function packageMedia() {
162-
return gulp.src('media/*')
162+
return gulp.src('media/*', {encoding: false})
163163
.pipe(gulp.dest(`${RELEASE_DIR}/media`));
164164
};
165165

0 commit comments

Comments
 (0)