This commit is contained in:
rafael-aero
2021-11-05 11:01:33 +01:00

View File

@@ -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) {