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:
Jacek Fedoryński
2025-01-06 17:48:17 +01:00
committed by Aaron Dodson
parent 2a36de148b
commit 44e783ccc6

View File

@@ -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`));
};