Update to electron-packager 13.0.x

This commit is contained in:
Ben Gotow 2018-12-20 12:12:40 -07:00
parent edec4e37f8
commit b167b9cdcd
4 changed files with 506 additions and 288 deletions

View file

@ -254,14 +254,15 @@ module.exports = grunt => {
resolveRealSymlinkPaths(grunt.config('appDir'));
packager(grunt.config.get('packager'), (err, appPaths) => {
clearInterval(ongoing);
if (err) {
packager(grunt.config.get('packager'))
.catch(err => {
grunt.fail.fatal(err);
return done(err);
}
console.log(`---> Done Successfully. Built into: ${appPaths}`);
return done();
});
})
.then(appPaths => {
clearInterval(ongoing);
console.log(`---> Done Successfully. Built into: ${appPaths}`);
return done();
});
});
};

View file

@ -244,16 +244,18 @@ const start = () => {
options.configDirPath = configDirPath;
if (!options.devMode) {
const otherInstanceRunning = app.makeSingleInstance(commandLine => {
const otherOpts = parseCommandLine(commandLine);
global.application.handleLaunchOptions(otherOpts);
});
const gotTheLock = app.requestSingleInstanceLock();
if (otherInstanceRunning) {
if (!gotTheLock) {
console.log('Exiting because another instance of the app is already running.');
app.exit(1);
return;
}
app.on('second-instance', (event, commandLine, workingDirectory) => {
const otherOpts = parseCommandLine(commandLine);
global.application.handleLaunchOptions(otherOpts);
});
}
setupCompileCache(configDirPath);

765
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -22,7 +22,7 @@
"devtron": "^1.4.0",
"electron": "4.0.0-beta.11",
"electron-installer-dmg": "0.2.x",
"electron-packager": "8.7.x",
"electron-packager": "13.0.x",
"electron-winstaller": "2.x.x",
"eslint": "^4.7.2",
"eslint-config-prettier": "^2.9.0",