mirror of
https://github.com/google/blockly.git
synced 2026-01-04 15:40:08 +01:00
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.
This commit is contained in:
@@ -159,7 +159,7 @@ module.exports = require('./${bundle}');
|
||||
* This task copies all the media/* files into the release directory.
|
||||
*/
|
||||
function packageMedia() {
|
||||
return gulp.src('media/*')
|
||||
return gulp.src('media/*', {encoding: false})
|
||||
.pipe(gulp.dest(`${RELEASE_DIR}/media`));
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user