Skip to content

Commit d6f5bcc

Browse files
committed
Detect ARM64 macs when downloading coursier launcher
1 parent 8aab8a3 commit d6f5bcc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

mill

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,12 @@ if [ "$(expr substr $(uname -s) 1 5 2>/dev/null)" == "Linux" ]; then
150150
fi
151151
cache_base="$HOME/.cache/coursier/v1"
152152
elif [ "$(uname)" == "Darwin" ]; then
153-
cs_url="https://github.com/coursier/coursier/releases/download/v$coursier_version/cs-x86_64-apple-darwin.gz"
153+
# TODO: remove once coursier-m1 and coursier mainline are merged
154+
if [ "$(uname -p)" == "arm" ]; then
155+
cs_url="https://github.com/VirtusLab/coursier-m1/releases/download/v$coursier_version/cs-aarch64-apple-darwin.gz"
156+
else
157+
cs_url="https://github.com/coursier/coursier/releases/download/v$coursier_version/cs-x86_64-apple-darwin.gz"
158+
fi
154159
cache_base="$HOME/Library/Caches/Coursier/v1"
155160
else
156161
# assuming Windows…

0 commit comments

Comments
 (0)