mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
14 lines
450 B
Swift
14 lines
450 B
Swift
import Cocoa
|
||
import Sparkle
|
||
|
||
class AppDelegate: NSObject, NSApplicationDelegate {
|
||
func applicationDidFinishLaunching(_ notification: Notification) {
|
||
SUUpdater.shared()?.automaticallyChecksForUpdates = true
|
||
/*
|
||
Next line prints:
|
||
⚠️ You must specify the URL of the appcast as the SUFeedURL key in either the Info.plist or the user defaults!
|
||
*/
|
||
SUUpdater.shared()?.checkForUpdates(self)
|
||
}
|
||
}
|