Skip to content

Commit

Permalink
addressed pkg-linux and pkg-darwin #59
Browse files Browse the repository at this point in the history
  • Loading branch information
Casper Thule committed Feb 27, 2019
1 parent d79af76 commit 3c4ec61
Showing 1 changed file with 25 additions and 27 deletions.
52 changes: 25 additions & 27 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,21 +284,39 @@ gulp.task("pkg-darwin", function(done) {
.then(appPaths =>
{
console.log(appPaths);
done();
return;
})
.catch((e) => console.error(e));
});

gulp.task('package-darwin', gulp.series('clean','prep-pkg','pkg-darwin'));

gulp.task('package-linux', function (callback) {
runSequence(
'clean',
'prep-pkg',
'pkg-linux'
);
gulp.task("pkg-linux", function(callback) {
var options = {
dir: '.',
name: packageJSON.name+'-'+packageJSON.version,
platform: "linux",
arch: "ia32,x64",
overwrite:true,
prune:true,
out: 'pkg',
"app-version": packageJSON.version,
"version-string": {
"CompanyName": packageJSON.author.name,
"ProductName": packageJSON.productName
}
};
return packager(options).then(appPaths =>
{
console.log(appPaths);
return;
})
.catch((e) => console.error(e));
});


gulp.task('package-linux', gulp.series('clean','prep-pkg','pkg-linux'));

gulp.task('package-all', function (callback) {
runSequence(
'clean',
Expand Down Expand Up @@ -330,26 +348,6 @@ gulp.task("pkg-win32", function(callback) {
});
});

gulp.task("pkg-linux", function(callback) {
var options = {
dir: '.',
name: packageJSON.name+'-'+packageJSON.version,
platform: "linux",
arch: "ia32,x64",
overwrite:true,
prune:true,
out: 'pkg',
"app-version": packageJSON.version,
"version-string": {
"CompanyName": packageJSON.author.name,
"ProductName": packageJSON.productName
}
};
packager(options, function done (err, appPath) {
if(err) { return console.log(err); }
callback();
});
});

gulp.task('pkg-all', gulp.series('pkg-win32','pkg-darwin','pkg-linux'));

Expand Down

0 comments on commit 3c4ec61

Please sign in to comment.