add Sparkle appcast

This commit is contained in:
Micha
2025-11-25 16:21:07 +01:00
parent dc9560e31a
commit 01c89de738
18 changed files with 262 additions and 356 deletions

View File

@@ -12,7 +12,7 @@ import AppKit
@main
struct iKeyMonApp: App {
@StateObject private var updateViewModel = UpdateViewModel()
@StateObject private var sparkleUpdater = SparkleUpdater()
init() {
#if os(macOS)
@@ -25,7 +25,7 @@ struct iKeyMonApp: App {
var body: some Scene {
WindowGroup {
MainView()
.environmentObject(updateViewModel)
.environmentObject(sparkleUpdater)
.onDisappear {
NSApp.terminate(nil)
}
@@ -35,7 +35,7 @@ struct iKeyMonApp: App {
Settings {
PreferencesView()
.padding()
.environmentObject(updateViewModel)
.environmentObject(sparkleUpdater)
}
}
}