refactor: 增量更新

pull/67/head
xiaojunnuo 2021-04-03 18:38:57 +08:00
parent 54c57535cd
commit 83684ec4d8
1 changed files with 1 additions and 1 deletions

View File

@ -89,11 +89,11 @@ function updateHandle (app, win, beforeQuit, quit, log) {
const appPath = appPathUtil.getAppRootPath() const appPath = appPathUtil.getAppRootPath()
const target = path.join(appPath, 'resources') const target = path.join(appPath, 'resources')
log.info('开始解压缩,安装升级包', partPackagePath, target) log.info('开始解压缩,安装升级包', partPackagePath, target)
app.relaunch()
// 解压缩 // 解压缩
var zip = new AdmZip(partPackagePath) var zip = new AdmZip(partPackagePath)
zip.extractAllTo(target, true) zip.extractAllTo(target, true)
log.info('安装完成重启app') log.info('安装完成重启app')
app.relaunch()
app.exit(0) app.exit(0)
} }