Updater UI (#703)

* Parse markdown oop

* Update UI.

* Tweaks.
This commit is contained in:
Max Goedjen
2025-09-14 01:20:10 -07:00
committed by GitHub
parent b308b10716
commit f76766a9d5
7 changed files with 135 additions and 81 deletions

View File

@@ -11,7 +11,9 @@ final class SecretiveUpdater: NSObject, XPCProtocol {
func process(_: Data) async throws -> [Release] {
let (data, _) = try await URLSession.shared.data(from: Constants.updateURL)
return try JSONDecoder().decode([Release].self, from: data)
return try JSONDecoder()
.decode([GitHubRelease].self, from: data)
.map(Release.init)
}
}