Repository navigation
Add Homebrew install for macOS - #8
Merged
Merged
Conversation
Lorimer can now be installed with one command:
brew install --cask asweeney86/tap/lorimer
The cask installs Lorimer.app and links lorimer-cli onto PATH. To make
that possible, the macOS release now builds lorimer-cli as a universal
binary and ships it inside the app bundle at Contents/MacOS/lorimer-cli.
The release job fails if the bundled CLI is missing.
The cask is generated from packaging/homebrew/lorimer.rb.in by
scripts/render-cask.sh. A new Homebrew workflow runs when a release is
published (not when the tag is pushed, since draft assets are not
downloadable). It renders the cask with the new version and checksum,
pushes it to asweeney86/homebrew-tap, and then installs it on a clean
macOS runner to confirm it works. CI lints the rendered cask with
brew style on every pull request.
Because the app is not notarized yet, the cask removes the quarantine
flag after installing so the first launch is not blocked.
The README now opens with a Get started section and lists Homebrew first
under Install. CONTRIBUTING.md documents the release steps and the
HOMEBREW_TAP_TOKEN secret, and CHANGELOG.md is added.
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
Lorimer can now be installed on macOS with one command:
The cask installs
Lorimer.appand putslorimer-clion PATH.lorimer-clias a universal binary and bundles it atLorimer.app/Contents/MacOS/lorimer-cli. The job fails if the bundled CLI is missing.packaging/homebrew/lorimer.rb.inbyscripts/render-cask.sh. It usespostflight_steps(Homebrew 7) to remove the quarantine flag, because the app is not notarized yet.homebrew.ymlruns when a release is published. It renders the cask with the version and checksum, pushes it toasweeney86/homebrew-tap, and then installs it on a clean macOS runner to check it works. It can also be re-run by hand with a tag.brew styleon it inside a tap.CHANGELOG.md.Before the first brew release
asweeney86/homebrew-tap.HOMEBREW_TAP_TOKENsecret here.v0.1.0draft predates this change and has nolorimer-cliin the app.Testing
lorimer-cliwas on PATH and ran a scan, and uninstalling removed both.com.apple.quarantine; with it the flag was gone.brew stylereports no problems with the cask, andactionlintpasses on all workflows.cargo fmt --check,cargo clippy --workspace --all-targets -D warningsandcargo test --workspacepass.