mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-24 16:55:22 +03:00
Win64 release target
This commit is contained in:
parent
f248dfc71e
commit
9382608bf6
1 changed files with 15 additions and 1 deletions
16
gulpfile.js
16
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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue