Skip to content

Commit

Permalink
feat: support both x64 and arm64 for MacOS
Browse files Browse the repository at this point in the history
Closes #10
  • Loading branch information
barmac committed Apr 12, 2024
1 parent 0bdf7eb commit be8a165
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ file_name() {

case "$platform_name" in
mac)
echo $(mac_file_name $version)
echo "camunda-modeler-$version-mac.zip"
;;
linux)
Expand All @@ -51,6 +52,22 @@ file_name() {
esac
}

mac_file_name() {
local version="$1"

case "$(arch)" in
arm64)
echo "camunda-modeler-$version-mac-arm64.zip"
;;
x86_64)
echo "camunda-modeler-$version-mac-x64.zip"
;;
*)
fail "Unknown architecture: $(arch)"
;;
esac
}

executable() {
local platform_name="$(platform)"

Expand Down

0 comments on commit be8a165

Please sign in to comment.