1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-27 05:49:56 +08:00

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.
This commit is contained in:
Dean Herbert
2025-06-10 15:38:53 +09:00
Unverified
parent 21fe6aa3ba
commit bf2a77ac22
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -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());
}
}
}