Files
dev/Formula/hanzo-dev.rb
T
2026-09-27 14:07:44 +00:00

46 lines
1.5 KiB
Ruby

class HanzoDev < Formula
desc "Local AI coding agent for your terminal, powered by Hanzo AI"
homepage "https://github.com/hanzoai/dev"
version "0.6.108"
license "Apache-2.0"
on_macos do
on_arm do
url "https://github.com/hanzoai/dev/releases/download/v#{version}/dev-aarch64-apple-darwin.tar.gz"
sha256 "7f7e932934ea3474bbe98b9c2c6ff7acb38ce050a8a06e38761dbd353634eadb"
end
on_intel do
url "https://github.com/hanzoai/dev/releases/download/v#{version}/dev-x86_64-apple-darwin.tar.gz"
sha256 "01d8302c1a61fc31d7c2261c4ad77b53f9b381b10fad85707128d9d962965867"
end
end
on_linux do
on_arm do
url "https://github.com/hanzoai/dev/releases/download/v#{version}/dev-aarch64-unknown-linux-musl.tar.gz"
sha256 "8b35bf473895a46d940dcb407e9faca22c081779d13d6f669c2bf0ecfb642bde"
end
on_intel do
url "https://github.com/hanzoai/dev/releases/download/v#{version}/dev-x86_64-unknown-linux-musl.tar.gz"
sha256 "bf3c5d38c55ea3d091245d8ad7d1eed556b2f1ff29f30d6a8f16c3480012bfdd"
end
end
livecheck do
url :stable
strategy :github_latest
end
def install
# Installs `dev` ONLY. It must not also write a `hanzo` shim: `hanzo` is the
# Hanzo CLI (Formula/hanzo.rb), a different program. A shim here would make
# `hanzo` mean "the dev coding assistant" for anyone who installed this
# formula first, and would collide with hanzo.rb on the same filename.
bin.install Dir["dev-*"].first => "dev"
end
test do
system "#{bin}/dev", "--help"
end
end