From 95f68f21792a015673ed3fcede65756ef2e919df Mon Sep 17 00:00:00 2001 From: gaoshuaixing <530353222@qq.com> Date: Fri, 26 Feb 2021 11:10:49 +0800 Subject: [PATCH] =?UTF-8?q?=20=E6=B7=BB=E5=8A=A0electorn-updater=20?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E9=A1=B9=EF=BC=8C=E8=A7=A3=E5=86=B3=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E6=9B=B4=E6=96=B0=E4=B8=AD=E9=9D=99=E9=BB=98=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E6=97=B6=EF=BC=8C=E9=97=AA=E9=80=80=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- electron/autoUpdater.js | 2 ++ package.json | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/electron/autoUpdater.js b/electron/autoUpdater.js index 96e6f2a..a861d3c 100644 --- a/electron/autoUpdater.js +++ b/electron/autoUpdater.js @@ -33,6 +33,8 @@ exports.setup = function () { autoUpdater.on('update-downloaded', (info) => { sendStatusToWindow('Update downloaded'); // quit and update + MAIN_WINDOW.destroy(); + app.quit(); autoUpdater.quitAndInstall(); }); diff --git a/package.json b/package.json index 82f1b73..0ad5e78 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "electron-egg", - "version": "1.8.0", + "version": "1.8.1", "description": "A fast, desktop software development framework", "main": "main.js", "softName": "electron-egg", @@ -112,6 +112,7 @@ "egg-view-ejs": "^2.0.0", "electron-is": "^3.0.0", "electron-log": "^4.2.2", + "electron-updater": "^4.3.5", "get-port": "^5.1.1", "glob": "^7.1.6", "lodash": "^4.17.11",