From 9ab5657c4f6e2a97bb91c688f17e0a590be9e7dc Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Wed, 17 May 2023 09:41:42 +0800 Subject: [PATCH] :fire: Remove automatic update on Linux Fix https://github.com/siyuan-note/siyuan/issues/8275 --- kernel/model/updater.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/kernel/model/updater.go b/kernel/model/updater.go index 7c5767287..beea0b9de 100644 --- a/kernel/model/updater.go +++ b/kernel/model/updater.go @@ -45,9 +45,6 @@ func execNewVerInstallPkg(newVerInstallPkgPath string) { } 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) cmdErr := cmd.Start() @@ -133,8 +130,6 @@ func getUpdatePkg() (downloadPkgURLs []string, checksum string, err error) { } else { suffix = "mac.dmg" } - } else if gulu.OS.IsLinux() { - suffix = "linux.AppImage" } pkg := "siyuan-" + ver + "-" + suffix @@ -287,7 +282,7 @@ func isVersionUpToDate(releaseVer string) bool { } func skipNewVerInstallPkg() bool { - if !gulu.OS.IsWindows() && !gulu.OS.IsDarwin() && !gulu.OS.IsLinux() { + if !gulu.OS.IsWindows() && !gulu.OS.IsDarwin() { return true } if util.ISMicrosoftStore || util.ContainerStd != util.Container {