Files
dev/docs/homebrew.md
T
zeekay 9d251b3ec4 fix: publish hanzo-tunnel to crates.io, gate tunnel behind feature flag, fix CI
- hanzo-tunnel v0.1.0 published to crates.io (was path dep to ../../../tunnel)
- cli: tunnel + tunnel-bridge deps now optional behind `tunnel` feature flag
- cli: cloud module (ZT + relay) gated with #[cfg(feature = "tunnel")]
- tunnel-bridge: all hanzo_tunnel usage gated behind `tunnel` feature
- CI: fix prettier by scoping JS globs, excluding symlinked CLAUDE.md
- CI: format all workflows and docs with prettier
- Workspace compiles clean without tunnel feature (CI default)
- Local builds with `--features tunnel` still work with crates.io dep
2026-03-11 20:28:33 -07:00

793 B

Homebrew (macOS)

This repository now includes a helper script to generate a Homebrew formula from the latest GitHub release artifacts. Publishing to Homebrew requires a tap repository (for example, hanzoai/homebrew-tap). Once a tap exists, you can generate and publish the formula like so:

  1. Generate the formula for the latest version:
scripts/generate-homebrew-formula.sh
  1. Copy the generated Code.rb into your tap repo under Formula/Code.rb and update the url/sha256 if needed.

  2. Users can then install with:

brew tap hanzoai/tap
brew install code

Notes

  • The formula expects release assets named like:
    • code-aarch64-apple-darwin.tar.gz
    • code-x86_64-apple-darwin.tar.gz
  • The CLI is installed as code and coder shims for compatibility.