Use CheapAvaloniaBlazor Velopack integration, update packages #24
Loading…
Reference in a new issue
No description provided.
Delete branch "d/velopack-lib"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
🤖 Claude AI Code Review
Summary
Migrates Velopack auto-update logic from a local
UpdateServiceinto the CheapAvaloniaBlazor library viaWithVelopackUpdates()/IUpdateService, bumps packages, and switches tests to xunit.v3 4.0 on Microsoft.Testing.Platform.Code Quality ⭐⭐⭐⭐☆
Clean removal of duplicated infrastructure by delegating to the shared library.
Issues
🟢 Program.cs — The update endpoint URL is a hardcoded LAN IP (line with
WithVelopackUpdates(...)). This was already hardcoded before, so not a regression, but consider making it configurable.🟢 MainLayout.razor — Removing the explicit
CheckAndDownloadAsync()call assumesWithVelopackUpdatesreliably triggers background check+download. Verify the library actually starts this automatically, otherwise updates silently never fire. Not verifiable from this diff.Mechanical, well-scoped migration. Just confirm
WithVelopackUpdatesgenuinely runs the background check on startup (previously done manually inOnInitialized), and that Velopack's install/update hooks still execute correctly now that the explicitVelopackApp.Build().Run()is gone and handled by the library.📊 Tokens: 6162 input + 473 output | 💰 Cost: ~$0.0426
Generated by Claude Opus 4.8 via Gitea Actions