Skip to content

Commit

Permalink
chore: Use Promise flavor of electron-packager (#1547)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregor Herdmann authored Jun 19, 2018
1 parent 3e4d62b commit df9f44c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,12 +303,9 @@ module.exports = function(grunt) {

grunt.registerMultiTask('electron', 'Package Electron apps', function() {
const done = this.async();
electronPackager(this.options(), error => {
if (error) {
return grunt.warn(error);
}
done();
});
electronPackager(this.options())
.then(done)
.catch(error => grunt.warn(error));
});

grunt.registerMultiTask('electronbuilder', 'Build Electron apps', function() {
Expand Down

0 comments on commit df9f44c

Please sign in to comment.