feat: add auto-update functionality and release scripts

This commit is contained in:
Owen Gretzinger
2025-07-11 08:50:20 -04:00
parent f1e9a79343
commit 048a21dbd6
9 changed files with 350 additions and 2 deletions
+2
View File
@@ -6,5 +6,7 @@
<string>Notetaker needs access to capture system audio for transcription.</string>
<key>NSScreenCaptureUsageDescription</key>
<string>Notetaker needs screen recording permission to capture system audio for transcription.</string>
<key>SUFeedURL</key>
<string>https://raw.githubusercontent.com/owengretzinger/notetaker/main/appcast.xml</string>
</dict>
</plist>
+23
View File
@@ -6,14 +6,37 @@
//
import SwiftUI
import Sparkle
@main
struct notetakerApp: App {
private let updaterController: SPUStandardUpdaterController
init() {
updaterController = SPUStandardUpdaterController(updaterDelegate: nil, userDriverDelegate: nil)
}
var body: some Scene {
WindowGroup {
ContentView()
.frame(minWidth: 800, minHeight: 600)
}
.windowResizability(.contentSize)
.commands {
CommandGroup(after: .appInfo) {
CheckForUpdatesView(updater: updaterController.updater)
}
}
}
}
struct CheckForUpdatesView: View {
let updater: SPUUpdater
var body: some View {
Button("Check for Updates...") {
updater.checkForUpdates()
}
.keyboardShortcut("u", modifiers: .command)
}
}