Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions coursier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@
class Coursier < Formula
desc "Launcher for Coursier"
homepage "https://get-coursier.io"
url "https://github.com/coursier/coursier/releases/download/v2.1.25-M2/cs-x86_64-apple-darwin.gz"
version "2.1.25-M2"
sha256 "0b51059d28338351e87374f34349d43a00dd445428ad09f0c5db1d8bc7c99997"
on_intel do
url "https://github.com/coursier/coursier/releases/download/v2.1.25-M2/cs-x86_64-apple-darwin.gz"
sha256 "0b51059d28338351e87374f34349d43a00dd445428ad09f0c5db1d8bc7c99997"
end
on_arm do
url "https://github.com/coursier/coursier/releases/download/v2.1.25-M2/cs-aarch64-apple-darwin.gz"
sha256 "008e10f23ecf59e7a7ee51eeff6be5c971199a95ccc35a8099a451009f6adf0b"
end

option "without-shell-completions", "Disable shell completion installation"

Expand All @@ -17,7 +23,12 @@ class Coursier < Formula
depends_on "openjdk"

def install
bin.install "cs-x86_64-apple-darwin" => "cs"
on_intel do
bin.install "cs-x86_64-apple-darwin" => "cs"
end
on_arm do
bin.install "cs-aarch64-apple-darwin" => "cs"
end
resource("jar-launcher").stage { bin.install "coursier" }

unless build.without? "shell-completions"
Expand Down
Loading