File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22class Coursier < Formula
33 desc "Launcher for Coursier"
44 homepage "https://get-coursier.io"
5- url "https://github.com/coursier/coursier/releases/download/v2.1.25-M1/cs-x86_64-apple-darwin.gz"
6- version "2.1.25-M1"
7- sha256 "2486c4ded5f61027da19f6f0156b2f601998f71521ad31687f90b034b124c0ea"
5+ version "2.1.24"
6+ on_intel do
7+ url "https://github.com/coursier/coursier/releases/download/v2.1.24/cs-x86_64-apple-darwin.gz"
8+ sha256 "33913cd6b61658035d9e6fe971e919cb0ef1f659aa7bff7deeded963a2d36385"
9+ end
10+ on_arm do
11+ url "https://github.com/coursier/coursier/releases/download/v2.1.24/cs-aarch64-apple-darwin.gz"
12+ sha256 "53a5728c2016118c8296fa7d5678ddfe122e22dc6c36deb554d771b3b9295b4f"
13+ end
814
915 option "without-shell-completions" , "Disable shell completion installation"
1016
1117 # https://stackoverflow.com/questions/10665072/homebrew-formula-download-two-url-packages/26744954#26744954
1218 resource "jar-launcher" do
13- url "https://github.com/coursier/coursier/releases/download/v2.1.25-M1 /coursier"
14- sha256 "bef250dd13dba360ddd794e70b71f1ee511e89116e7392ec753786a72aff0aae "
19+ url "https://github.com/coursier/coursier/releases/download/v2.1.24 /coursier"
20+ sha256 "7aa975f12469726d6bb87852107afe0b8d6f3c82b12a49ef43cc6647c4e057ca "
1521 end
1622
1723 depends_on "openjdk"
1824
1925 def install
20- bin . install "cs-x86_64-apple-darwin" => "cs"
26+ on_intel do
27+ bin . install "cs-x86_64-apple-darwin" => "cs"
28+ end
29+ on_arm do
30+ bin . install "cs-aarch64-apple-darwin" => "cs"
31+ end
2132 resource ( "jar-launcher" ) . stage { bin . install "coursier" }
2233
2334 unless build . without? "shell-completions"
You can’t perform that action at this time.
0 commit comments