mirror of
https://github.com/hanzoai/homebrew-tap.git
synced 2026-10-30 14:59:28 +00:00
28 lines
795 B
Ruby
28 lines
795 B
Ruby
class HanzoDev < Formula
|
|
desc "Hanzo Dev - AI coding assistant"
|
|
homepage "https://github.com/hanzoai/dev"
|
|
version "v0.6.83"
|
|
on_macos do
|
|
if Hardware::CPU.arm?
|
|
url "https://github.com/hanzoai/dev/releases/download/v0.6.83/dev-aarch64-apple-darwin.tar.gz"
|
|
sha256 "2a4f5eb12bba0aac65f7d9cc7d577ea962913bea9c4ef2a21b2a4825fc814913"
|
|
else
|
|
url "https://github.com/hanzoai/dev/releases/download/v0.6.83/dev-x86_64-apple-darwin.tar.gz"
|
|
sha256 "264992535a1c7f027fb67769baaa7183ca24155f45bb7519302dc3ebfd30739d"
|
|
end
|
|
end
|
|
|
|
def install
|
|
bin.install Dir["dev-*"].first => "dev"
|
|
# Provide a compatibility shim
|
|
(bin/"hanzo").write <<~EOS
|
|
#!/bin/bash
|
|
exec "#{bin}/dev" "$@"
|
|
EOS
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/dev", "--help"
|
|
end
|
|
end
|