fabro/installer/fabro.rb.template
Bryan Helmkamp 48edaa009d Add Homebrew tap auto-update to release workflow
Adds installer/fabro.rb.template and an update-homebrew job that
generates the formula from release artifacts and pushes it to
fabro-sh/homebrew-tap on each tagged release.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 15:38:58 -04:00

32 lines
875 B
Text

class Fabro < Formula
desc "Unified CLI for the Fabro AI framework"
homepage "https://fabro.sh"
license "MIT"
version "{{VERSION}}"
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