Skip to content

Commit

Permalink
refactor TryUpdate and pull out apply update code
Browse files Browse the repository at this point in the history
  • Loading branch information
hahn-kev committed Dec 2, 2024
1 parent 2c8dfae commit b36f9df
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backend/FwLite/FwLiteDesktop/AppUpdateService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ private async Task TryUpdate()
return;
}

await ApplyUpdate(latestRelease);
}

private async Task ApplyUpdate(FwLiteRelease latestRelease)
{
logger.LogInformation("New version available: {Version}", latestRelease.Version);
var packageManager = new PackageManager();
var asyncOperation = packageManager.AddPackageAsync(new Uri(latestRelease.Url), [], DeploymentOptions.None);
Expand Down

0 comments on commit b36f9df

Please sign in to comment.