Skip to content

Commit

Permalink
Merge pull request #154 from ionite34/fix-update
Browse files Browse the repository at this point in the history
Look for legacy update directory for 1.2.0 -> 2.x.x updates
  • Loading branch information
mohnjiles authored Jul 25, 2023
2 parents c2db25e + 6c51365 commit c3d7aef
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions StabilityMatrix.Avalonia/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,13 @@ public static AppBuilder BuildAvaloniaApp()

private static void HandleUpdateReplacement()
{
// Check if we're in the named update folder
if (Compat.AppCurrentDir.Parent is {Name: UpdateHelper.UpdateFolderName} parentDir)
// Check if we're in the named update folder or the legacy update folder for 1.2.0 -> 2.0.0
if (Compat.AppCurrentDir is {Name: UpdateHelper.UpdateFolderName} or {Name: "Update"})
{
var parentDir = Compat.AppCurrentDir.Parent;
if (parentDir is null)
return;

var retryDelays = Backoff.DecorrelatedJitterBackoffV2(
TimeSpan.FromMilliseconds(350), retryCount: 5);

Expand Down

0 comments on commit c3d7aef

Please sign in to comment.