From a74345cb426bcd2ae51ebd7ec01a612a19b344f2 Mon Sep 17 00:00:00 2001 From: purocean Date: Mon, 5 Jul 2021 17:57:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=20macOS=20=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/updater.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/updater.ts b/src/main/updater.ts index 3bff2d84..c18ece58 100644 --- a/src/main/updater.ts +++ b/src/main/updater.ts @@ -134,7 +134,9 @@ export function autoCheckForUpdates () { app.whenReady().then(() => { init(() => { // 立即升级,退出程序 - app.exit(0) + setTimeout(() => { + app.exit(0) + }, process.platform === 'darwin' ? 3500 : 0) }) setTimeout(() => {