feat: add auto-update functionality and release scripts
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user