Skip to main content

Homebrew

Generate Homebrew formulae and push to tap repositories

Anodizer generates Ruby Homebrew formulae with multi-platform support and pushes them to your tap repository.

Classification

GroupRequired (default)RollbackToken scope
Managerfalsere-clone tap, git revert HEAD --no-edit, pushGITHUB_TOKEN contents:write

See Release resilience for the full classification table and the Submitter gate semantics.

Minimal config

crates:
  - name: myapp
    publish:
      homebrew:
        repository:
          owner: myorg
          name: homebrew-tap

Homebrew config fields

FieldTypeDefaultDescription
repository.ownerstringGitHub owner of the tap repo
repository.namestringTap repository name
folderstringFormulaFolder within the tap repo
descriptionstringnoneFormula description
licensestringnoneLicense identifier
installstringautoCustom install block (Ruby)
teststringnoneCustom test block (Ruby)

Generated formula

Anodizer generates a formula with:

  • Multi-platform download URLs (on_macos, on_linux, on_intel, on_arm)
  • SHA-256 checksums for each archive
  • Automatic binary installation
  • Package name normalization (underscores → hyphens)

Full example

publish:
  homebrew:
    repository:
      owner: myorg
      name: homebrew-tap
    folder: Formula
    description: "A fast CLI tool"
    license: MIT
    install: |
      bin.install "myapp"
    test: |
      system "#{bin}/myapp", "--version"