feat(release): publish to Chocolatey on release#49
Merged
Conversation
Adds a .chocolatey/ package skeleton (codeshellmanager) and a new .github/workflows/chocolatey.yml that triggers on release: released (and workflow_dispatch for backfill). The workflow downloads the signed MSI from the GitHub Release, substitutes the version, MSI URL, and SHA256 into the nuspec + chocolateyinstall.ps1 placeholders, then choco pack + choco push to community.chocolatey.org using the CHOCO_API_KEY repo secret. Closes #42 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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
Implements #42 — publishes a Chocolatey package (
codeshellmanager) alongside the existing winget release so Windows users canchoco install codeshellmanager/choco upgrade codeshellmanager..chocolatey/package skeleton:codeshellmanager.nuspec,tools/chocolateyinstall.ps1,tools/chocolateyuninstall.ps1,tools/LICENSE.txt,tools/VERIFICATION.txt..github/workflows/chocolatey.yml, triggered onrelease: released(mirroringwinget.yml) andworkflow_dispatchwith ataginput for backfill / retry. The workflow downloads the signed MSI from the matching GitHub Release, computes its SHA256, substitutes__VERSION__/__URL64__/__CHECKSUM64__placeholders, thenchoco packandchoco pushto community.chocolatey.org using theCHOCO_API_KEYrepo secret.Open questions captured from the issue
.portablepackage — not in scope for this PR (per the issue). The MSI variant covers Start Menu + uninstall via Apps & Features.raw.githubusercontent.com/umage-ai/CodeShellManager/main/src/CodeShellManager/Assets/app.ico. Chocolatey accepts this; if their moderation requests a PNG we can revisit.Test plan
workflow_dispatchthe chocolatey workflow withtag: v0.5.0after merging to verify packaging end-to-end against the most recent release.choco install codeshellmanager -yon a clean Windows VM and confirm Start Menu shortcut + uninstall viachoco uninstall codeshellmanager.vX.Y.Z) and confirm the workflow auto-fires onrelease: released.🤖 Generated with Claude Code