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