swiftui-multiplatform/macOS/AppDelegate.swift
2020-12-22 17:02:56 -05:00

14 lines
450 B
Swift
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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)
}
}