mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-27 17:34:06 +01:00
🎨 桌面端自动下载更新安装包 https://github.com/siyuan-note/siyuan/issues/5837
This commit is contained in:
parent
395eeb6cdb
commit
920ead1e01
7 changed files with 8 additions and 8 deletions
|
|
@ -380,7 +380,7 @@ func Close(force bool, execInstallPkg int) (exitCode int) {
|
|||
if !skipNewVerInstallPkg() {
|
||||
newVerInstallPkgPath := ""
|
||||
if Conf.System.DownloadInstallPkg && !util.ISMicrosoftStore {
|
||||
newVerInstallPkgPath = GetNewVerInstallPkgPath()
|
||||
newVerInstallPkgPath = getNewVerInstallPkgPath()
|
||||
if "" != newVerInstallPkgPath && 0 == execInstallPkg {
|
||||
exitCode = 2
|
||||
return
|
||||
|
|
@ -388,7 +388,7 @@ func Close(force bool, execInstallPkg int) (exitCode int) {
|
|||
}
|
||||
|
||||
if 2 == execInstallPkg && "" != newVerInstallPkgPath { // 执行新版本安装
|
||||
execNewVerInstallPkg(newVerInstallPkgPath)
|
||||
go execNewVerInstallPkg(newVerInstallPkgPath)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -240,7 +240,7 @@ func AutoRefreshCheck() {
|
|||
|
||||
time.Sleep(3 * time.Minute)
|
||||
checkDownloadInstallPkg()
|
||||
if "" != GetNewVerInstallPkgPath() {
|
||||
if "" != getNewVerInstallPkgPath() {
|
||||
util.PushMsg(Conf.Language(61), 0)
|
||||
}
|
||||
}()
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ func execNewVerInstallPkg(newVerInstallPkgPath string) {
|
|||
logging.LogInfof("installed new version output [%s]", data)
|
||||
}
|
||||
|
||||
func GetNewVerInstallPkgPath() string {
|
||||
func getNewVerInstallPkgPath() string {
|
||||
if skipNewVerInstallPkg() {
|
||||
return ""
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue