An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: 桌面端自动下载更新安装包 https://github.com/siyuan-note/siyuan/issues/5837
Liang Dingf33a534ad898
diff --git a/kernel/model/conf.go b/kernel/model/conf.goindex 51f2a11d1b..0063448382 100644--- a/kernel/model/conf.go+++ b/kernel/model/conf.go@@ -360,6 +360,8 @@ func Close(force bool, execInstallPkg int) (exitCode int) {exitLock.Lock()defer exitLock.Unlock()+ logging.LogInfof("exiting kernel [force=%v, execInstallPkg=%d]", force, execInstallPkg)+treenode.CloseBlockTree()util.PushMsg(Conf.Language(95), 10000*60)WaitForWritingFiles()@@ -378,18 +380,16 @@ func Close(force bool, execInstallPkg int) (exitCode int) {//})if !skipNewVerInstallPkg() {- newVerInstallPkgPath := ""- if Conf.System.DownloadInstallPkg && !util.ISMicrosoftStore {- newVerInstallPkgPath = getNewVerInstallPkgPath()- if "" != newVerInstallPkgPath && 0 == execInstallPkg {+ newVerInstallPkgPath := getNewVerInstallPkgPath()+ if "" != newVerInstallPkgPath {+ if 0 == execInstallPkg { // 新版本安装包已经准备就绪exitCode = 2+ logging.LogInfof("the new version install pkg is ready [%s], waiting for the user's next instruction", newVerInstallPkgPath)return+ } else if 2 == execInstallPkg { // 执行新版本安装+ go execNewVerInstallPkg(newVerInstallPkgPath)}}-- if 2 == execInstallPkg && "" != newVerInstallPkgPath { // 执行新版本安装- go execNewVerInstallPkg(newVerInstallPkgPath)- }}Conf.Close()