gulp package makes packages only for current platform

This commit is contained in:
Yuya Ochiai 2015-12-11 21:40:25 +09:00
parent af7d859e39
commit 4559811bf4
3 changed files with 7 additions and 2 deletions

View file

@ -52,8 +52,9 @@ $ npm install -g gulp (Or, use node_module/gulp/bin/gulp.js
You can package this app with following commands. Packages will be created in `release` directory.
```
$ gulp package (for your platform)
$ gulp package:windows (Requires Windows or Wine)
$ gulp package:osx (Requires OS X or Linux)
$ gulp package:linux
$ gulp package (Packages for all platform)
$ gulp package:all (Packages for all platform)
```

View file

@ -2,4 +2,4 @@
# This script should be executed in docker container.
set -ex
cd electron-mattermost
./node_modules/gulp/bin/gulp.js package
./node_modules/gulp/bin/gulp.js package:all

View file

@ -68,6 +68,10 @@ function makePackage(platform, arch) {
};
gulp.task('package', ['sync-meta'], function() {
makePackage(process.platform, 'all');
});
gulp.task('package:all', ['sync-meta'], function() {
makePackage('all', 'all');
});