Skip to content

Commit

Permalink
🔥 Remove automatic update on Linux Fix #8275
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed May 17, 2023
1 parent c336a4d commit 9ab5657
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions kernel/model/updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 9ab5657

Please sign in to comment.