From 83684ec4d8691029ab7949d9d8aea2cbf9b3d44e Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Sat, 3 Apr 2021 18:38:57 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=A2=9E=E9=87=8F=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/gui/src/bridge/update/backend.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gui/src/bridge/update/backend.js b/packages/gui/src/bridge/update/backend.js index 9a97ccb..9b65600 100644 --- a/packages/gui/src/bridge/update/backend.js +++ b/packages/gui/src/bridge/update/backend.js @@ -89,11 +89,11 @@ function updateHandle (app, win, beforeQuit, quit, log) { const appPath = appPathUtil.getAppRootPath() const target = path.join(appPath, 'resources') log.info('开始解压缩,安装升级包', partPackagePath, target) + app.relaunch() // 解压缩 var zip = new AdmZip(partPackagePath) zip.extractAllTo(target, true) log.info('安装完成,重启app') - app.relaunch() app.exit(0) }