From bf2a77ac226dba923933bbdb4f481b7b68287d43 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Tue, 10 Jun 2025 15:38:53 +0900 Subject: [PATCH] Update velopack to fix macOS update overheads Closes https://github.com/ppy/osu/issues/33091. I figure we can push this out on tachyon for testing. --- osu.Desktop/Program.cs | 8 ++++---- osu.Desktop/osu.Desktop.csproj | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/osu.Desktop/Program.cs b/osu.Desktop/Program.cs index a311e42d6d..50d0f06150 100644 --- a/osu.Desktop/Program.cs +++ b/osu.Desktop/Program.cs @@ -184,7 +184,7 @@ namespace osu.Desktop var app = VelopackApp.Build(); - app.WithFirstRun(_ => isFirstRun = true); + app.OnFirstRun(_ => isFirstRun = true); if (OperatingSystem.IsWindows()) configureWindows(app); @@ -195,9 +195,9 @@ namespace osu.Desktop [SupportedOSPlatform("windows")] private static void configureWindows(VelopackApp app) { - app.WithFirstRun(_ => WindowsAssociationManager.InstallAssociations()); - app.WithAfterUpdateFastCallback(_ => WindowsAssociationManager.UpdateAssociations()); - app.WithBeforeUninstallFastCallback(_ => WindowsAssociationManager.UninstallAssociations()); + app.OnFirstRun(_ => WindowsAssociationManager.InstallAssociations()); + app.OnAfterUpdateFastCallback(_ => WindowsAssociationManager.UpdateAssociations()); + app.OnBeforeUninstallFastCallback(_ => WindowsAssociationManager.UninstallAssociations()); } } } diff --git a/osu.Desktop/osu.Desktop.csproj b/osu.Desktop/osu.Desktop.csproj index 05d5bb19fb..b0c5c953d4 100644 --- a/osu.Desktop/osu.Desktop.csproj +++ b/osu.Desktop/osu.Desktop.csproj @@ -26,7 +26,7 @@ - +