Enables check for updates

This commit is contained in:
Stuart Breckenridge 2020-07-16 06:43:11 +08:00
parent 0904ff519f
commit 995278ac58
No known key found for this signature in database
GPG Key ID: 79BD673276AE83CE
3 changed files with 8 additions and 2 deletions

View File

@ -65,7 +65,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCenterDele
private let appNewsURLString = "https://nnw.ranchero.com/feed.json" private let appNewsURLString = "https://nnw.ranchero.com/feed.json"
private let appMovementMonitor = RSAppMovementMonitor() private let appMovementMonitor = RSAppMovementMonitor()
#if !MAC_APP_STORE && !TEST #if !MAC_APP_STORE && !TEST
private var softwareUpdater: SPUUpdater! var softwareUpdater: SPUUpdater!
#endif #endif
override init() { override init() {

View File

@ -49,5 +49,9 @@
</array> </array>
</dict> </dict>
</array> </array>
<key>SUFeedURL</key>
<string>https://ranchero.com/downloads/netnewswire-5.1-beta.xml</string>
<key>FeedURLForTestBuilds</key>
<string>https://ranchero.com/downloads/netnewswire-5.1-beta.xml</string>
</dict> </dict>
</plist> </plist>

View File

@ -25,7 +25,9 @@ struct AdvancedPreferencesView: View {
HStack { HStack {
Spacer() Spacer()
Button("Check for Updates", action: {}) Button("Check for Updates") {
appDelegate.softwareUpdater.checkForUpdates()
}
Spacer() Spacer()
}.padding(.bottom, 8) }.padding(.bottom, 8)