Skip to content

Commit

Permalink
feat:asyncFetchCheckYaklangSource:区分arm64和amd64
Browse files Browse the repository at this point in the history
  • Loading branch information
luoluoTH committed Jul 4, 2024
1 parent e517852 commit e6cc0aa
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions app/main/uiOperate/yaklangAndYakit.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,21 @@ module.exports = (win, getClient) => {
let url = ''
switch (process.platform) {
case "darwin":
url = `https://aliyun-oss.yaklang.com/yak/${version}/yak_darwin_amd64.sha256.txt`
if (process.arch === "arm64") {
url = `https://aliyun-oss.yaklang.com/yak/${version}/yak_darwin_arm64.sha256.txt`
} else {
url = `https://aliyun-oss.yaklang.com/yak/${version}/yak_darwin_amd64.sha256.txt`
}
break
case "win32":
url = `https://aliyun-oss.yaklang.com/yak/${version}/yak_windows_amd64.exe.sha256.txt`
break
case "linux":
url = `https://aliyun-oss.yaklang.com/yak/${version}/yak_linux_amd64.sha256.txt`
if (process.arch === "arm64") {
url = `https://aliyun-oss.yaklang.com/yak/${version}/yak_linux_arm64.sha256.txt`
} else {
url = `https://aliyun-oss.yaklang.com/yak/${version}/yak_linux_amd64.sha256.txt`
}
break
}
if (url === '') {
Expand Down

0 comments on commit e6cc0aa

Please sign in to comment.