Files
dev/Formula/hanzo-dev.rb
T
2026-10-08 08:23:40 +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.115"
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 "d4451b59d9457bb05680c826080a09efd29b76b22111dbaed6bbb86f0488fd31"
end
on_intel do
url "https://github.com/hanzoai/dev/releases/download/v#{version}/dev-x86_64-apple-darwin.tar.gz"
sha256 "aec5228851bca4197dd3e80e57dedde19f45db29c2146b533e8d1f3b7c2c395d"
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 "344f9ecbf4cdfdc0087e05cd9d737059fe6f084d57482c5f0634c23a8db6a628"
end
on_intel do
url "https://github.com/hanzoai/dev/releases/download/v#{version}/dev-x86_64-unknown-linux-musl.tar.gz"
sha256 "acad0cc1ce58cf1bab940367ae3d85a1d11b2eb9efb21965b13759b372f747a9"
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