Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Updater

Liang Ding8166eaf87974
diff --git a/kernel/model/updater.go b/kernel/model/updater.go
index f8cdc38f99..3a13a8643e 100644
--- a/kernel/model/updater.go
+++ b/kernel/model/updater.go
@@ -133,6 +133,10 @@ func getUpdatePkg() (downloadPkgURL, checksum string, err error) {
}
func downloadInstallPkg(pkgURL, checksum string) {
+ if "" == pkgURL || "" == checksum {
+ return
+ }
+
pkg := path.Base(pkgURL)
savePath := filepath.Join(util.TempDir, "install", pkg)
if gulu.File.IsExist(savePath) {