mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-23 00:36:10 +01:00
🎨 桌面端自动下载更新安装包 https://github.com/siyuan-note/siyuan/issues/5837
This commit is contained in:
parent
684e430fe1
commit
e4ddd99863
7 changed files with 18 additions and 11 deletions
|
|
@ -222,6 +222,7 @@ func InitConf() {
|
|||
Conf.System.WorkspaceDir = util.WorkspaceDir
|
||||
Conf.System.DataDir = util.DataDir
|
||||
Conf.System.Container = util.Container
|
||||
Conf.System.IsMicrosoftStore = util.ISMicrosoftStore
|
||||
Conf.System.OS = runtime.GOOS
|
||||
Conf.Newbie = util.IsNewbie
|
||||
|
||||
|
|
@ -375,7 +376,7 @@ func Close(force bool, execInstallPkg int) (exitCode int) {
|
|||
//})
|
||||
|
||||
newVerInstallPkgPath := ""
|
||||
if Conf.System.DownloadInstallPkg && 0 == execInstallPkg {
|
||||
if Conf.System.DownloadInstallPkg && !util.ISMicrosoftStore && 0 == execInstallPkg {
|
||||
newVerInstallPkgPath = GetNewVerInstallPkgPath()
|
||||
if "" != newVerInstallPkgPath {
|
||||
exitCode = 2
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ import (
|
|||
)
|
||||
|
||||
func GetNewVerInstallPkgPath() string {
|
||||
if !Conf.System.DownloadInstallPkg {
|
||||
if !Conf.System.DownloadInstallPkg || util.ISMicrosoftStore {
|
||||
return ""
|
||||
}
|
||||
|
||||
|
|
@ -58,7 +58,7 @@ var checkDownloadInstallPkgLock = sync.Mutex{}
|
|||
func checkDownloadInstallPkg() {
|
||||
defer logging.Recover()
|
||||
|
||||
if !Conf.System.DownloadInstallPkg {
|
||||
if !Conf.System.DownloadInstallPkg || util.ISMicrosoftStore {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue