Add update checker

This commit is contained in:
BlossomiShymae
2024-08-13 02:37:46 -05:00
parent 360a0f28c7
commit 8f81aa526e
3 changed files with 54 additions and 8 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;
}
}