mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-04 20:13:11 +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,12 +254,13 @@ 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);
|
||||
}
|
||||
})
|
||||
.then(appPaths => {
|
||||
clearInterval(ongoing);
|
||||
console.log(`---> Done Successfully. Built into: ${appPaths}`);
|
||||
return done();
|
||||
});
|
||||
|
|
|
@ -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);
|
||||
|
|
757
package-lock.json
generated
757
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue