Browse Source

:art: Support Windows arm64 https://github.com/siyuan-note/siyuan/issues/11565

Daniel 1 year ago
parent
commit
415937f028
1 changed files with 5 additions and 1 deletions
  1. 5 1
      kernel/model/updater.go

+ 5 - 1
kernel/model/updater.go

@@ -121,7 +121,11 @@ func getUpdatePkg() (downloadPkgURLs []string, checksum string, err error) {
 
 	var suffix string
 	if gulu.OS.IsWindows() {
-		suffix = "win.exe"
+		if "arm64" == runtime.GOARCH {
+			suffix = "win-arm64.exe"
+		} else {
+			suffix = "win.exe"
+		}
 	} else if gulu.OS.IsDarwin() {
 		if "arm64" == runtime.GOARCH {
 			suffix = "mac-arm64.dmg"