Add update checker

This commit is contained in:
BlossomiShymae
2024-08-13 02:37:46 -05:00
parent 360a0f28c7
commit 0ddcfb47a6
2 changed files with 52 additions and 6 deletions

View File

@@ -0,0 +1,12 @@
using System.Text.Json.Serialization;
namespace Needlework.Net.Desktop
{
public class GithubRelease
{
[JsonPropertyName("tag_name")]
public string TagName { get; set; } = string.Empty;
public bool IsLatest(int version) => int.Parse(TagName.Replace(".", "")) > version;
}
}