Repository navigation
feat: winget, Scoop and Homebrew manifests made from each release, and installed with - #70
Merged
Merged
Conversation
…d installed with (refs #56) Package managers need a manifest per release naming each archive and its sha256. Written by hand they drift from what was published, so they are made from the release's own SHA256SUMS: - scripts/package_manifests.py (standard library only) renders the winget version/installer/locale files (a zip of two portable commands), a Scoop manifest with checkver/autoupdate, and a Homebrew formula for macOS and Linux on Intel and ARM whose test checks both programs' versions. Pre-release tags are refused; a missing archive or a malformed sum line is an error, not skipped. - .github/workflows/package-check.yml makes them for a tag and installs with each, as a user would: winget (validate, then install the local manifest) and Scoop on Windows, Homebrew from a local tap on macOS and Linux; both programs must report the tag's version. The manifests are uploaded as an artifact, ready to submit. - release.yml runs it after the install check, for release tags only. A pull request that changes the generator runs it against the latest release. Submitting (a winget-pkgs pull request, a Scoop bucket, a Homebrew tap) needs the owner's accounts and is not done here. Tested: 10 unit tests (scripts/tests); for v0.1.0 the generated winget manifest passes `winget validate` (winget 1.29) and the downloaded archives' hashes match the release's SHA256SUMS.
Root cause: given a relative manifests/scoop/incode.json, Scoop parses it as <bucket>/<app>, reports the manifest not found and exits 0; the version check caught it. An absolute path is read as a manifest file.
This was referenced Oct 24, 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.
From #56, "Package managers" (Homebrew, winget and Scoop manifests from the release archives and
SHA256SUMS).What it adds
scripts/package_manifests.py(standard library only): from a release tag and that release'sSHA256SUMS, it writes:incodeandsbx;checkver/autoupdateso a bucket can follow new releases;testchecks that both programs report the formula's version.It refuses pre-release tags, and a missing archive or a malformed sum line is an error, not skipped.
.github/workflows/package-check.yml: makes the manifests for a tag, then installs with each one, as a user would:winget validate, then installs the local manifest, on Windows;Both programs must then report the tag's version. The manifests are uploaded as the
package-manifestsartifact, ready to submit.release.yml: runs it after the install check, for release tags only. A PR that changes the generator runs it against the latest release (this PR runs it on v0.1.0).Verified locally
python -m unittest discover -s scripts/tests).winget validate(winget 1.29).SHA256SUMS.Scoop and Homebrew aren't installed on this machine, so their real installs are this PR's CI.
Not done here (needs the owner)
microsoft/winget-pkgs, undermanifests/i/IncordAI/Incode/<version>/.incordai/scoop-bucketandincordai/homebrew-tap.IncordAI.Incodeand publisher nameIncord AIare my defaults (constants at the top of the script), so change them if you want different ones.