mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-17 05:15:20 +03:00
Release tar.gz archives for Linux
This commit is contained in:
parent
cd3a3708e3
commit
6acbbc0d0c
1 changed files with 4 additions and 3 deletions
|
@ -311,9 +311,10 @@ function releaseLinux(bits) {
|
||||||
var dirname = 'linux' + bits;
|
var dirname = 'linux' + bits;
|
||||||
var pkg = require('./package.json');
|
var pkg = require('./package.json');
|
||||||
var src = path.join(appsDir, pkg.name, dirname);
|
var src = path.join(appsDir, pkg.name, dirname);
|
||||||
var output = fs.createWriteStream(path.join(appsDir, get_release_filename(dirname, 'zip')));
|
var output = fs.createWriteStream(path.join(appsDir, get_release_filename(dirname, 'tar.gz')));
|
||||||
var archive = archiver('zip', {
|
var archive = archiver('tar', {
|
||||||
zlib: { level: 9 }
|
zlib: { level: 9 },
|
||||||
|
gzip: true
|
||||||
});
|
});
|
||||||
archive.on('warning', function(err) { throw err; });
|
archive.on('warning', function(err) { throw err; });
|
||||||
archive.on('error', function(err) { throw err; });
|
archive.on('error', function(err) { throw err; });
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue