Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Commit

Permalink
Upgrade to electron-packager 13.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
brrd committed Feb 18, 2019
1 parent e99a2bf commit a8fcb64
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
},
"devDependencies": {
"commander": "2.9.0",
"electron-packager": "8.5.2",
"electron-packager": "13.0.1",
"electron-rebuild": "1.7.3",
"electron-winstaller": "2.5.2",
"pretty-ms": "2.1.0",
Expand Down
16 changes: 7 additions & 9 deletions scripts/packager.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,10 @@ function copyIconsAll (appPaths, callback) {
}

// Run packager
packager(options, function (err, appPaths) {
if (err) {
console.error (err);
} else {
copyIconsAll(appPaths, function () {
console.log("Packages were built in " + prettyMs(new Date().getTime() - startTime));
});
}
});
packager(options)
.then((appPaths) => {
copyIconsAll(appPaths, function () {
console.log("Packages were built in " + prettyMs(new Date().getTime() - startTime));
});
})
.catch(console.error);

0 comments on commit a8fcb64

Please sign in to comment.