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 updater on Windows
Daniel09f4954f969d
diff --git a/kernel/model/conf.go b/kernel/model/conf.goindex 8a4cb47196..faef73f070 100644--- a/kernel/model/conf.go+++ b/kernel/model/conf.go@@ -516,7 +516,7 @@ func Close(force bool, execInstallPkg int) (exitCode int) {util.PushMsg(Conf.Language(130), 1000*5)// 桌面端退出拉起更新安装时有时需要重启两次 https://github.com/siyuan-note/siyuan/issues/6544// 这里多等待一段时间,等待安装程序启动- time.Sleep(4 * time.Second)+ time.Sleep(3 * time.Second)}logging.LogInfof("exited kernel")closeSyncWebSocket()diff --git a/kernel/model/updater.go b/kernel/model/updater.goindex b370a589a5..f8eaa6827d 100644--- a/kernel/model/updater.go+++ b/kernel/model/updater.go@@ -41,7 +41,7 @@ func execNewVerInstallPkg(newVerInstallPkgPath string) {logging.LogInfof("installing the new version [%s]", newVerInstallPkgPath)var cmd *exec.Cmdif gulu.OS.IsWindows() {- cmd = exec.Command(newVerInstallPkgPath)+ cmd = exec.Command("cmd.exe", "/C", "start", newVerInstallPkgPath)} else if gulu.OS.IsDarwin() {exec.Command("chmod", "+x", newVerInstallPkgPath).CombinedOutput()cmd = exec.Command("open", newVerInstallPkgPath)