Skip to content

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

:bug: Linux 桌面端自动更新未赋予可执行权限 Fix https://github.com/siyuan-note/siyuan/issues/6342

Liang Ding8d1fced3922d
diff --git a/kernel/model/updater.go b/kernel/model/updater.go
index 0ba434d089..f41c6590c4 100644
--- a/kernel/model/updater.go
+++ b/kernel/model/updater.go
@@ -43,8 +43,10 @@ func execNewVerInstallPkg(newVerInstallPkgPath string) {
if gulu.OS.IsWindows() {
cmd = exec.Command(newVerInstallPkgPath)
} else if gulu.OS.IsDarwin() {
+ exec.Command("chmod", "+x", newVerInstallPkgPath).CombinedOutput()
cmd = exec.Command("open", newVerInstallPkgPath)
} else if gulu.OS.IsLinux() {
+ exec.Command("chmod", "+x", newVerInstallPkgPath).CombinedOutput()
cmd = exec.Command("sh", "-c", newVerInstallPkgPath)
}
gulu.CmdAttr(cmd)