Start working on settings UI

This commit is contained in:
2024-09-29 21:00:13 -04:00
parent 3a87285e58
commit 5631bc87be
9 changed files with 267 additions and 62 deletions

View File

@@ -1,12 +1,16 @@
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)
{
@@ -24,4 +28,8 @@ 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();
}