Use CheapAvaloniaBlazor Velopack integration, update packages #24

Merged
cheapnud merged 1 commit from d/velopack-lib into master 2026-08-22 11:36:32 +00:00
Owner
No description provided.
Use CheapAvaloniaBlazor's Velopack integration, update packages
All checks were successful
Claude PR Review / AI Code Review (pull_request) Successful in 14s
Build & Test / Build and Test (pull_request) Successful in 25s
20d739fbc4
Replace the local UpdateService with the library's WithVelopackUpdates and
IUpdateService (added in 3.3.0), dropping the direct Velopack reference.
Update all NuGet packages; xunit.v3 4.0 moves tests onto
Microsoft.Testing.Platform, so CI runs the test executable directly.

🤖 Claude AI Code Review

  1. Summary
    Migrates Velopack auto-update logic from a local UpdateService into the CheapAvaloniaBlazor library via WithVelopackUpdates()/IUpdateService, bumps packages, and switches tests to xunit.v3 4.0 on Microsoft.Testing.Platform.

  2. Code Quality
    Clean removal of duplicated infrastructure by delegating to the shared library.

  3. 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 assumes WithVelopackUpdates reliably triggers background check+download. Verify the library actually starts this automatically, otherwise updates silently never fire. Not verifiable from this diff.

  1. Verdict: APPROVE

Mechanical, well-scoped migration. Just confirm WithVelopackUpdates genuinely runs the background check on startup (previously done manually in OnInitialized), and that Velopack's install/update hooks still execute correctly now that the explicit VelopackApp.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

## 🤖 Claude AI Code Review 1. **Summary** Migrates Velopack auto-update logic from a local `UpdateService` into the CheapAvaloniaBlazor library via `WithVelopackUpdates()`/`IUpdateService`, bumps packages, and switches tests to xunit.v3 4.0 on Microsoft.Testing.Platform. 2. **Code Quality** ⭐⭐⭐⭐☆ Clean removal of duplicated infrastructure by delegating to the shared library. 3. **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 assumes `WithVelopackUpdates` reliably triggers background check+download. Verify the library actually starts this automatically, otherwise updates silently never fire. Not verifiable from this diff. 4. **Verdict**: **APPROVE** Mechanical, well-scoped migration. Just confirm `WithVelopackUpdates` genuinely runs the background check on startup (previously done manually in `OnInitialized`), and that Velopack's install/update hooks still execute correctly now that the explicit `VelopackApp.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*
cheapnud merged commit da814f90e1 into master 2026-08-22 11:36:32 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cheapnud/CheapShotcutRandomizer!24
No description provided.