diff options
author | Pawel Spychalski (DzikuVx) <pspychalski@gmail.com> | 2019-02-14 11:22:48 +0300 |
---|---|---|
committer | Pawel Spychalski (DzikuVx) <pspychalski@gmail.com> | 2019-02-14 11:22:48 +0300 |
commit | 9382608bf6c7f2d8ffa7b2c175c6853cb7f35e36 (patch) | |
tree | b435181e0d23fc9fe95c8e4e13e45cfb51d96ee4 /gulpfile.js | |
parent | f248dfc71e892436deee6ad51b59f47c624a84b0 (diff) |
Win64 release target
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/gulpfile.js b/gulpfile.js index 7f6248a1..dc9314d2 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -151,7 +151,7 @@ function get_task_name(key) { } function getPlatforms() { - var defaultPlatforms = ['win32', 'osx64', 'linux32', 'linux64']; + var defaultPlatforms = ['win32', 'win64', 'osx64', 'linux32', 'linux64']; var argv = minimist(process.argv.slice(2)); if (argv.platform) { if (defaultPlatforms.indexOf(argv.platform) < 0) { @@ -259,6 +259,20 @@ gulp.task('release-win32', function() { return archive.finalize(); }); +gulp.task('release-win64', function() { + var pkg = require('./package.json'); + var src = path.join(appsDir, pkg.name, 'win64'); + var output = fs.createWriteStream(path.join(appsDir, get_release_filename('win64', 'zip'))); + var archive = archiver('zip', { + zlib: { level: 9 } + }); + archive.on('warning', function(err) { throw err; }); + archive.on('error', function(err) { throw err; }); + archive.pipe(output); + archive.directory(src, 'INAV Configurator'); + return archive.finalize(); +}); + gulp.task('release-osx64', function() { var pkg = require('./package.json'); var src = path.join(appsDir, pkg.name, 'osx64', pkg.name + '.app'); |