1 Commits
Author SHA1 Message Date
poli0981andClaude Opus 4.8 44cdfe838b Phase 4: Velopack auto-update
Add the update path per the roadmap: IUpdateService -> VelopackUpdateService
(GithubSource against the project repo; per-user install, no UAC), a minimal
"Check for updates" dialog (check -> prompt -> progress -> apply & restart),
mapped error dialogs (404/403/429/5xx/offline; 419 is not special-cased), an
"auto-check on startup" setting, and scripts/pack.ps1 for vpk packaging.

- Application stays Velopack-free: UpdateError, UpdateCheckResult, pure
  UpdateErrorMapper, widened IUpdateService, CheckForUpdateUseCase.
- Infrastructure: VelopackUpdateService (lazy manager, degrades to NotInstalled
  in dev) + VelopackBootstrap so the WPF layer never references Velopack.
- WPF: UpdateViewModel/UpdateDialog, IUpdateDialogService, Tools menu item,
  VelopackApp.Build().Run() at startup + non-blocking auto-check, gated on the
  Phase 3 "command running" guard before applying.
- Tests: error mapping (429 handled, 419 -> Unknown), use-case pass-through,
  DI resolution.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-17 22:34:32 +07:00