Browse Source

:fire: Remove automatic update on Linux Fix https://github.com/siyuan-note/siyuan/issues/8275

Liang Ding 2 years ago
parent
commit
9ab5657c4f
1 changed files with 1 additions and 6 deletions
  1. 1 6
      kernel/model/updater.go

+ 1 - 6
kernel/model/updater.go

@@ -45,9 +45,6 @@ func execNewVerInstallPkg(newVerInstallPkgPath string) {
 	} else if gulu.OS.IsDarwin() {
 	} else if gulu.OS.IsDarwin() {
 		exec.Command("chmod", "+x", newVerInstallPkgPath).CombinedOutput()
 		exec.Command("chmod", "+x", newVerInstallPkgPath).CombinedOutput()
 		cmd = exec.Command("open", newVerInstallPkgPath)
 		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)
 	gulu.CmdAttr(cmd)
 	cmdErr := cmd.Start()
 	cmdErr := cmd.Start()
@@ -133,8 +130,6 @@ func getUpdatePkg() (downloadPkgURLs []string, checksum string, err error) {
 		} else {
 		} else {
 			suffix = "mac.dmg"
 			suffix = "mac.dmg"
 		}
 		}
-	} else if gulu.OS.IsLinux() {
-		suffix = "linux.AppImage"
 	}
 	}
 	pkg := "siyuan-" + ver + "-" + suffix
 	pkg := "siyuan-" + ver + "-" + suffix
 
 
@@ -287,7 +282,7 @@ func isVersionUpToDate(releaseVer string) bool {
 }
 }
 
 
 func skipNewVerInstallPkg() bool {
 func skipNewVerInstallPkg() bool {
-	if !gulu.OS.IsWindows() && !gulu.OS.IsDarwin() && !gulu.OS.IsLinux() {
+	if !gulu.OS.IsWindows() && !gulu.OS.IsDarwin() {
 		return true
 		return true
 	}
 	}
 	if util.ISMicrosoftStore || util.ContainerStd != util.Container {
 	if util.ISMicrosoftStore || util.ContainerStd != util.Container {