From d661dceb8f7d018acef4ae3ac006c7a3c56205f9 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Thu, 4 Apr 2024 10:06:31 +0800 Subject: [PATCH] :art: Improve upgrade download URLs --- kernel/model/updater.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kernel/model/updater.go b/kernel/model/updater.go index 0c26a62b8..0fed81ee6 100644 --- a/kernel/model/updater.go +++ b/kernel/model/updater.go @@ -131,16 +131,19 @@ func getUpdatePkg() (downloadPkgURLs []string, checksum string, err error) { } pkg := "siyuan-" + ver + "-" + suffix - b3logURL := "https://release.liuyun.io/siyuan/" + pkg + b3logURL := "https://release.b3log.org/siyuan/" + pkg + liuyunURL := "https://release.liuyun.io/siyuan/" + pkg githubURL := "https://github.com/siyuan-note/siyuan/releases/download/v" + ver + "/" + pkg ghproxyURL := "https://mirror.ghproxy.com/" + githubURL if util.IsChinaCloud() { downloadPkgURLs = append(downloadPkgURLs, b3logURL) + downloadPkgURLs = append(downloadPkgURLs, liuyunURL) downloadPkgURLs = append(downloadPkgURLs, ghproxyURL) downloadPkgURLs = append(downloadPkgURLs, githubURL) } else { downloadPkgURLs = append(downloadPkgURLs, githubURL) downloadPkgURLs = append(downloadPkgURLs, b3logURL) + downloadPkgURLs = append(downloadPkgURLs, liuyunURL) } checksums := result["checksums"].(map[string]interface{})