Repository navigation
feat(release): publish the Windows build to winget; update through winget - #163
Merged
Merged
Conversation
…nget Each release renders packaging/winget/ (version, release date, the SHA-256 of the archive it built) and submits it to microsoft/winget-pkgs with wingetcreate (pinned by version and checksum), from the fork of the account whose token is the secret WINGET_TOKEN; without it the job warns and ends. Dry runs render and validate only. winget cannot replace a portable binary that runs (`remove_all: Access is denied`, measured with winget 1.29), and devstack's always runs: the hub, every stack's daemon. So `devstack update` on a devstack winget installed moves the running binary out of winget's directory, runs `winget upgrade --id nuetzliches.devstack`, and moves it back when winget put no new one there (also when winget's catalogue does not have the release yet). Measured with a portable package: the move-aside lets the upgrade succeed while the old process keeps running. `self uninstall` leaves the binary to `winget uninstall`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s exit code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # CHANGELOG.md
Merged
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.
Makes devstack installable with
winget install nuetzliches.devstack. This works without code signing (#3); it only means SmartScreen and scanners keep warning until #3 is done.Release
wingetinrelease.yml. It fillspackaging/winget/(manifest schema 1.12.0,zip+portable) with the version, the release date and the SHA-256 of the archive the job just built. It checks thatdevstack.exesits at the root of the archive, then validates the manifests (winget validate, if the runner has winget).wingetcreate submitopens the PR tomicrosoft/winget-pkgs.WINGET_CREATE_GITHUB_TOKEN, not as an argument, so it stays out of the logs.pull_requestonpackaging/winget/**, dispatch, schedule) only render and validate.devstack updateon a winget installwinget cannot replace a portable binary that is running. devstack's binary is nearly always running: the hub from logon, plus every stack's daemon. I measured this with winget 1.29 and a portable test package (hexyl):
winget upgradewhile the exe runsremove_all: Access is denied, version stays (correctly) the old onewinget upgradeSo
devstack update(and the update button in the dashboard) on a winget install does this:<state>/replaced/. That works on the same volume; a machine-scope install underProgram Fileswould need admin, and then the command says what to do instead.winget upgrade --id nuetzliches.devstack --exact --silent ….devstack self uninstallleaves the binary towinget uninstall.Tested
WinGet\PackagesandWinGet\Linksper user and per machine;\?\paths.SHA256SUMS) passwinget validate. I ran themanifestsstep locally for both a tag and a dry run.cargo fmt --check,cargo clippy --workspace --all-targets -- -D warnings, devstack unit tests.LocalManifestFilessetting, which needs admin rights.Before the first release with this
WINGET_TOKEN: a classic PAT withpublic_repofrom the account whose fork ofwinget-pkgswill carry the PRs. wingetcreate creates the fork if it is missing.devstack updateand would replace its own file behind winget's back.🤖 Generated with Claude Code