mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-28 02:20:54 +01:00
Readd the SUUpdater code
This commit is contained in:
parent
57eadcdb22
commit
e80a5f92bb
@ -13,6 +13,9 @@ import RSTree
|
||||
import RSWeb
|
||||
import Account
|
||||
import RSCore
|
||||
#if TEST
|
||||
import Sparkle
|
||||
#endif
|
||||
|
||||
var appDelegate: AppDelegate!
|
||||
|
||||
@ -114,6 +117,10 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserInterfaceValidations,
|
||||
|
||||
func applicationWillFinishLaunching(_ notification: Notification) {
|
||||
installAppleEventHandlers()
|
||||
#if TEST
|
||||
// Don't prompt for updates while running automated tests
|
||||
SUUpdater.shared()?.automaticallyChecksForUpdates = false
|
||||
#endif
|
||||
}
|
||||
|
||||
func applicationDidFinishLaunching(_ note: Notification) {
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include "./NetNewsWire_project_debug.xcconfig"
|
||||
|
||||
OTHER_SWIFT_FLAGS = -DTEST $(inherited)
|
||||
FRAMEWORK_SEARCH_PATHS = $(inherited) $(SYMROOT)/Release$(EFFECTIVE_PLATFORM_NAME)
|
||||
|
Loading…
Reference in New Issue
Block a user