Add basic support for prerelease versions

This commit is contained in:
2025-09-24 16:49:10 -04:00
parent 4e824e2039
commit d2c7f27970
4 changed files with 104 additions and 48 deletions

View File

@@ -45,9 +45,9 @@ public static class UpdateCheck
ApplicationUpdateMessage = applicationUpdateMessageDelegate;
}
public static async Task<bool> CheckForUpdate()
public static async Task<bool> CheckForUpdate(bool includePrerelease)
{
RemoteVersion = await VersionInfo.Load(UpdateServerType, UpdateServer, UpdateFile);
RemoteVersion = await VersionInfo.Load(UpdateServerType, UpdateServer, UpdateFile, includePrerelease);
if (RemoteVersion == null)
return false;
@@ -98,9 +98,9 @@ public static class UpdateCheck
return true;
}
public static async void DisplayUpdateInformation(bool showIfCurrent)
public static async Task DisplayUpdateInformation(bool showIfCurrent, bool includePrerelease)
{
await CheckForUpdate();
await CheckForUpdate(includePrerelease);
// Check for an update
if (UpdateAvailable)