Skip to content

Commit

Permalink
Add a Linux arm64 case for coursier download
Browse files Browse the repository at this point in the history
  • Loading branch information
Gedochao committed Jan 24, 2025
1 parent 45d91f9 commit 994934f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions project/settings.sc
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def fromPath(name: String): String =
def cs: T[String] = T.persistent {

val arch = sys.props.getOrElse("os.arch", "").toLowerCase(Locale.ROOT)
println(s"arch: $arch")
val ext = if (Properties.isWin) ".exe" else ""
val csVersion = if (arch == "aarch64" && Properties.isMac) buildCsM1Version else buildCsVersion
val dest = T.dest / s"cs-$csVersion$ext"
Expand All @@ -79,6 +80,12 @@ def cs: T[String] = T.persistent {
s"https://github.com/coursier/coursier/releases/download/v$csVersion/cs-x86_64-pc-linux.gz"
)
else None
case "arm64" =>
if (Properties.isLinux)
Some(
s"https://github.com/VirtusLab/coursier-m1/releases/download/v$csVersion/cs-aarch64-pc-linux.gz"
)
else None
case "aarch64" =>
if (Properties.isLinux)
Some(
Expand Down

0 comments on commit 994934f

Please sign in to comment.