Skip to content

Commit

Permalink
feat:mac 解压内置引擎区分arch
Browse files Browse the repository at this point in the history
  • Loading branch information
luoluoTH committed Jul 4, 2024
1 parent 4cca20a commit ff11987
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/main/handlers/upgradeUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,12 @@ module.exports = {
const extractedFile = (() => {
switch (os.platform()) {
case "darwin":
return "bins/yak_darwin_amd64"
switch (os.arch()) {
case "arm64":
return "bins/yak_darwin_arm64"
default:
return "bins/yak_darwin_amd64"
}
case "win32":
return "bins/yak_windows_amd64.exe"
case "linux":
Expand Down

0 comments on commit ff11987

Please sign in to comment.