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: Improve upgrade download
Danielc6b48882e1f8
diff --git a/kernel/model/updater.go b/kernel/model/updater.goindex 522de5685a..e0dc03ef5f 100644--- a/kernel/model/updater.go+++ b/kernel/model/updater.go@@ -131,12 +131,16 @@ func getUpdatePkg() (downloadPkgURLs []string, checksum string, err error) {}pkg := "siyuan-" + ver + "-" + suffix- b3logURL := "https://release.b3log.org/siyuan/" + pkg- downloadPkgURLs = append(downloadPkgURLs, b3logURL)+ b3logURL := "https://release.liuyun.io/siyuan/" + pkggithubURL := "https://github.com/siyuan-note/siyuan/releases/download/v" + ver + "/" + pkgghproxyURL := "https://mirror.ghproxy.com/" + githubURL- downloadPkgURLs = append(downloadPkgURLs, ghproxyURL)- downloadPkgURLs = append(downloadPkgURLs, githubURL)+ if util.IsChinaCloud() {+ downloadPkgURLs = append(downloadPkgURLs, b3logURL)+ downloadPkgURLs = append(downloadPkgURLs, ghproxyURL)+ } else {+ downloadPkgURLs = append(downloadPkgURLs, githubURL)+ downloadPkgURLs = append(downloadPkgURLs, b3logURL)+ }checksums := result["checksums"].(map[string]interface{})checksum = checksums[pkg].(string)diff --git a/kernel/util/cloud.go b/kernel/util/cloud.goindex eb01867f8a..dbadb9b50b 100644--- a/kernel/util/cloud.go+++ b/kernel/util/cloud.go@@ -18,6 +18,10 @@ package utilvar CurrentCloudRegion = 0+func IsChinaCloud() bool {+ return 0 == CurrentCloudRegion+}+func GetCloudServer() string {if 0 == CurrentCloudRegion {return chinaServer