Skip to content

feat(app): add rta update to install the latest GitHub release - #40

Merged
danifischer merged 1 commit into
masterfrom
claude/rta-github-update-17901b
Nov 13, 2026
Merged

danifischer merged 1 commit into
masterfrom
claude/rta-github-update-17901b

Conversation

@danifischer

Copy link
Copy Markdown
Owner

What

New command rta update (--check / -c only reports). It asks GitHub for the latest release and installs it if it is newer than the running version.

  • Single file (Windows zip): downloads the zip, verifies it against 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.
  • dotnet tool: downloads rta.<version>.nupkg from the release, verifies it and runs dotnet tool update -g rta --add-source … --version … (works without nuget.org). On failure it prints the manual command.
  • Non-Windows without the tool: prints the release link.
  • Semver comparison incl. prereleases. releases/latest never returns prereleases, so those are not offered.
  • README updated.

Why

Updating meant replacing zip contents by hand or knowing the dotnet tool command.

Review notes

  • 21 unit tests (version compare, release parsing, checksum, zip install/zip-slip) pass; rta update --check against the real GitHub reports up to date.
  • Not tested live: the actual exe swap and dotnet tool update on Windows (no newer release exists yet). Possible risk: Windows may lock the running shim exe during a tool update.

🤖 Generated with Claude Code

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>
@danifischer
danifischer merged commit 92108ea into master Nov 13, 2026
1 check passed
@danifischer
danifischer deleted the claude/rta-github-update-17901b branch November 13, 2026 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant