mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-09-22 15:04:47 +00:00
Merge branch 'master' of https://github.com/theolivenbaum/Electron.NET
This commit is contained in:
@@ -404,7 +404,7 @@ function startAspCoreBackend(electronPort) {
|
||||
console.log(`Will quit Electron, as exit code != 0 (got ${code})`);
|
||||
app.exit(code);
|
||||
}
|
||||
else if (os.platform() === 'darwin' && ignoreApiProcessClosed) {
|
||||
else if (os.platform() === 'darwin') {
|
||||
//There is a bug on the updater on macOS never quiting and starting the update process
|
||||
//We give Squirrel.Mac enough time to access the update file, and then just force-exit here
|
||||
setTimeout(() => app.exit(0), 10_000);
|
||||
@@ -463,6 +463,11 @@ function startAspCoreBackendWithWatch(electronPort) {
|
||||
console.log(`Will quit Electron, as exit code != 0 (got ${code})`);
|
||||
app.exit(code);
|
||||
}
|
||||
else if (os.platform() === 'darwin') {
|
||||
//There is a bug on the updater on macOS never quiting and starting the update process
|
||||
//We give Squirrel.Mac enough time to access the update file, and then just force-exit here
|
||||
setTimeout(() => app.exit(0), 10_000);
|
||||
}
|
||||
});
|
||||
|
||||
if (detachedProcess) {
|
||||
|
||||
Reference in New Issue
Block a user