vpk verifies VelopackApp.Build().Run() is present in the main executable. Calling
it via VelopackBootstrap (Infrastructure) failed that check ("Unable to verify
VelopackApp is called"), so call it directly in App.OnStartup and reference
Velopack from the WPF project. Removes the now-unused VelopackBootstrap. Also fix
pack.ps1 --mainExe to CommandForge.Wpf.exe (the actual published exe name).
Verified: scripts/pack.ps1 -Version 0.3.0 with vpk 1.2.0 produces
CommandForge-win-Setup.exe + *-full.nupkg + RELEASES; the Elevator is bundled.
53 tests still pass.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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>