Skip to content

feat: add Homebrew installation support#13

Open
gandli wants to merge 1 commit intonashsu:mainfrom
gandli:feat/homebrew-install
Open

feat: add Homebrew installation support#13
gandli wants to merge 1 commit intonashsu:mainfrom
gandli:feat/homebrew-install

Conversation

@gandli
Copy link
Copy Markdown

@gandli gandli commented Apr 1, 2026

Summary

Add Homebrew installation support for opencli-rs.

This PR does two things:

  • Add Homebrew install instructions to README.md, README.zh.md, and README.ja.md
  • Add an update-homebrew job to the release workflow that generates Formula/opencli-rs.rb and pushes it to the Homebrew tap repo on each release tag

The workflow has also been cleaned up in follow-up changes:

  • Merge 4 artifact download steps into 1 download-artifact step with merge-multiple: true
  • Remove the heredoc indentation workaround and generate the formula directly without the sed hack
  • Build release URLs from shell variables only for consistency
  • Ignore local-only files like CLAUDE.md and .DS_Store

After setup, users can install via:

brew tap nashsu/opencli-rs
brew install opencli-rs

Repo owner setup

  1. Create repo nashsu/homebrew-opencli-rs (public)
  2. Add a repository secret named HOMEBREW_TAP_TOKEN in nashsu/opencli-rs
  3. Ensure the token can push to nashsu/homebrew-opencli-rs

Validation

  • Verified the workflow content and generated formula layout locally
  • Verified the generated formula passes Ruby syntax check
  • Confirmed the PR is a single squashed commit

Test plan

  • Create nashsu/homebrew-opencli-rs
  • Add HOMEBREW_TAP_TOKEN
  • Push a new release tag and confirm the workflow updates the tap repo
  • Verify brew tap nashsu/opencli-rs && brew install opencli-rs works on macOS
  • Verify brew install opencli-rs works on Linux

@gandli gandli force-pushed the feat/homebrew-install branch 3 times, most recently from af65e92 to 585c0c2 Compare April 1, 2026 11:52
- Add Homebrew install section to README.md, README.zh.md, README.ja.md
- Add update-homebrew job in release.yml to auto-generate and push
  formula to nashsu/homebrew-opencli-rs on each release
@gandli gandli force-pushed the feat/homebrew-install branch from 585c0c2 to 0edece6 Compare April 1, 2026 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant