Skip to content

Commit

Permalink
fix(auto-update): fix bootloop of SoundSwitch when auto-updating with…
Browse files Browse the repository at this point in the history
… the new beta

Fixes #1422
  • Loading branch information
Belphemur committed Apr 5, 2024
1 parent 890a8bb commit e19a21d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions SoundSwitch/Framework/Updater/UpdateChecker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ private bool ProcessAndNotifyRelease(Release serverRelease)
return false;
}

//Fix for beta releases that aren't using semantic versioning to be sure the comparison works
if (serverRelease.Prerelease && !serverRelease.TagName.Contains("-beta."))
{
serverRelease.TagName += "-beta.1";
}

if (!SemanticVersion.TryParse(serverRelease.TagName.Substring(1), out var version))
{
Log.Error("Invalid version: {version}", serverRelease.TagName);
Expand Down

0 comments on commit e19a21d

Please sign in to comment.