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 Ding4f2c218b3567
diff --git a/kernel/model/updater.go b/kernel/model/updater.goindex 249824f7f2..683a22c873 100644--- a/kernel/model/updater.go+++ b/kernel/model/updater.go@@ -95,7 +95,7 @@ func downloadInstallPkg(pkgURL, checksum, savePath string) {client := req.C()callback := func(info req.DownloadInfo) {- logging.LogInfof("downloading install package from [%s] %.2f%%", pkgURL, float64(info.DownloadedSize)/float64(info.Response.ContentLength)*100.0)+ logging.LogDebugf("downloading install package from [%s] %.2f%%", pkgURL, float64(info.DownloadedSize)/float64(info.Response.ContentLength)*100.0)}resp, err := client.R().SetOutputFile(savePath).SetDownloadCallback(callback).Get(pkgURL)if nil != err {@@ -106,11 +106,12 @@ func downloadInstallPkg(pkgURL, checksum, savePath string) {logging.LogErrorf("download install package [%s] failed [sc=%d]", pkgURL, resp.StatusCode)return}- logging.LogInfof("downloaded install package [%s] to [%s]", pkgURL, savePath)localChecksum, _ := sha256Hash(savePath)if checksum != localChecksum {logging.LogErrorf("verify checksum failed, download install package [%s] checksum [%s] not equal to downloaded [%s] checksum [%s]", pkgURL, checksum, savePath, localChecksum)+ return}+ logging.LogInfof("downloaded install package [%s] to [%s]", pkgURL, savePath)}func sha256Hash(filename string) (ret string, err error) {