Skip to content

Commit

Permalink
Repo: Enable runtime release downloads of M1 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
rdw-software committed Feb 4, 2024
1 parent 79d2ce9 commit 170d27e
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions download-runtime.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ GITHUB_REPOSITORY="evo-runtime"
REQUIRED_RUNTIME_VERSION="v0.0.18"

PLATFORM=$(uname)
ARCHITECTURE=$(uname -m)

echo "Required runtime version: $REQUIRED_RUNTIME_VERSION"

ASSET_FILE_NAME=""
EXECUTABLE_NAME=""
GITHUB_BASE_URL="https://github.com/$GITHUB_ORGANIZATION/$GITHUB_REPOSITORY/releases/download"

echo "Detected platform: $PLATFORM"
echo "Detected platform: $PLATFORM ($ARCHITECTURE)"

case $PLATFORM in
MINGW64_NT*|CYGWIN_NT*|MSYS_NT*)
Expand All @@ -24,7 +25,18 @@ case $PLATFORM in
EXECUTABLE_NAME="evo"
;;
Darwin)
ASSET_FILE_NAME="evo-macos-x64"
case $ARCHITECTURE in
arm64)
ASSET_FILE_NAME="evo-macos-M1"
;;
x86_64)
ASSET_FILE_NAME="evo-macos-x64"
;;
*)
echo "Unsupported architecture: $ARCHITECTURE"
exit 1
;;
esac
EXECUTABLE_NAME="evo"
;;
*)
Expand Down

0 comments on commit 170d27e

Please sign in to comment.