From 995278ac58a35b0f01e5edd2c614e143eef47a07 Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Thu, 16 Jul 2020 06:43:11 +0800 Subject: [PATCH] Enables check for updates --- Multiplatform/macOS/AppDelegate.swift | 2 +- Multiplatform/macOS/Info.plist | 4 ++++ .../Preference Panes/Advanced/AdvancedPreferencesView.swift | 4 +++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Multiplatform/macOS/AppDelegate.swift b/Multiplatform/macOS/AppDelegate.swift index 2ad541197..cd4e7df12 100644 --- a/Multiplatform/macOS/AppDelegate.swift +++ b/Multiplatform/macOS/AppDelegate.swift @@ -65,7 +65,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCenterDele private let appNewsURLString = "https://nnw.ranchero.com/feed.json" private let appMovementMonitor = RSAppMovementMonitor() #if !MAC_APP_STORE && !TEST - private var softwareUpdater: SPUUpdater! + var softwareUpdater: SPUUpdater! #endif override init() { diff --git a/Multiplatform/macOS/Info.plist b/Multiplatform/macOS/Info.plist index 0d9d0860c..ec33c4818 100644 --- a/Multiplatform/macOS/Info.plist +++ b/Multiplatform/macOS/Info.plist @@ -49,5 +49,9 @@ + SUFeedURL + https://ranchero.com/downloads/netnewswire-5.1-beta.xml + FeedURLForTestBuilds + https://ranchero.com/downloads/netnewswire-5.1-beta.xml diff --git a/Multiplatform/macOS/Preferences/Preference Panes/Advanced/AdvancedPreferencesView.swift b/Multiplatform/macOS/Preferences/Preference Panes/Advanced/AdvancedPreferencesView.swift index 800514cf0..35f0dbaf2 100644 --- a/Multiplatform/macOS/Preferences/Preference Panes/Advanced/AdvancedPreferencesView.swift +++ b/Multiplatform/macOS/Preferences/Preference Panes/Advanced/AdvancedPreferencesView.swift @@ -25,7 +25,9 @@ struct AdvancedPreferencesView: View { HStack { Spacer() - Button("Check for Updates", action: {}) + Button("Check for Updates") { + appDelegate.softwareUpdater.checkForUpdates() + } Spacer() }.padding(.bottom, 8)