From a9eea94d4eece284ffb001763e8509053b96318c Mon Sep 17 00:00:00 2001 From: Angelo Stavrow Date: Tue, 22 Dec 2020 17:02:56 -0500 Subject: [PATCH] Stub out basic checking for updates in AppDelegate --- macOS/AppDelegate.swift | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/macOS/AppDelegate.swift b/macOS/AppDelegate.swift index 3894904..b44a890 100644 --- a/macOS/AppDelegate.swift +++ b/macOS/AppDelegate.swift @@ -1,7 +1,13 @@ 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) } }