From fe3e31df12a66ddf20febd29b87c6ce2318e5977 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=93=86=E5=95=A6=E5=A5=BD=E6=A2=A6?= <530353222@qq.com> Date: Thu, 6 Apr 2023 10:11:10 +0800 Subject: [PATCH 1/2] del electron filtration --- package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index 6bfe926..98cb97b 100644 --- a/package.json +++ b/package.json @@ -43,8 +43,7 @@ "!frontend/", "!run/", "!logs/", - "!data/", - "!electron/" + "!data/" ], "extraResources": { "from": "./build/extraResources/", From 1a20a6af255a7e308e05fc9014b59d3c1aa045b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=93=86=E5=95=A6=E5=A5=BD=E6=A2=A6?= <530353222@qq.com> Date: Fri, 7 Apr 2023 19:07:06 +0800 Subject: [PATCH 2/2] del app.appQuit() --- electron/addon/autoUpdater/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/electron/addon/autoUpdater/index.js b/electron/addon/autoUpdater/index.js index f5fddd8..005e2ad 100644 --- a/electron/addon/autoUpdater/index.js +++ b/electron/addon/autoUpdater/index.js @@ -21,7 +21,7 @@ class AutoUpdaterAddon { create () { Log.info('[addon:autoUpdater] load'); - const app = this.app; + // const app = this.app; const cfg = Conf.getValue('addons.autoUpdater'); if ((is.windows() && cfg.windows) || (is.macOS() && cfg.macOS) @@ -106,7 +106,7 @@ class AutoUpdaterAddon { info.desc = '下载完成'; this.sendStatusToWindow(info); // quit and update - app.appQuit(); + // app.appQuit(); autoUpdater.quitAndInstall(); }); }