Skip to content

Improvemets for the auto update feature - #33

Merged
flysimdev merged 1 commit into
developfrom
auto-update-improvement
Nov 12, 2026
Merged

flysimdev merged 1 commit into
developfrom
auto-update-improvement

Conversation

@flysimdev

Copy link
Copy Markdown
Owner

Updates install only when the user chooses

Problem: with an update downloaded, closing and reopening the app installed it at launch without asking. Velopack's startup hook installs any downloaded update by default.

Changes

  • No install at launch: VelopackApp.Build().SetAutoApplyOnStartup(false) in Program.cs. Updates still download in the background.
  • Confirmation window: the Home banner's Update… button opens UpdateDialog, which shows the version, the release notes, a link to the GitHub Release, and Update and restart / Not now buttons. It installs only on confirm, and only while streaming is stopped.
  • Release notes:
    • build-installer.ps1 packs release-notes/v<version>.md into the update feed (vpk pack --releaseNotes).
    • For updates packed without notes (1.2.2 and older), the app reads the GitHub Release text instead. It stops at GitHub's generated "What's Changed" list.
    • ReleaseNotes shows the Markdown as headings, bullets, paragraphs and bold text.

Testing

  • New tests: ReleaseNotesTests, GithubReleaseNotesTests. ViewsTests also loads the update window, with and without notes.
  • Manual: installed a local build at an older version, saw the banner, reopened the app and it was not updated, opened the window and it showed 1.2.2's notes from GitHub.

Note: people on 1.2.2 or older will be updated at launch one last time, because their installed version's own startup code runs. After that, updates wait for the click.

🤖 Generated with Claude Code

@flysimdev
flysimdev changed the base branch from main to develop November 12, 2026 13:45
@flysimdev
flysimdev merged commit 9e0f7dc into develop Nov 12, 2026
2 checks passed
@flysimdev
flysimdev deleted the auto-update-improvement branch November 12, 2026 13:56
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