mirror of
https://github.com/google/blockly.git
synced 2025-12-15 13:50: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.
(cherry picked from commit dd6be31a8e)
This commit is contained in:
committed by
Aaron Dodson
parent
2a36de148b
commit
44e783ccc6
@@ -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