Add update progress steps, checksum verification, and improved cleanup

This commit is contained in:
Stone_Red
2026-02-20 20:30:13 +01:00
parent dd0d24cf47
commit e9b3fd63cc
4 changed files with 137 additions and 43 deletions
+25 -1
View File
@@ -31,10 +31,25 @@ namespace AlwaysUpToDate
public Checksum Checksum { get; set; }
}
public enum HashAlgorithmType
{
[XmlEnum("sha1")]
SHA1,
[XmlEnum("md5")]
MD5,
[XmlEnum("sha256")]
SHA256,
[XmlEnum("sha512")]
SHA512,
}
public class Checksum
{
[XmlAttribute("algorithm")]
public string Algorithm { get; set; }
public HashAlgorithmType Algorithm { get; set; }
[XmlText]
public string Value { get; set; }
@@ -51,4 +66,13 @@ namespace AlwaysUpToDate
[XmlEnum("linux")]
Linux,
}
public enum UpdateStep
{
Downloading,
VerifyingChecksum,
Extracting,
CleaningUp,
Restarting,
}
}