refactor: updater tip

pull/67/head
xiaojunnuo 2021-01-10 22:30:55 +08:00
parent 6cd21a52b7
commit d2c50672f6
2 changed files with 16 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@docmirror/dev-sidecar-gui",
"version": "1.4.0",
"version": "1.3.0",
"private": false,
"license": "MPL-2.0",
"scripts": {

View File

@ -56,6 +56,21 @@ function install (app, api) {
if (updateParams.autoDownload !== false) {
app.$message.info('发现新版本,正在下载中...')
updateParams.downloading = true
api.shell.getSystemPlatform().then((platform) => {
if (platform === 'mac') {
app.$notification.open({
duration: 10,
message: 'Mac暂不支持自动升级',
description:
'请前往github或gitee项目主页下载新版本手动安装听说苹果对于Electron开发的应用审核不好过。。。。好吧我承认是因为没有钱买苹果开发者账号┓( ´∀` )┏',
onClick: () => {
}
})
}
})
api.update.downloadUpdate()
return
}