Skip to content
Permalink
Browse files

refactor(packager): upgrade to Electron Packager 8.4.0 (with quiet op…

…tion)
  • Loading branch information
malept committed Dec 9, 2016
1 parent 218518e commit 9ab19b5f749e5784ffd0238d510f276e412ecaf1
Showing with 2 additions and 5 deletions.
  1. +1 −1 package.json
  2. +1 −4 src/electron-forge-package.js
@@ -59,7 +59,7 @@
"commander": "^2.9.0",
"debug": "^2.3.3",
"electron-installer-dmg": "^0.1.2",
"electron-packager": "^8.3.0",
"electron-packager": "^8.4.0",
"electron-winstaller": "^2.5.0",
"fs-promise": "^0.5.0",
"inquirer": "^1.2.1",
@@ -64,12 +64,9 @@ const main = async () => {
});
const userDefinedAsarPrefs = packageOpts.asar;
packageOpts.asar = false;
packageOpts.quiet = true;

// Prevent electron-packager spitting logs out
const log = console.error;
console.error = () => {};
const packageDirs = await pify(packager)(packageOpts);
console.error = log;

packagerSpinner.succeed();

0 comments on commit 9ab19b5

Please sign in to comment.
You can’t perform that action at this time.