mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-10 17:48:50 +08:00
Update to electron-packager 13.0.x
This commit is contained in:
parent
edec4e37f8
commit
b167b9cdcd
4 changed files with 506 additions and 288 deletions
|
@ -254,14 +254,15 @@ module.exports = grunt => {
|
||||||
|
|
||||||
resolveRealSymlinkPaths(grunt.config('appDir'));
|
resolveRealSymlinkPaths(grunt.config('appDir'));
|
||||||
|
|
||||||
packager(grunt.config.get('packager'), (err, appPaths) => {
|
packager(grunt.config.get('packager'))
|
||||||
clearInterval(ongoing);
|
.catch(err => {
|
||||||
if (err) {
|
|
||||||
grunt.fail.fatal(err);
|
grunt.fail.fatal(err);
|
||||||
return done(err);
|
return done(err);
|
||||||
}
|
})
|
||||||
console.log(`---> Done Successfully. Built into: ${appPaths}`);
|
.then(appPaths => {
|
||||||
return done();
|
clearInterval(ongoing);
|
||||||
});
|
console.log(`---> Done Successfully. Built into: ${appPaths}`);
|
||||||
|
return done();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
@ -244,16 +244,18 @@ const start = () => {
|
||||||
options.configDirPath = configDirPath;
|
options.configDirPath = configDirPath;
|
||||||
|
|
||||||
if (!options.devMode) {
|
if (!options.devMode) {
|
||||||
const otherInstanceRunning = app.makeSingleInstance(commandLine => {
|
const gotTheLock = app.requestSingleInstanceLock();
|
||||||
const otherOpts = parseCommandLine(commandLine);
|
|
||||||
global.application.handleLaunchOptions(otherOpts);
|
|
||||||
});
|
|
||||||
|
|
||||||
if (otherInstanceRunning) {
|
if (!gotTheLock) {
|
||||||
console.log('Exiting because another instance of the app is already running.');
|
console.log('Exiting because another instance of the app is already running.');
|
||||||
app.exit(1);
|
app.exit(1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
app.on('second-instance', (event, commandLine, workingDirectory) => {
|
||||||
|
const otherOpts = parseCommandLine(commandLine);
|
||||||
|
global.application.handleLaunchOptions(otherOpts);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
setupCompileCache(configDirPath);
|
setupCompileCache(configDirPath);
|
||||||
|
|
765
package-lock.json
generated
765
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -22,7 +22,7 @@
|
||||||
"devtron": "^1.4.0",
|
"devtron": "^1.4.0",
|
||||||
"electron": "4.0.0-beta.11",
|
"electron": "4.0.0-beta.11",
|
||||||
"electron-installer-dmg": "0.2.x",
|
"electron-installer-dmg": "0.2.x",
|
||||||
"electron-packager": "8.7.x",
|
"electron-packager": "13.0.x",
|
||||||
"electron-winstaller": "2.x.x",
|
"electron-winstaller": "2.x.x",
|
||||||
"eslint": "^4.7.2",
|
"eslint": "^4.7.2",
|
||||||
"eslint-config-prettier": "^2.9.0",
|
"eslint-config-prettier": "^2.9.0",
|
||||||
|
|
Loading…
Reference in a new issue