Skip to content

Commit 8572a73

Browse files
committed
Disable compression for linux
1 parent 9927aa2 commit 8572a73

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

gulpfile.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,11 +706,17 @@ function release_zip(arch, appDirectory) {
706706

707707
// Compress files from srcPath, using basePath, to outputFile in the RELEASE_DIR
708708
function compressFiles(srcPath, basePath, outputFile, zipFolder) {
709+
710+
// Ubuntu introduces ZST compression not included in Debian. For now we disable compression for linux as workaround.
711+
const options = {
712+
compressFiles: basePath.includes("linux") ? false : true,
713+
};
714+
709715
return gulp.src(srcPath, { base: basePath })
710716
.pipe(rename(function(actualPath) {
711717
actualPath.dirname = path.join(zipFolder, actualPath.dirname);
712718
}))
713-
.pipe(zip(outputFile))
719+
.pipe(zip(outputFile, options))
714720
.pipe(gulp.dest(RELEASE_DIR));
715721
}
716722

0 commit comments

Comments
 (0)