Publish current app and server

This commit is contained in:
ponzischeme89
2026-08-02 22:10:19 +12:00
parent a265636139
commit 1ed180c739
203 changed files with 23933 additions and 2788 deletions
+5 -1
View File
@@ -8,6 +8,8 @@ func policy() Policy {
LatestVersion: "0.1.54",
MinimumVersion: "0.1.50",
DownloadURL: "https://nas.example.com/memby/memby-0.1.54.apk",
SHA256: "abcdef",
SizeBytes: 42,
Notes: "Faster home screen",
}
}
@@ -29,6 +31,9 @@ func TestBehindLatestIsOptional(t *testing.T) {
if decision.Version != "0.1.54" || decision.DownloadURL == "" {
t.Fatalf("decision is missing what the TV needs to act: %+v", decision)
}
if decision.SHA256 != "abcdef" || decision.SizeBytes != 42 {
t.Fatalf("decision dropped release integrity metadata: %+v", decision)
}
}
func TestBelowMinimumIsMandatory(t *testing.T) {
@@ -100,7 +105,6 @@ func TestVersionParsingIsForgiving(t *testing.T) {
if got := Decide(p, "0.1.54-beta").Status; got != StatusNone {
t.Fatalf("pre-release suffix should compare as 0.1.54, got %s", got)
}
p.LatestVersion = "0.2"
if got := Decide(p, "0.2.0").Status; got != StatusNone {
t.Fatalf("0.2.0 should equal 0.2, got %s", got)