Open
Conversation
- Add Formula/xhs-cli.rb for `brew install jackwener/xhs/xhs-cli` - Add GitHub Actions workflow to auto-update formula on new releases - Update README.md and README_EN.md with Homebrew installation option The formula creates a Python virtualenv and pip-installs xhs-cli with all dependencies. This approach is needed because several transitive dependencies (playwright, ua-parser-builtins, geoip2) are wheel-only or use Rust-based build backends incompatible with source-only builds. Users install with: brew install jackwener/xhs/xhs-cli
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Formula/xhs-cli.rbHomebrew formula so users can install withbrew install jackwener/xhs/xhs-cli.github/workflows/update-homebrew.ymlto auto-update the formula when a new version tag is pushedHow it works
The repo itself acts as a Homebrew tap. Users can install directly with:
Or tap first:
Formula approach
The formula creates a Python virtualenv and uses
pip install xhs-cli(with binary wheels allowed). This is needed because several transitive dependencies have no sdist on PyPI:playwright— wheel-onlyua-parser-builtins— wheel-onlygeoip2— usesuv_build(Rust-based), can't build from source in Homebrew sandboxAuto-update workflow
When a new version tag (e.g.,
v0.1.4) is pushed, theupdate-homebrew.ymlworkflow:Formula/xhs-cli.rbwith the new versionTest plan
brew installlocally — installs successfullyxhs --helpworks after installation