Skip to content

Velopack auto-update for Lite + data directory migration (#635)#660

Merged
erikdarlingdata merged 1 commit into
devfrom
feature/lite-velopack
Mar 20, 2026
Merged

Velopack auto-update for Lite + data directory migration (#635)#660
erikdarlingdata merged 1 commit into
devfrom
feature/lite-velopack

Conversation

@erikdarlingdata
Copy link
Copy Markdown
Owner

Summary

Moves Lite's data to %LOCALAPPDATA%\PerformanceMonitorLite\ and adds full Velopack auto-update support. This completes the Velopack rollout across all PM apps.

Data directory change

  • Config, DuckDB, archives, logs, and alert state all move to %LOCALAPPDATA%\PerformanceMonitorLite\
  • App directory is now ephemeral — Velopack can replace it freely
  • Users upgrading from zip use Import Data + Import Settings (already shipped)
  • No auto-migration — fresh installs start clean, zip upgraders use the import buttons

Velopack (same pattern as Dashboard PR #657)

  • Custom Main() with VelopackApp.Build().Run()
  • 3-step About window flow: check → download → confirm → restart
  • 5-second delayed startup check with title bar notification

Pipeline

  • Self-contained win-x64 publish for both Dashboard and Lite
  • Separate Velopack channels (dashboard / lite) so manifests don't collide
  • Both get Setup.exe + full/delta nupkg on every release

🤖 Generated with Claude Code

Data directory:
- All data (config, DuckDB, archives, logs, alert state) now stored
  in %LOCALAPPDATA%\PerformanceMonitorLite\ instead of alongside exe
- Fixed hardcoded AppContext.BaseDirectory in AlertStateService and
  ServerTab log viewer
- Enables Velopack to replace app directory without losing data

Velopack integration:
- Custom Main() with VelopackApp.Build().Run() before WPF
- About window: 3-step update flow with confirmation dialog
- Startup check: 5-second delay, title bar notification
- Falls back to browser-based check when no packages exist

Pipeline:
- Self-contained win-x64 publish for Lite
- Separate channels: dashboard + lite (different package IDs)
- vpk download/pack/upload for both apps

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@erikdarlingdata erikdarlingdata merged commit b36ff7e into dev Mar 20, 2026
3 checks passed
@erikdarlingdata erikdarlingdata deleted the feature/lite-velopack branch April 9, 2026 00:33
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