From a12a7e4287d6774dc9b6c8b1330e3c81f494080a Mon Sep 17 00:00:00 2001 From: theolivenbaum Date: Wed, 3 Nov 2021 07:51:59 +0100 Subject: [PATCH] Update main.js --- ElectronNET.Host/main.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) {