mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-25 03:32:32 +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.100"
|
|
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 "703e0859dab7c1774eb7df2d32fd5e26ed76a1dbd62eef021ee0790b434edffe"
|
|
end
|
|
on_intel do
|
|
url "https://github.com/hanzoai/dev/releases/download/v#{version}/dev-x86_64-apple-darwin.tar.gz"
|
|
sha256 "11d3cf67c7810f88a56ac941a1c536ded28ac8c504cb8c57a5da261572f6331d"
|
|
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 "b70aaadf653227c6d90f1f189565bd5944df9f92207f4d3ff79c855290232d5a"
|
|
end
|
|
on_intel do
|
|
url "https://github.com/hanzoai/dev/releases/download/v#{version}/dev-x86_64-unknown-linux-musl.tar.gz"
|
|
sha256 "90328e5798d3efab48e65ebc0c7885e78062c05216cbc6db4e99137498892235"
|
|
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
|