feat(dist): add Homebrew + curl install paths#1250
Merged
Conversation
Add two zero-to-low-friction install methods beyond `npm install -g`: - `install.sh` (POSIX): checks for Node 22+, installs `git-coco` with the available package manager (npm/pnpm/yarn), prints next steps. Version pin via COCO_VERSION. Served at coco.griffen.codes/install.sh. - `packaging/homebrew/coco.rb`: canonical Homebrew formula (pulls Node as a dependency = no prerequisites), pinned to 0.71.0's sha256. - `bin/genHomebrewFormula.mjs`: regenerates the formula's url + sha256 from a published npm tarball. - `packaging/README.md`: tap setup + per-release distribution checklist.
This was referenced Jun 13, 2026
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.
Adds two lower-friction install methods beyond
npm install -g git-coco, part of the distribution push (seespecs/HANDOFF.md).What's here
install.sh(POSIXsh) — checks for Node 22+, installsgit-cocowith whatever package manager is present (npm/pnpm/yarn), prints next steps. Pin a version withCOCO_VERSION. Intended to be served atcoco.griffen.codes/install.sh.curl -fsSL https://coco.griffen.codes/install.sh | shpackaging/homebrew/coco.rb— canonical Homebrew formula. Homebrew brings Node along as a dependency, so this is the zero-prerequisite path. Pinned to 0.71.0's real sha256.bin/genHomebrewFormula.mjs— regenerates the formula'surl+sha256from a published npm tarball.packaging/README.md— one-time tap setup + per-release distribution checklist.Follow-ups (not in this PR)
gfargo/homebrew-cocotap repo (steps inpackaging/README.md) —brew installwon't resolve until it exists..wwwso/install.shis reachable (the served mirror lives in the separate.wwwrepo).Validation
yarn lint(0 errors),yarn test,yarn buildall green on the combined branch before splitting.bash -n install.shandnode --checkon the new.mjspass.