From 2737dabb12fa86200ab0fcefb323f19b85fc2f96 Mon Sep 17 00:00:00 2001 From: Erik Darling <2136037+erikdarlingdata@users.noreply.github.com> Date: Thu, 19 Mar 2026 11:04:57 -0400 Subject: [PATCH] Add Velopack package and startup hook to Dashboard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds VelopackApp.Build().Run() early in OnStartup to handle install/uninstall/update lifecycle hooks. This is the prerequisite for auto-update — the actual download/apply logic and build pipeline (vpk pack) will follow in subsequent PRs. Co-Authored-By: Claude Opus 4.6 (1M context) --- Dashboard/App.xaml.cs | 3 +++ Dashboard/Dashboard.csproj | 1 + 2 files changed, 4 insertions(+) diff --git a/Dashboard/App.xaml.cs b/Dashboard/App.xaml.cs index dfc546d8..36ba36de 100644 --- a/Dashboard/App.xaml.cs +++ b/Dashboard/App.xaml.cs @@ -14,6 +14,7 @@ using System.Windows.Markup; using System.Windows.Threading; using PerformanceMonitorDashboard.Helpers; +using Velopack; namespace PerformanceMonitorDashboard { @@ -25,6 +26,8 @@ public partial class App : Application protected override void OnStartup(StartupEventArgs e) { + VelopackApp.Build().Run(); + NativeMethods.SetAppUserModelId("DarlingData.PerformanceMonitor.Dashboard"); // Check for existing instance diff --git a/Dashboard/Dashboard.csproj b/Dashboard/Dashboard.csproj index aa54e6f7..f918bc6a 100644 --- a/Dashboard/Dashboard.csproj +++ b/Dashboard/Dashboard.csproj @@ -41,6 +41,7 @@ +