diff --git a/ElectronNET.Host/main.js b/ElectronNET.Host/main.js index 29041b0..2826576 100644 --- a/ElectronNET.Host/main.js +++ b/ElectronNET.Host/main.js @@ -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) {