Switch to higher level XPC & enforce signing requirements (#681)

* Revert "Add launch constraints (#678)"

This reverts commit c5a610d786.

* .

* Cleanup.
This commit is contained in:
Max Goedjen
2025-09-08 23:25:40 -07:00
committed by GitHub
parent 5c2d039682
commit 5467474d88
17 changed files with 637 additions and 590 deletions

View File

@@ -0,0 +1,17 @@
import Foundation
import OSLog
import XPCWrappers
import Brief
final class SecretiveUpdater: NSObject, XPCProtocol {
enum Constants {
static let updateURL = URL(string: "https://api.github.com/repos/maxgoedjen/secretive/releases")!
}
func process(_: Data) async throws -> [Release] {
let (data, _) = try await URLSession.shared.data(from: Constants.updateURL)
return try JSONDecoder().decode([Release].self, from: data)
}
}