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 Ding038097132783
diff --git a/kernel/model/updater.go b/kernel/model/updater.goindex 03d833618b..73fe68ceb0 100644--- a/kernel/model/updater.go+++ b/kernel/model/updater.go@@ -24,6 +24,7 @@ import ("os""path/filepath""runtime"+ "sync""github.com/88250/gulu""github.com/imroc/req/v3"@@ -31,11 +32,20 @@ import ("github.com/siyuan-note/siyuan/kernel/util")+var checkDownloadInstallPkgLock = sync.Mutex{}+func checkDownloadInstallPkg() {if !Conf.System.DownloadInstallPkg {return}+ if util.IsMutexLocked(&checkDownloadInstallPkgLock) {+ return+ }++ checkDownloadInstallPkgLock.Lock()+ defer checkDownloadInstallPkgLock.Unlock()+result, err := util.GetRhyResult(false)if nil != err {return