Skip to content

Commit

Permalink
Reduce distribution file size by 'zip' command with '-y' parameter
Browse files Browse the repository at this point in the history
The idea was found in electron's issue (electron/electron#2003 (comment)). Thanks.
  • Loading branch information
Naoki Sekiguchi committed Jul 2, 2016
1 parent eaae146 commit 8939ed5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gulpfile.js
Expand Up @@ -182,6 +182,14 @@ gulp.task('icon', (done) => {
done();
});
});
gulp.task('zip', (done) => {
exec('zip -r -y ./release/darwin/jsmetronome-darwin-x64/jsmetronome.zip ./release/darwin/jsmetronome-darwin-x64/jsmetronome.app', (err) => {
if (err !== null) {
console.error(err.message);
}
done();
});
});

gulp.task('pack', platformArchMatrix.map(function (platformArch) {
var taskName = 'pack:' + platformArch;
Expand Down

0 comments on commit 8939ed5

Please sign in to comment.