included Sparkle

This commit is contained in:
Micha
2025-11-22 18:56:55 +01:00
parent db1f15f981
commit dc710d53aa
15 changed files with 579 additions and 28 deletions

View File

@@ -12,6 +12,8 @@ import AppKit
@main
struct iKeyMonApp: App {
@StateObject private var updateViewModel = UpdateViewModel()
init() {
#if os(macOS)
if let customIcon = NSImage(named: "AppIcon") {
@@ -23,6 +25,7 @@ struct iKeyMonApp: App {
var body: some Scene {
WindowGroup {
MainView()
.environmentObject(updateViewModel)
.onDisappear {
NSApp.terminate(nil)
}
@@ -32,6 +35,7 @@ struct iKeyMonApp: App {
Settings {
PreferencesView()
.padding()
.environmentObject(updateViewModel)
}
}
}