Skip to content

Commit

Permalink
Update get_latest to handle macos 64-bit + arm builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn authored Mar 26, 2024
1 parent 4787eb4 commit d6b52fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion get_latest/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
} else if (queryParams['platform'] == "linux") {
downloadUrl += "linux-x64.AppImage";
} else if (queryParams['platform'] == "macos") {
downloadUrl += "macos.dmg"
downloadUrl += "x64-osx.dmg"
} else if (queryParams['platform'] == "macos-arm") {
downloadUrl += "arm64-osx.dmg "
}
if (json['assets'].find(asset => asset["browser_download_url"] === downloadUrl)) {
return downloadUrl;
Expand Down

0 comments on commit d6b52fd

Please sign in to comment.