refactor: updater tip
parent
6cd21a52b7
commit
d2c50672f6
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@docmirror/dev-sidecar-gui",
|
||||
"version": "1.4.0",
|
||||
"version": "1.3.0",
|
||||
"private": false,
|
||||
"license": "MPL-2.0",
|
||||
"scripts": {
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue