mirror of
https://github.com/maxgoedjen/secretive.git
synced 2026-03-11 03:57:23 +01:00
Switch to higher level XPC & enforce signing requirements (#681)
* Revert "Add launch constraints (#678)"
This reverts commit c5a610d786.
* .
* Cleanup.
This commit is contained in:
17
Sources/SecretiveUpdater/SecretiveUpdater.swift
Normal file
17
Sources/SecretiveUpdater/SecretiveUpdater.swift
Normal 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)
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user