mirror of
https://github.com/ckaczor/ChrisKaczor.ApplicationUpdate.git
synced 2026-01-13 17:22:16 -05:00
Add basic support for prerelease versions
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user