mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-11 03:40:05 +00:00
Adds a sibling Homebrew formula so users can opt into pre-releases with `brew install fabro-sh/tap/fabro-beta`. Pre-release tags (v*-*) update Formula/fabro-beta.rb in the tap; stable tags still only touch Formula/fabro.rb. The two formulae declare conflicts_with each other since they both install the fabro binary. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
34 lines
969 B
Text
34 lines
969 B
Text
class FabroBeta < Formula
|
|
desc "Unified CLI for the Fabro AI framework (pre-release channel)"
|
|
homepage "https://fabro.sh"
|
|
license "MIT"
|
|
version "{{VERSION}}"
|
|
|
|
conflicts_with "fabro", because: "both install the fabro binary"
|
|
|
|
if OS.mac?
|
|
if Hardware::CPU.arm?
|
|
url "https://github.com/fabro-sh/fabro/releases/download/v{{VERSION}}/fabro-aarch64-apple-darwin.tar.gz"
|
|
sha256 "{{SHA_AARCH64_DARWIN}}"
|
|
end
|
|
end
|
|
|
|
if OS.linux?
|
|
if Hardware::CPU.intel?
|
|
url "https://github.com/fabro-sh/fabro/releases/download/v{{VERSION}}/fabro-x86_64-unknown-linux-gnu.tar.gz"
|
|
sha256 "{{SHA_X86_64_LINUX}}"
|
|
end
|
|
if Hardware::CPU.arm?
|
|
url "https://github.com/fabro-sh/fabro/releases/download/v{{VERSION}}/fabro-aarch64-unknown-linux-gnu.tar.gz"
|
|
sha256 "{{SHA_AARCH64_LINUX}}"
|
|
end
|
|
end
|
|
|
|
def install
|
|
bin.install "fabro"
|
|
end
|
|
|
|
test do
|
|
assert_match version.to_s, shell_output("#{bin}/fabro --version")
|
|
end
|
|
end
|