feat: install script + Homebrew tap distribution - #10
Open
Aldiwildan77 wants to merge 1 commit into
Open
Conversation
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.
What
Make Aegis easy to install for non-Rust users, on top of the prebuilt binaries already attached to each GitHub Release.
Adds
install.sh—curl | shinstaller/usr/local/bin(falls back to~/.local/bin)AEGIS_VERSION,AEGIS_INSTALL_DIRcargo install aegis-policyfor unsupported targetscurl -fsSL https://raw.githubusercontent.com/mocha-bot/aegis/master/install.sh | shSHA256 checksums — release workflow now generates a
SHA256SUMSfile and attaches it to each release (consumed by the install script and Homebrew formula).Homebrew tap —
brew install mocha-bot/tap/aegispackaging/homebrew/aegis.rb.tmpl— formula templatepackaging/homebrew/render-formula.sh— fills version + per-asset SHA256 fromSHA256SUMShomebrewjob in the release workflow renders and pushes the formula tomocha-bot/homebrew-tapon releaseHOMEBREW_TAP_TOKENsecret — job skips cleanly if absentOne-time setup required (see
packaging/homebrew/README.md)mocha-bot/homebrew-tapcontents: writeon that repoHOMEBREW_TAP_TOKENsecret hereUntil then,
install.sh+ checksums work standalone; the Homebrew job no-ops.Notes
install.shandrender-formula.shpasssh -nsyntax checks; formula rendering verified locally with sample checksums.