Repository navigation
feat(app): add rta update to install the latest GitHub release - #40
Merged
Merged
Conversation
Checks the latest release on GitHub and installs it when it is newer than the running version (`--check` only reports). The single-file zip is verified against SHA256SUMS.txt and unpacked over the program folder (the running exe is renamed to *.old and removed on the next run); a dotnet tool install is updated from the release's nupkg via `dotnet tool update -g`. Co-Authored-By: Claude Sonnet 5.5 <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.
What
New command
rta update(--check/-conly reports). It asks GitHub for the latest release and installs it if it is newer than the running version.SHA256SUMS.txt, unpacks it over the program folder. The running exe is renamed to*.old(Windows cannot overwrite it) and removed on the next run. Zip entries outside the folder are rejected before any file is touched; on failure the old files are restored.rta.<version>.nupkgfrom the release, verifies it and runsdotnet tool update -g rta --add-source … --version …(works without nuget.org). On failure it prints the manual command.releases/latestnever returns prereleases, so those are not offered.Why
Updating meant replacing zip contents by hand or knowing the dotnet tool command.
Review notes
rta update --checkagainst the real GitHub reports up to date.dotnet tool updateon Windows (no newer release exists yet). Possible risk: Windows may lock the running shim exe during a tool update.🤖 Generated with Claude Code