In-app auto-update from GitHub Releases (Velopack)#4
Merged
Conversation
Check GitHub Releases on startup and every six hours (installer build only; the portable exe and dev runs no-op). When a newer stable release is found, reveal a bold "Restart to update to vX.Y.Z" prompt at the top of the tray menu and show a balloon; nothing installs until the user clicks it, then it downloads and restarts into the new version. Publish the Velopack feed (.nupkg + releases.*.json) as release assets so the updater has a source to read, staged after the SignPath step so signing stays scoped to the exe downloads.
dvdstelt
force-pushed
the
feature/auto-update
branch
from
July 15, 2026 12:10
d6b1819 to
62689a3
Compare
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
Adds opt-in in-app auto-update. The app checks GitHub Releases on startup and every six hours; when a newer stable release is found it shows a bold "Restart to update to vX.Y.Z" item at the top of the tray menu plus a balloon. Nothing installs until you click it, then it downloads and restarts into the new version.
Only the installed (Setup.exe) build is Velopack-managed, so the portable exe and
dotnet runquietly no-op.Where it updates from
Straight from this repo's GitHub Releases — no separate update server.
GithubSourcelists releases, picks the newest non-prerelease, reads itsreleases.win.jsonfeed +.nupkgassets, and compares against the running version.Changes
Update/UpdateService.cs(new) — wraps VelopackUpdateManager,IsInstalled-guarded.AppController.cs— startup + 6-hour check; reveals the tray prompt; failed checks are swallowed quietly.TrayIcon.cs— the hidden-until-found update item + info balloon..github/workflows/release.yml— publish the Velopack feed (.nupkg+releases.*.json) as release assets, staged after the SignPath step so signing stays scoped to the exes. This is required — without the feed attached, the updater has nothing to read.README.md— document the behavior.Testing
dotnet buildclean, 34/34 tests pass, app launches without regression.Notes
.nupkgis signed too.