Created
December 10, 2022 09:56
-
-
Save antklim/8a70b668f2afb2f279d0c5fe4de74bd3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SuperCliTool < Formula | |
desc "Super CLI Tool Release" | |
homepage "https://github.com/user/super-cli-tool.git" | |
version "0.2.1" | |
on_macos do | |
on_arm do | |
url "https://github.com/user/super-cli-tool/releases/download/v0.2.1/super-cli-tool-darwin-arm64.tar.gz" | |
sha256 "c02e55f13d41067e114eede25441d066da994a5800be770388694d0b82967fc8" | |
def install | |
bin.install "super-cli-tool-darwin-arm64" => "super-cli-tool" | |
end | |
end | |
on_intel do | |
url "https://github.com/user/super-cli-tool/releases/download/v0.2.1/super-cli-tool-darwin-x86_64.tar.gz" | |
sha256 "608abd9240fd4042212ac0e7988244a356876c50f2f1db8f3fe9713a6cf6cad2" | |
def install | |
bin.install "super-cli-tool-darwin-x86_64" => "super-cli-tool" | |
end | |
end | |
end | |
on_linux do | |
on_intel do | |
url "https://github.com/user/super-cli-tool/releases/download/v0.2.1/super-cli-tool-linux-x86_64.tar.gz" | |
sha256 "bf83109d451b9783bbba2358939a7e13995ad3ab7bbbf6f5ce14499e4c2ebf99" | |
def install | |
bin.install "super-cli-tool-linux-x86_64" => "super-cli-tool" | |
end | |
end | |
end | |
test do | |
system "#{bin}/super-cli-tool" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment