mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-25 03:23:33 +00:00
46 lines
1.5 KiB
Ruby
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.104"
|
|
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 "0198d1ed1f857bc686a71259c11125321cd57929a235e53b769e20909e3cb55a"
|
|
end
|
|
on_intel do
|
|
url "https://github.com/hanzoai/dev/releases/download/v#{version}/dev-x86_64-apple-darwin.tar.gz"
|
|
sha256 "168d4efca601b0421aac4d133d11be9457cd08f9a98626970d992b47a44eef62"
|
|
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 "651ef0210bab135a8720cb78e795eb4b1584de2f4e51b79adee0d83faf513368"
|
|
end
|
|
on_intel do
|
|
url "https://github.com/hanzoai/dev/releases/download/v#{version}/dev-x86_64-unknown-linux-musl.tar.gz"
|
|
sha256 "1f0dada91ffe0064a32d5e21d23abfb6db0f696ddf75c14c0013b2db5cce0750"
|
|
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
|