Skip to content

Commit

Permalink
Merge pull request #14 from danberindei/patch-1
Browse files Browse the repository at this point in the history
Add support for Asahi Linux
  • Loading branch information
gr1m0h authored Mar 3, 2024
2 parents f1c185f + f4382b8 commit bfc9331
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions bin/download
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,25 @@ set -e
[ -n "$ASDF_INSTALL_VERSION" ] || (echo 'Missing ASDF_INSTALL_VERSION' >&2 && exit 1)
[ -n "$ASDF_DOWNLOAD_PATH" ] || (echo 'Missing ASDF_DOWNLOAD_PATH' >&2 && exit 1)

case "$(uname -m)" in
"x86_64")
ARCH="x86_64"
;;
"arm64"|"aarch64")
ARCH="arm64"
;;
esac

case "$(uname -s)" in
"Darwin")
DOWNLOAD_URL="https://github.com/nektos/act/releases/download/v${ASDF_INSTALL_VERSION}/act_Darwin_x86_64.tar.gz"
OS="Darwin"
;;
"Linux")
DOWNLOAD_URL="https://github.com/nektos/act/releases/download/v${ASDF_INSTALL_VERSION}/act_Linux_x86_64.tar.gz"
OS="Linux"
;;
esac

DOWNLOAD_URL="https://github.com/nektos/act/releases/download/v${ASDF_INSTALL_VERSION}/act_${OS}_${ARCH}.tar.gz"


curl -fL -o "${ASDF_DOWNLOAD_PATH}/act.tar.gz" "${DOWNLOAD_URL}"

0 comments on commit bfc9331

Please sign in to comment.