Add update settings panel

This commit is contained in:
2024-09-30 17:41:54 -04:00
parent 5631bc87be
commit 733a3de573
12 changed files with 224 additions and 15 deletions

View File

@@ -1,16 +1,12 @@
using Microsoft.Extensions.Logging;
using NuGet.Versioning;
using Serilog;
using System;
using Velopack;
using Velopack.Sources;
namespace WorldClockStatusWindow;
internal class Program
{
private static UpdateManager _updateManager;
[STAThread]
public static void Main(string[] args)
{
@@ -28,8 +24,4 @@ internal class Program
Log.Logger.Information("End");
}
public static UpdateManager UpdateManager => _updateManager ??= new UpdateManager(new GithubSource("https://github.com/ckaczor/WorldClockStatusWindow", null, false));
public static string LocalVersion => (UpdateManager.CurrentVersion ?? new SemanticVersion(0, 0, 0)).ToString();
}