More SU -> SPU renaming for status completion results

This commit is contained in:
Zorg committed 2016-08-12 20:45:24 -04:00
1 parent f5afdc1cd8
commit 878c30d17c
19 files changed
+157 -157

No files matched your search

+4 -4
View File
@@ -240,7 +240,7 @@
7267E5FE1D3DD1B700D1BF90 /* SUDownloadedUpdate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5FC1D3DD1B700D1BF90 /* SUDownloadedUpdate.m */; };
7267E5FF1D3DD1B700D1BF90 /* SUDownloadedUpdate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5FC1D3DD1B700D1BF90 /* SUDownloadedUpdate.m */; };
7267E6001D3DD1B700D1BF90 /* SUDownloadedUpdate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7267E5FC1D3DD1B700D1BF90 /* SUDownloadedUpdate.m */; };
726DF88E1C84277600188804 /* SUStatusCompletionResults.h in Headers */ = {isa = PBXBuildFile; fileRef = 726DF88D1C84277500188804 /* SUStatusCompletionResults.h */; settings = {ATTRIBUTES = (Public, ); }; };
726DF88E1C84277600188804 /* SPUStatusCompletionResults.h in Headers */ = {isa = PBXBuildFile; fileRef = 726DF88D1C84277500188804 /* SPUStatusCompletionResults.h */; settings = {ATTRIBUTES = (Public, ); }; };
726E075C1CA3A6D6001A286B /* SPUSecureCoding.h in Headers */ = {isa = PBXBuildFile; fileRef = 726E075A1CA3A6D6001A286B /* SPUSecureCoding.h */; };
726E075D1CA3A6D6001A286B /* SPUSecureCoding.m in Sources */ = {isa = PBXBuildFile; fileRef = 726E075B1CA3A6D6001A286B /* SPUSecureCoding.m */; };
726E078D1CA891E9001A286B /* SPUUpdaterSettings.h in Headers */ = {isa = PBXBuildFile; fileRef = 726E078B1CA891E9001A286B /* SPUUpdaterSettings.h */; settings = {ATTRIBUTES = (Public, ); }; };
@@ -924,7 +924,7 @@
7267E5FB1D3DD1B700D1BF90 /* SUDownloadedUpdate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUDownloadedUpdate.h; sourceTree = "<group>"; };
7267E5FC1D3DD1B700D1BF90 /* SUDownloadedUpdate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUDownloadedUpdate.m; sourceTree = "<group>"; };
726B2B5D1C645FC900388755 /* UI Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "UI Tests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
726DF88D1C84277500188804 /* SUStatusCompletionResults.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUStatusCompletionResults.h; sourceTree = "<group>"; };
726DF88D1C84277500188804 /* SPUStatusCompletionResults.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUStatusCompletionResults.h; sourceTree = "<group>"; };
726E075A1CA3A6D6001A286B /* SPUSecureCoding.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SPUSecureCoding.h; path = Sparkle/SPUSecureCoding.h; sourceTree = SOURCE_ROOT; };
726E075B1CA3A6D6001A286B /* SPUSecureCoding.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SPUSecureCoding.m; path = Sparkle/SPUSecureCoding.m; sourceTree = SOURCE_ROOT; };
726E07681CA616A4001A286B /* libxar.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libxar.tbd; path = usr/lib/libxar.tbd; sourceTree = SDKROOT; };
@@ -1657,7 +1657,7 @@
725CB9561C7120410064365A /* SPUUserDriver.h */,
725F97791C8A896F00265BE4 /* SPUUserDriverCoreComponent.h */,
725F977A1C8A896F00265BE4 /* SPUUserDriverCoreComponent.m */,
726DF88D1C84277500188804 /* SUStatusCompletionResults.h */,
726DF88D1C84277500188804 /* SPUStatusCompletionResults.h */,
7246E0A11C83B685003B4E75 /* SPUStandardUpdaterController.h */,
7246E0A21C83B685003B4E75 /* SPUStandardUpdaterController.m */,
726E4A361C89116000C57C6A /* SPUStandardUserDriverDelegate.h */,
@@ -1863,7 +1863,7 @@
725CB95A1C7121830064365A /* SPUStandardUserDriver.h in Headers */,
725CB9571C7120410064365A /* SPUUserDriver.h in Headers */,
72162B061C82C8B30013C1C5 /* SUParameterAssert.h in Headers */,
726DF88E1C84277600188804 /* SUStatusCompletionResults.h in Headers */,
726DF88E1C84277600188804 /* SPUStatusCompletionResults.h in Headers */,
72A450531C69A68900D67EEA /* SPUUpdatePermission.h in Headers */,
7267E5B61D3D8AEE00D1BF90 /* SPUInstallationInfo.h in Headers */,
7229E1B61C97C91100CB50D0 /* SUUpdateDriver.h in Headers */,
+10 -10
View File
@@ -126,30 +126,30 @@
});
}
- (void)showUpdateFoundWithAppcastItem:(SUAppcastItem *)appcastItem reply:(void (^)(SUUpdateAlertChoice))reply
- (void)showUpdateFoundWithAppcastItem:(SUAppcastItem *)appcastItem reply:(void (^)(SPUUpdateAlertChoice))reply
{
[self showUpdateFoundWithAlertHandler:^SUUpdateAlert *(SPUStandardUserDriver *weakSelf, SUHost *host, id<SUVersionDisplay> versionDisplayer) {
return [[SUUpdateAlert alloc] initWithAppcastItem:appcastItem alreadyDownloaded:NO host:host versionDisplayer:versionDisplayer completionBlock:^(SUUpdateAlertChoice choice) {
return [[SUUpdateAlert alloc] initWithAppcastItem:appcastItem alreadyDownloaded:NO host:host versionDisplayer:versionDisplayer completionBlock:^(SPUUpdateAlertChoice choice) {
reply(choice);
weakSelf.activeUpdateAlert = nil;
}];
}];
}
- (void)showDownloadedUpdateFoundWithAppcastItem:(SUAppcastItem *)appcastItem reply:(void (^)(SUUpdateAlertChoice))reply
- (void)showDownloadedUpdateFoundWithAppcastItem:(SUAppcastItem *)appcastItem reply:(void (^)(SPUUpdateAlertChoice))reply
{
[self showUpdateFoundWithAlertHandler:^SUUpdateAlert *(SPUStandardUserDriver *weakSelf, SUHost *host, id<SUVersionDisplay> versionDisplayer) {
return [[SUUpdateAlert alloc] initWithAppcastItem:appcastItem alreadyDownloaded:YES host:host versionDisplayer:versionDisplayer completionBlock:^(SUUpdateAlertChoice choice) {
return [[SUUpdateAlert alloc] initWithAppcastItem:appcastItem alreadyDownloaded:YES host:host versionDisplayer:versionDisplayer completionBlock:^(SPUUpdateAlertChoice choice) {
reply(choice);
weakSelf.activeUpdateAlert = nil;
}];
}];
}
- (void)showResumableUpdateFoundWithAppcastItem:(SUAppcastItem *)appcastItem reply:(void (^)(SUInstallUpdateStatus))reply
- (void)showResumableUpdateFoundWithAppcastItem:(SUAppcastItem *)appcastItem reply:(void (^)(SPUInstallUpdateStatus))reply
{
[self showUpdateFoundWithAlertHandler:^SUUpdateAlert *(SPUStandardUserDriver *weakSelf, SUHost *host, id<SUVersionDisplay> versionDisplayer) {
return [[SUUpdateAlert alloc] initWithAppcastItem:appcastItem host:host versionDisplayer:versionDisplayer resumableCompletionBlock:^(SUInstallUpdateStatus choice) {
return [[SUUpdateAlert alloc] initWithAppcastItem:appcastItem host:host versionDisplayer:versionDisplayer resumableCompletionBlock:^(SPUInstallUpdateStatus choice) {
reply(choice);
weakSelf.activeUpdateAlert = nil;
}];
@@ -175,7 +175,7 @@
#pragma mark Install & Relaunch Update
- (void)showReadyToInstallAndRelaunch:(void (^)(SUInstallUpdateStatus))installUpdateHandler
- (void)showReadyToInstallAndRelaunch:(void (^)(SPUInstallUpdateStatus))installUpdateHandler
{
dispatch_async(dispatch_get_main_queue(), ^{
[self.statusController beginActionWithTitle:SULocalizedString(@"Ready to Install", nil) maxProgressValue:1.0 statusText:nil];
@@ -191,12 +191,12 @@
- (void)installAndRestart:(id)__unused sender
{
[self.coreComponent installUpdateWithChoice:SUInstallAndRelaunchUpdateNow];
[self.coreComponent installUpdateWithChoice:SPUInstallAndRelaunchUpdateNow];
}
#pragma mark Check for Updates
- (void)showUserInitiatedUpdateCheckWithCompletion:(void (^)(SUUserInitiatedCheckStatus))updateCheckStatusCompletion
- (void)showUserInitiatedUpdateCheckWithCompletion:(void (^)(SPUUserInitiatedCheckStatus))updateCheckStatusCompletion
{
dispatch_async(dispatch_get_main_queue(), ^{
[self.coreComponent registerUpdateCheckStatusHandler:updateCheckStatusCompletion];
@@ -303,7 +303,7 @@
}
}
- (void)showDownloadInitiatedWithCompletion:(void (^)(SUDownloadUpdateStatus))downloadUpdateStatusCompletion
- (void)showDownloadInitiatedWithCompletion:(void (^)(SPUDownloadUpdateStatus))downloadUpdateStatusCompletion
{
dispatch_async(dispatch_get_main_queue(), ^{
[self.coreComponent registerDownloadStatusHandler:downloadUpdateStatusCompletion];
+36
View File
@@ -0,0 +1,36 @@
//
// SPUStatusCompletionResults.h
// Sparkle
//
// Created by Mayur Pawashe on 2/29/16.
// Copyright © 2016 Sparkle Project. All rights reserved.
//
#ifndef SPUStatusCompletionResults_h
#define SPUStatusCompletionResults_h
#import <Foundation/Foundation.h>
typedef NS_ENUM(NSUInteger, SPUUserInitiatedCheckStatus) {
SPUUserInitiatedCheckDone,
SPUUserInitiatedCheckCanceled
};
typedef NS_ENUM(NSUInteger, SPUDownloadUpdateStatus) {
SPUDownloadUpdateDone,
SPUDownloadUpdateCanceled
};
typedef NS_ENUM(NSUInteger, SPUInstallUpdateStatus) {
SPUInstallUpdateNow,
SPUInstallAndRelaunchUpdateNow,
SPUDismissUpdateInstallation
};
typedef NS_ENUM(NSInteger, SPUUpdateAlertChoice) {
SPUInstallUpdateChoice,
SPUInstallLaterChoice,
SPUSkipThisVersionChoice
};
#endif /* SPUStatusCompletionResults_h */
+7 -7
View File
@@ -7,7 +7,7 @@
//
#import <Foundation/Foundation.h>
#import "SUStatusCompletionResults.h"
#import "SPUStatusCompletionResults.h"
#import "SUExport.h"
NS_ASSUME_NONNULL_BEGIN
@@ -65,7 +65,7 @@ SU_EXPORT @protocol SPUUserDriver <NSObject>
*
* This can be called from any thread
*/
- (void)showUserInitiatedUpdateCheckWithCompletion:(void (^)(SUUserInitiatedCheckStatus))updateCheckStatusCompletion;
- (void)showUserInitiatedUpdateCheckWithCompletion:(void (^)(SPUUserInitiatedCheckStatus))updateCheckStatusCompletion;
/*!
* Dismiss the user initiated update check from the user
@@ -94,14 +94,14 @@ SU_EXPORT @protocol SPUUserDriver <NSObject>
*
* This can be called from any thread
*/
- (void)showUpdateFoundWithAppcastItem:(SUAppcastItem *)appcastItem reply:(void (^)(SUUpdateAlertChoice))reply;
- (void)showUpdateFoundWithAppcastItem:(SUAppcastItem *)appcastItem reply:(void (^)(SPUUpdateAlertChoice))reply;
/*!
* Show the user a new update has been downloaded and can be installed
*
* This method behaves just like -showUpdateFoundWithAppcastItem:reply: except the update has already been downloaded.
*/
- (void)showDownloadedUpdateFoundWithAppcastItem:(SUAppcastItem *)appcastItem reply:(void (^)(SUUpdateAlertChoice))reply;
- (void)showDownloadedUpdateFoundWithAppcastItem:(SUAppcastItem *)appcastItem reply:(void (^)(SPUUpdateAlertChoice))reply;
/*!
* Show the user an update that has started installing can be resumed and installed immediately
@@ -118,7 +118,7 @@ SU_EXPORT @protocol SPUUserDriver <NSObject>
*
* This can be called from any thread
*/
- (void)showResumableUpdateFoundWithAppcastItem:(SUAppcastItem *)appcastItem reply:(void (^)(SUInstallUpdateStatus))reply;
- (void)showResumableUpdateFoundWithAppcastItem:(SUAppcastItem *)appcastItem reply:(void (^)(SPUInstallUpdateStatus))reply;
/*!
* Show the user the release notes for the new update
@@ -181,7 +181,7 @@ SU_EXPORT @protocol SPUUserDriver <NSObject>
*
* This can be called from any thread
*/
- (void)showDownloadInitiatedWithCompletion:(void (^)(SUDownloadUpdateStatus))downloadUpdateStatusCompletion;
- (void)showDownloadInitiatedWithCompletion:(void (^)(SPUDownloadUpdateStatus))downloadUpdateStatusCompletion;
/*!
* Show the user the content length of the new update that will be downloaded
@@ -239,7 +239,7 @@ SU_EXPORT @protocol SPUUserDriver <NSObject>
*
* This can be called from any thread
*/
- (void)showReadyToInstallAndRelaunch:(void (^)(SUInstallUpdateStatus))installUpdateHandler;
- (void)showReadyToInstallAndRelaunch:(void (^)(SPUInstallUpdateStatus))installUpdateHandler;
/*!
* Show the user that the update is installing
+5 -5
View File
@@ -7,7 +7,7 @@
//
#import <Foundation/Foundation.h>
#import "SUStatusCompletionResults.h"
#import "SPUStatusCompletionResults.h"
#import "SUExport.h"
@protocol SPUStandardUserDriverDelegate;
@@ -22,14 +22,14 @@ SU_EXPORT @interface SPUUserDriverCoreComponent : NSObject
@property (nonatomic, readonly) BOOL canCheckForUpdates;
- (void)registerInstallUpdateHandler:(void (^)(SUInstallUpdateStatus))installUpdateHandler;
- (void)installUpdateWithChoice:(SUInstallUpdateStatus)choice;
- (void)registerInstallUpdateHandler:(void (^)(SPUInstallUpdateStatus))installUpdateHandler;
- (void)installUpdateWithChoice:(SPUInstallUpdateStatus)choice;
- (void)registerUpdateCheckStatusHandler:(void (^)(SUUserInitiatedCheckStatus))updateCheckStatusCompletion;
- (void)registerUpdateCheckStatusHandler:(void (^)(SPUUserInitiatedCheckStatus))updateCheckStatusCompletion;
- (void)cancelUpdateCheckStatus;
- (void)completeUpdateCheckStatus;
- (void)registerDownloadStatusHandler:(void (^)(SUDownloadUpdateStatus))downloadUpdateStatusCompletion;
- (void)registerDownloadStatusHandler:(void (^)(SPUDownloadUpdateStatus))downloadUpdateStatusCompletion;
- (void)cancelDownloadStatus;
- (void)completeDownloadStatus;
+12 -12
View File
@@ -17,9 +17,9 @@
@property (nonatomic) BOOL canCheckForUpdates;
@property (nonatomic, copy) void (^installUpdateHandler)(SUInstallUpdateStatus);
@property (nonatomic, copy) void (^updateCheckStatusCompletion)(SUUserInitiatedCheckStatus);
@property (nonatomic, copy) void (^downloadStatusCompletion)(SUDownloadUpdateStatus);
@property (nonatomic, copy) void (^installUpdateHandler)(SPUInstallUpdateStatus);
@property (nonatomic, copy) void (^updateCheckStatusCompletion)(SPUUserInitiatedCheckStatus);
@property (nonatomic, copy) void (^downloadStatusCompletion)(SPUDownloadUpdateStatus);
@property (nonatomic, copy) void (^acknowledgement)(void);
@end
@@ -53,12 +53,12 @@
#pragma mark Install Updates
- (void)registerInstallUpdateHandler:(void (^)(SUInstallUpdateStatus))installUpdateHandler
- (void)registerInstallUpdateHandler:(void (^)(SPUInstallUpdateStatus))installUpdateHandler
{
self.installUpdateHandler = installUpdateHandler;
}
- (void)installUpdateWithChoice:(SUInstallUpdateStatus)choice
- (void)installUpdateWithChoice:(SPUInstallUpdateStatus)choice
{
if (self.installUpdateHandler != nil) {
self.installUpdateHandler(choice);
@@ -69,14 +69,14 @@
- (void)dismissInstallAndRestart
{
if (self.installUpdateHandler != nil) {
self.installUpdateHandler(SUDismissUpdateInstallation);
self.installUpdateHandler(SPUDismissUpdateInstallation);
self.installUpdateHandler = nil;
}
}
#pragma mark Update Check Status
- (void)registerUpdateCheckStatusHandler:(void (^)(SUUserInitiatedCheckStatus))updateCheckStatusCompletion
- (void)registerUpdateCheckStatusHandler:(void (^)(SPUUserInitiatedCheckStatus))updateCheckStatusCompletion
{
self.updateCheckStatusCompletion = updateCheckStatusCompletion;
}
@@ -84,7 +84,7 @@
- (void)cancelUpdateCheckStatus
{
if (self.updateCheckStatusCompletion != nil) {
self.updateCheckStatusCompletion(SUUserInitiatedCheckCanceled);
self.updateCheckStatusCompletion(SPUUserInitiatedCheckCanceled);
self.updateCheckStatusCompletion = nil;
}
}
@@ -92,14 +92,14 @@
- (void)completeUpdateCheckStatus
{
if (self.updateCheckStatusCompletion != nil) {
self.updateCheckStatusCompletion(SUUserInitiatedCheckDone);
self.updateCheckStatusCompletion(SPUUserInitiatedCheckDone);
self.updateCheckStatusCompletion = nil;
}
}
#pragma mark Download Status
- (void)registerDownloadStatusHandler:(void (^)(SUDownloadUpdateStatus))downloadUpdateStatusCompletion
- (void)registerDownloadStatusHandler:(void (^)(SPUDownloadUpdateStatus))downloadUpdateStatusCompletion
{
self.downloadStatusCompletion = downloadUpdateStatusCompletion;
}
@@ -107,7 +107,7 @@
- (void)cancelDownloadStatus
{
if (self.downloadStatusCompletion != nil) {
self.downloadStatusCompletion(SUDownloadUpdateCanceled);
self.downloadStatusCompletion(SPUDownloadUpdateCanceled);
self.downloadStatusCompletion = nil;
}
}
@@ -115,7 +115,7 @@
- (void)completeDownloadStatus
{
if (self.downloadStatusCompletion != nil) {
self.downloadStatusCompletion(SUDownloadUpdateDone);
self.downloadStatusCompletion(SPUDownloadUpdateDone);
self.downloadStatusCompletion = nil;
}
}
+2 -2
View File
@@ -82,7 +82,7 @@
// Method used for backwards compatibility for the updater delegate
- (void)finishInstallationAndRelaunch:(BOOL)relaunch displayingUserInterface:(BOOL)showingUI
{
[self.coreDriver finishInstallationWithResponse:(relaunch ? SUInstallAndRelaunchUpdateNow : SUInstallUpdateNow) displayingUserInterface:showingUI];
[self.coreDriver finishInstallationWithResponse:(relaunch ? SPUInstallAndRelaunchUpdateNow : SPUInstallUpdateNow) displayingUserInterface:showingUI];
}
- (void)installerDidFinishPreparationAndWillInstallImmediately:(BOOL)willInstallImmediately silently:(BOOL)willInstallSilently
@@ -96,7 +96,7 @@
if ([updaterDelegate respondsToSelector:@selector(updater:willInstallUpdateOnQuit:immediateInstallationBlock:)]) {
__weak SUAutomaticUpdateDriver *weakSelf = self;
installationHandledByDelegate = [updaterDelegate updater:self.updater willInstallUpdateOnQuit:self.updateItem immediateInstallationBlock:^{
[weakSelf.coreDriver finishInstallationWithResponse:SUInstallAndRelaunchUpdateNow displayingUserInterface:NO];
[weakSelf.coreDriver finishInstallationWithResponse:SPUInstallAndRelaunchUpdateNow displayingUserInterface:NO];
}];
} else if ([updaterDelegate respondsToSelector:@selector(updater:willInstallUpdateOnQuit:immediateInstallationInvocation:)]) {
// Just for backwards compatibility
+2 -2
View File
@@ -7,7 +7,7 @@
//
#import <Foundation/Foundation.h>
#import "SUStatusCompletionResults.h"
#import "SPUStatusCompletionResults.h"
#import "SUUpdateDriver.h"
NS_ASSUME_NONNULL_BEGIN
@@ -63,7 +63,7 @@ NS_ASSUME_NONNULL_BEGIN
- (void)clearDownloadedUpdate;
- (void)finishInstallationWithResponse:(SUInstallUpdateStatus)installUpdateStatus displayingUserInterface:(BOOL)displayingUserInterface;
- (void)finishInstallationWithResponse:(SPUInstallUpdateStatus)installUpdateStatus displayingUserInterface:(BOOL)displayingUserInterface;
- (void)abortUpdateAndShowNextUpdateImmediately:(BOOL)shouldShowUpdateImmediately error:(nullable NSError *)error;
+4 -4
View File
@@ -213,16 +213,16 @@
[self.delegate installerDidFinishPreparationAndWillInstallImmediately:willInstallImmediately silently:willInstallSilently];
}
- (void)finishInstallationWithResponse:(SUInstallUpdateStatus)installUpdateStatus displayingUserInterface:(BOOL)displayingUserInterface
- (void)finishInstallationWithResponse:(SPUInstallUpdateStatus)installUpdateStatus displayingUserInterface:(BOOL)displayingUserInterface
{
switch (installUpdateStatus) {
case SUDismissUpdateInstallation:
case SPUDismissUpdateInstallation:
[self.delegate coreDriverIsRequestingAbortUpdateWithError:nil];
break;
case SUInstallUpdateNow:
case SPUInstallUpdateNow:
[self.installerDriver installWithToolAndRelaunch:NO displayingUserInterface:displayingUserInterface];
break;
case SUInstallAndRelaunchUpdateNow:
case SPUInstallAndRelaunchUpdateNow:
[self.installerDriver installWithToolAndRelaunch:YES displayingUserInterface:displayingUserInterface];
break;
}
-36
View File
@@ -1,36 +0,0 @@
//
// SUStatusCompletionResults.h
// Sparkle
//
// Created by Mayur Pawashe on 2/29/16.
// Copyright © 2016 Sparkle Project. All rights reserved.
//
#ifndef SUStatusCompletionResults_h
#define SUStatusCompletionResults_h
#import <Foundation/Foundation.h>
typedef NS_ENUM(NSUInteger, SUUserInitiatedCheckStatus) {
SUUserInitiatedCheckDone,
SUUserInitiatedCheckCanceled
};
typedef NS_ENUM(NSUInteger, SUDownloadUpdateStatus) {
SUDownloadUpdateDone,
SUDownloadUpdateCanceled
};
typedef NS_ENUM(NSUInteger, SUInstallUpdateStatus) {
SUInstallUpdateNow,
SUInstallAndRelaunchUpdateNow,
SUDismissUpdateInstallation
};
typedef NS_ENUM(NSInteger, SUUpdateAlertChoice) {
SUInstallUpdateChoice,
SUInstallLaterChoice,
SUSkipThisVersionChoice
};
#endif /* SUStatusCompletionResults_h */
+13 -13
View File
@@ -97,42 +97,42 @@
- (void)basicDriverDidFindUpdateWithAppcastItem:(SUAppcastItem *)updateItem
{
if (self.resumingDownloadedUpdate) {
[self.userDriver showDownloadedUpdateFoundWithAppcastItem:updateItem reply:^(SUUpdateAlertChoice choice) {
[self.userDriver showDownloadedUpdateFoundWithAppcastItem:updateItem reply:^(SPUUpdateAlertChoice choice) {
dispatch_async(dispatch_get_main_queue(), ^{
[self.host setObject:nil forUserDefaultsKey:SUSkippedVersionKey];
switch (choice) {
case SUInstallUpdateChoice:
case SPUInstallUpdateChoice:
[self.coreDriver extractDownloadedUpdate];
break;
case SUSkipThisVersionChoice:
case SPUSkipThisVersionChoice:
[self.coreDriver clearDownloadedUpdate];
[self.host setObject:[updateItem versionString] forUserDefaultsKey:SUSkippedVersionKey];
// Fall through
case SUInstallLaterChoice:
case SPUInstallLaterChoice:
[self.delegate uiDriverIsRequestingAbortUpdateWithError:nil];
break;
}
});
}];
} else if (!self.resumingInstallingUpdate) {
[self.userDriver showUpdateFoundWithAppcastItem:updateItem reply:^(SUUpdateAlertChoice choice) {
[self.userDriver showUpdateFoundWithAppcastItem:updateItem reply:^(SPUUpdateAlertChoice choice) {
dispatch_async(dispatch_get_main_queue(), ^{
[self.host setObject:nil forUserDefaultsKey:SUSkippedVersionKey];
switch (choice) {
case SUInstallUpdateChoice:
case SPUInstallUpdateChoice:
[self.coreDriver downloadUpdateFromAppcastItem:updateItem];
break;
case SUSkipThisVersionChoice:
case SPUSkipThisVersionChoice:
[self.host setObject:[updateItem versionString] forUserDefaultsKey:SUSkippedVersionKey];
// Fall through
case SUInstallLaterChoice:
case SPUInstallLaterChoice:
[self.delegate uiDriverIsRequestingAbortUpdateWithError:nil];
break;
}
});
}];
} else {
[self.userDriver showResumableUpdateFoundWithAppcastItem:updateItem reply:^(SUInstallUpdateStatus choice) {
[self.userDriver showResumableUpdateFoundWithAppcastItem:updateItem reply:^(SPUInstallUpdateStatus choice) {
dispatch_async(dispatch_get_main_queue(), ^{
[self.host setObject:nil forUserDefaultsKey:SUSkippedVersionKey];
[self.coreDriver finishInstallationWithResponse:choice displayingUserInterface:[self canDisplayInstallerUserInterface]];
@@ -157,11 +157,11 @@
- (void)downloadDriverWillBeginDownload
{
[self.userDriver showDownloadInitiatedWithCompletion:^(SUDownloadUpdateStatus downloadCompletionStatus) {
[self.userDriver showDownloadInitiatedWithCompletion:^(SPUDownloadUpdateStatus downloadCompletionStatus) {
switch (downloadCompletionStatus) {
case SUDownloadUpdateDone:
case SPUDownloadUpdateDone:
break;
case SUDownloadUpdateCanceled:
case SPUDownloadUpdateCanceled:
dispatch_async(dispatch_get_main_queue(), ^{
if ([self.updaterDelegate respondsToSelector:@selector(userDidCancelDownload:)]) {
[self.updaterDelegate userDidCancelDownload:self.updater];
@@ -202,7 +202,7 @@
- (void)installerDidFinishPreparationAndWillInstallImmediately:(BOOL)willInstallImmediately silently:(BOOL)__unused willInstallSilently
{
if (!willInstallImmediately) {
[self.userDriver showReadyToInstallAndRelaunch:^(SUInstallUpdateStatus installUpdateStatus) {
[self.userDriver showReadyToInstallAndRelaunch:^(SPUInstallUpdateStatus installUpdateStatus) {
dispatch_async(dispatch_get_main_queue(), ^{
[self.coreDriver finishInstallationWithResponse:installUpdateStatus displayingUserInterface:[self canDisplayInstallerUserInterface]];
});
+3 -3
View File
@@ -11,7 +11,7 @@
#import <Cocoa/Cocoa.h>
#import "SUVersionDisplayProtocol.h"
#import "SUStatusCompletionResults.h"
#import "SPUStatusCompletionResults.h"
@protocol SUUpdateAlertDelegate;
@@ -20,9 +20,9 @@
@property (nonatomic, weak, readonly) id <SUVersionDisplay> versionDisplayer;
- (instancetype)initWithAppcastItem:(SUAppcastItem *)item alreadyDownloaded:(BOOL)alreadyDownloaded host:(SUHost *)aHost versionDisplayer:(id <SUVersionDisplay>)aVersionDisplayer completionBlock:(void (^)(SUUpdateAlertChoice))block;
- (instancetype)initWithAppcastItem:(SUAppcastItem *)item alreadyDownloaded:(BOOL)alreadyDownloaded host:(SUHost *)aHost versionDisplayer:(id <SUVersionDisplay>)aVersionDisplayer completionBlock:(void (^)(SPUUpdateAlertChoice))block;
- (instancetype)initWithAppcastItem:(SUAppcastItem *)item host:(SUHost *)aHost versionDisplayer:(id <SUVersionDisplay>)aVersionDisplayer resumableCompletionBlock:(void (^)(SUInstallUpdateStatus))block;
- (instancetype)initWithAppcastItem:(SUAppcastItem *)item host:(SUHost *)aHost versionDisplayer:(id <SUVersionDisplay>)aVersionDisplayer resumableCompletionBlock:(void (^)(SPUInstallUpdateStatus))block;
- (void)showUpdateReleaseNotesWithDownloadData:(SPUDownloadData *)downloadData;
- (void)showReleaseNotesFailedToDownload;
+15 -15
View File
@@ -38,8 +38,8 @@
@property (nonatomic) BOOL alreadyDownloaded;
@property (strong) SUHost *host;
@property (nonatomic) BOOL allowsAutomaticUpdates;
@property (nonatomic, copy, nullable) void(^completionBlock)(SUUpdateAlertChoice);
@property (nonatomic, copy, nullable) void(^resumableCompletionBlock)(SUInstallUpdateStatus);
@property (nonatomic, copy, nullable) void(^completionBlock)(SPUUpdateAlertChoice);
@property (nonatomic, copy, nullable) void(^resumableCompletionBlock)(SPUInstallUpdateStatus);
@property (strong) NSProgressIndicator *releaseNotesSpinner;
@property (assign) BOOL webViewFinishedLoading;
@@ -96,7 +96,7 @@
return self;
}
- (instancetype)initWithAppcastItem:(SUAppcastItem *)item alreadyDownloaded:(BOOL)alreadyDownloaded host:(SUHost *)aHost versionDisplayer:(id <SUVersionDisplay>)aVersionDisplayer completionBlock:(void (^)(SUUpdateAlertChoice))block
- (instancetype)initWithAppcastItem:(SUAppcastItem *)item alreadyDownloaded:(BOOL)alreadyDownloaded host:(SUHost *)aHost versionDisplayer:(id <SUVersionDisplay>)aVersionDisplayer completionBlock:(void (^)(SPUUpdateAlertChoice))block
{
self = [self initWithAppcastItem:item host:aHost versionDisplayer:aVersionDisplayer];
if (self != nil)
@@ -107,7 +107,7 @@
return self;
}
- (instancetype)initWithAppcastItem:(SUAppcastItem *)item host:(SUHost *)aHost versionDisplayer:(id <SUVersionDisplay>)aVersionDisplayer resumableCompletionBlock:(void (^)(SUInstallUpdateStatus))block
- (instancetype)initWithAppcastItem:(SUAppcastItem *)item host:(SUHost *)aHost versionDisplayer:(id <SUVersionDisplay>)aVersionDisplayer resumableCompletionBlock:(void (^)(SPUInstallUpdateStatus))block
{
self = [self initWithAppcastItem:item host:aHost versionDisplayer:aVersionDisplayer];
if (self != nil)
@@ -121,7 +121,7 @@
- (NSString *)description { return [NSString stringWithFormat:@"%@ <%@>", [self class], [self.host bundlePath]]; }
- (void)endWithSelection:(SUUpdateAlertChoice)choice
- (void)endWithSelection:(SPUUpdateAlertChoice)choice
{
[self.releaseNotesView stopLoading:self];
[self.releaseNotesView setFrameLoadDelegate:nil];
@@ -134,13 +134,13 @@
self.completionBlock = nil;
} else if (self.resumableCompletionBlock != nil) {
switch (choice) {
case SUInstallUpdateChoice:
self.resumableCompletionBlock(SUInstallAndRelaunchUpdateNow);
case SPUInstallUpdateChoice:
self.resumableCompletionBlock(SPUInstallAndRelaunchUpdateNow);
break;
case SUInstallLaterChoice:
self.resumableCompletionBlock(SUDismissUpdateInstallation);
case SPUInstallLaterChoice:
self.resumableCompletionBlock(SPUDismissUpdateInstallation);
break;
case SUSkipThisVersionChoice:
case SPUSkipThisVersionChoice:
abort();
}
self.resumableCompletionBlock = nil;
@@ -149,24 +149,24 @@
- (IBAction)installUpdate:(id)__unused sender
{
[self endWithSelection:SUInstallUpdateChoice];
[self endWithSelection:SPUInstallUpdateChoice];
}
- (IBAction)openInfoURL:(id)__unused sender
{
[[NSWorkspace sharedWorkspace] openURL:self.updateItem.infoURL];
[self endWithSelection:SUInstallLaterChoice];
[self endWithSelection:SPUInstallLaterChoice];
}
- (IBAction)skipThisVersion:(id)__unused sender
{
[self endWithSelection:SUSkipThisVersionChoice];
[self endWithSelection:SPUSkipThisVersionChoice];
}
- (IBAction)remindMeLater:(id)__unused sender
{
[self endWithSelection:SUInstallLaterChoice];
[self endWithSelection:SPUInstallLaterChoice];
}
- (void)displayReleaseNotes
@@ -293,7 +293,7 @@
- (BOOL)windowShouldClose:(NSNotification *) __unused note
{
[self endWithSelection:SUInstallLaterChoice];
[self endWithSelection:SPUInstallLaterChoice];
return YES;
}
+3 -3
View File
@@ -42,11 +42,11 @@
{
self.showingUserInitiatedProgress = YES;
[self.userDriver showUserInitiatedUpdateCheckWithCompletion:^(SUUserInitiatedCheckStatus completionStatus) {
[self.userDriver showUserInitiatedUpdateCheckWithCompletion:^(SPUUserInitiatedCheckStatus completionStatus) {
switch (completionStatus) {
case SUUserInitiatedCheckDone:
case SPUUserInitiatedCheckDone:
break;
case SUUserInitiatedCheckCanceled:
case SPUUserInitiatedCheckCanceled:
dispatch_async(dispatch_get_main_queue(), ^{
if (self.showingUserInitiatedProgress) {
[self abortUpdate];
@@ -7,12 +7,12 @@
//
#import <Cocoa/Cocoa.h>
#import "SUStatusCompletionResults.h"
#import "SPUStatusCompletionResults.h"
@class SUAppcastItem;
@interface SUInstallUpdateViewController : NSViewController
- (instancetype)initWithAppcastItem:(SUAppcastItem *)appcastItem skippable:(BOOL)skippable reply:(void (^)(SUUpdateAlertChoice))reply;
- (instancetype)initWithAppcastItem:(SUAppcastItem *)appcastItem skippable:(BOOL)skippable reply:(void (^)(SPUUpdateAlertChoice))reply;
@end
@@ -14,7 +14,7 @@
@property (nonatomic) IBOutlet NSButton *skipUpdatesButton;
@property (nonatomic) IBOutlet NSTextView *textView;
@property (nonatomic, readonly) SUAppcastItem *appcastItem;
@property (nonatomic, copy) void (^reply)(SUUpdateAlertChoice);
@property (nonatomic, copy) void (^reply)(SPUUpdateAlertChoice);
@property (nonatomic, readonly) BOOL skippable;
@end
@@ -27,7 +27,7 @@
@synthesize reply = _reply;
@synthesize skippable = _skippable;
- (instancetype)initWithAppcastItem:(SUAppcastItem *)appcastItem skippable:(BOOL)skippable reply:(void (^)(SUUpdateAlertChoice))reply
- (instancetype)initWithAppcastItem:(SUAppcastItem *)appcastItem skippable:(BOOL)skippable reply:(void (^)(SPUUpdateAlertChoice))reply
{
self = [super initWithNibName:@"SUInstallUpdateViewController" bundle:nil];
if (self != nil) {
@@ -60,7 +60,7 @@
- (IBAction)installUpdate:(id)__unused sender
{
if (self.reply != nil) {
self.reply(SUInstallUpdateChoice);
self.reply(SPUInstallUpdateChoice);
self.reply = nil;
}
}
@@ -68,7 +68,7 @@
- (IBAction)installUpdateLater:(id)__unused sender
{
if (self.reply != nil) {
self.reply(SUInstallLaterChoice);
self.reply(SPUInstallLaterChoice);
self.reply = nil;
}
}
@@ -76,7 +76,7 @@
- (IBAction)skipUpdate:(id)__unused sender
{
if (self.reply != nil) {
self.reply(SUSkipThisVersionChoice);
self.reply(SPUSkipThisVersionChoice);
self.reply = nil;
}
}
+15 -15
View File
@@ -128,14 +128,14 @@
#pragma mark Update Found
- (void)showUpdateWithAppcastItem:(SUAppcastItem *)appcastItem skippable:(BOOL)skippable reply:(void (^)(SUUpdateAlertChoice))reply
- (void)showUpdateWithAppcastItem:(SUAppcastItem *)appcastItem skippable:(BOOL)skippable reply:(void (^)(SPUUpdateAlertChoice))reply
{
NSPopover *popover = [[NSPopover alloc] init];
popover.behavior = NSPopoverBehaviorTransient;
[self addUpdateButtonWithTitle:@"Update Available" action:^(NSButton *button) {
if (popover.contentViewController == nil) {
popover.contentViewController = [[SUInstallUpdateViewController alloc] initWithAppcastItem:appcastItem skippable:skippable reply:^(SUUpdateAlertChoice choice) {
popover.contentViewController = [[SUInstallUpdateViewController alloc] initWithAppcastItem:appcastItem skippable:skippable reply:^(SPUUpdateAlertChoice choice) {
reply(choice);
[popover close];
@@ -147,32 +147,32 @@
}];
}
- (void)showUpdateFoundWithAppcastItem:(SUAppcastItem *)appcastItem reply:(void (^)(SUUpdateAlertChoice))reply
- (void)showUpdateFoundWithAppcastItem:(SUAppcastItem *)appcastItem reply:(void (^)(SPUUpdateAlertChoice))reply
{
dispatch_async(dispatch_get_main_queue(), ^{
[self showUpdateWithAppcastItem:appcastItem skippable:YES reply:reply];
});
}
- (void)showDownloadedUpdateFoundWithAppcastItem:(SUAppcastItem *)appcastItem reply:(void (^)(SUUpdateAlertChoice))reply
- (void)showDownloadedUpdateFoundWithAppcastItem:(SUAppcastItem *)appcastItem reply:(void (^)(SPUUpdateAlertChoice))reply
{
dispatch_async(dispatch_get_main_queue(), ^{
[self showUpdateWithAppcastItem:appcastItem skippable:YES reply:reply];
});
}
- (void)showResumableUpdateFoundWithAppcastItem:(SUAppcastItem *)appcastItem reply:(void (^)(SUInstallUpdateStatus))reply
- (void)showResumableUpdateFoundWithAppcastItem:(SUAppcastItem *)appcastItem reply:(void (^)(SPUInstallUpdateStatus))reply
{
dispatch_async(dispatch_get_main_queue(), ^{
[self showUpdateWithAppcastItem:appcastItem skippable:NO reply:^(SUUpdateAlertChoice choice) {
[self showUpdateWithAppcastItem:appcastItem skippable:NO reply:^(SPUUpdateAlertChoice choice) {
switch (choice) {
case SUInstallUpdateChoice:
reply(SUInstallAndRelaunchUpdateNow);
case SPUInstallUpdateChoice:
reply(SPUInstallAndRelaunchUpdateNow);
break;
case SUInstallLaterChoice:
reply(SUDismissUpdateInstallation);
case SPUInstallLaterChoice:
reply(SPUDismissUpdateInstallation);
break;
case SUSkipThisVersionChoice:
case SPUSkipThisVersionChoice:
abort();
}
}];
@@ -190,21 +190,21 @@
#pragma mark Install & Relaunch Update
- (void)showReadyToInstallAndRelaunch:(void (^)(SUInstallUpdateStatus))installUpdateHandler
- (void)showReadyToInstallAndRelaunch:(void (^)(SPUInstallUpdateStatus))installUpdateHandler
{
dispatch_async(dispatch_get_main_queue(), ^{
[self.coreComponent registerInstallUpdateHandler:installUpdateHandler];
__weak SUPopUpTitlebarUserDriver *weakSelf = self;
[self addUpdateButtonWithTitle:@"Install & Relaunch" action:^(NSButton *__unused button) {
[weakSelf.coreComponent installUpdateWithChoice:SUInstallAndRelaunchUpdateNow];
[weakSelf.coreComponent installUpdateWithChoice:SPUInstallAndRelaunchUpdateNow];
}];
});
}
#pragma mark Check for Updates
- (void)showUserInitiatedUpdateCheckWithCompletion:(void (^)(SUUserInitiatedCheckStatus))updateCheckStatusCompletion
- (void)showUserInitiatedUpdateCheckWithCompletion:(void (^)(SPUUserInitiatedCheckStatus))updateCheckStatusCompletion
{
dispatch_async(dispatch_get_main_queue(), ^{
[self.coreComponent registerUpdateCheckStatusHandler:updateCheckStatusCompletion];
@@ -254,7 +254,7 @@
#pragma mark Download & Install Updates
- (void)showDownloadInitiatedWithCompletion:(void (^)(SUDownloadUpdateStatus))downloadUpdateStatusCompletion
- (void)showDownloadInitiatedWithCompletion:(void (^)(SPUDownloadUpdateStatus))downloadUpdateStatusCompletion
{
dispatch_async(dispatch_get_main_queue(), ^{
[self.coreComponent registerDownloadStatusHandler:downloadUpdateStatusCompletion];
+6 -6
View File
@@ -23,15 +23,15 @@
- (void)requestUpdatePermissionWithSystemProfile:(NSArray *)__unused systemProfile reply:(void (^)(SPUUpdatePermission *))__unused reply {}
- (void)showUserInitiatedUpdateCheckWithCompletion:(void (^)(SUUserInitiatedCheckStatus))__unused updateCheckStatusCompletion {}
- (void)showUserInitiatedUpdateCheckWithCompletion:(void (^)(SPUUserInitiatedCheckStatus))__unused updateCheckStatusCompletion {}
- (void)dismissUserInitiatedUpdateCheck {}
- (void)showUpdateFoundWithAppcastItem:(SUAppcastItem *)__unused appcastItem reply:(void (^)(SUUpdateAlertChoice))__unused reply {}
- (void)showUpdateFoundWithAppcastItem:(SUAppcastItem *)__unused appcastItem reply:(void (^)(SPUUpdateAlertChoice))__unused reply {}
- (void)showDownloadedUpdateFoundWithAppcastItem:(SUAppcastItem *)__unused appcastItem reply:(void (^)(SUUpdateAlertChoice))__unused reply {}
- (void)showDownloadedUpdateFoundWithAppcastItem:(SUAppcastItem *)__unused appcastItem reply:(void (^)(SPUUpdateAlertChoice))__unused reply {}
- (void)showResumableUpdateFoundWithAppcastItem:(SUAppcastItem *)__unused appcastItem reply:(void (^)(SUInstallUpdateStatus))__unused reply {}
- (void)showResumableUpdateFoundWithAppcastItem:(SUAppcastItem *)__unused appcastItem reply:(void (^)(SPUInstallUpdateStatus))__unused reply {}
- (void)showUpdateReleaseNotesWithDownloadData:(SPUDownloadData *)__unused downloadData {}
@@ -41,7 +41,7 @@
- (void)showUpdaterError:(NSError *)__unused error acknowledgement:(void (^)(void))__unused acknowledgement {}
- (void)showDownloadInitiatedWithCompletion:(void (^)(SUDownloadUpdateStatus))__unused downloadUpdateStatusCompletion {}
- (void)showDownloadInitiatedWithCompletion:(void (^)(SPUDownloadUpdateStatus))__unused downloadUpdateStatusCompletion {}
- (void)showDownloadDidReceiveExpectedContentLength:(NSUInteger)__unused expectedContentLength {}
@@ -51,7 +51,7 @@
- (void)showExtractionReceivedProgress:(double)__unused progress {}
- (void)showReadyToInstallAndRelaunch:(void (^)(SUInstallUpdateStatus))__unused installUpdateHandler {}
- (void)showReadyToInstallAndRelaunch:(void (^)(SPUInstallUpdateStatus))__unused installUpdateHandler {}
- (void)showInstallingUpdate {}
+13 -13
View File
@@ -71,7 +71,7 @@
});
}
- (void)showUserInitiatedUpdateCheckWithCompletion:(void (^)(SUUserInitiatedCheckStatus))updateCheckStatusCompletion
- (void)showUserInitiatedUpdateCheckWithCompletion:(void (^)(SPUUserInitiatedCheckStatus))updateCheckStatusCompletion
{
dispatch_async(dispatch_get_main_queue(), ^{
[self.coreComponent registerUpdateCheckStatusHandler:updateCheckStatusCompletion];
@@ -122,23 +122,23 @@
}
}
- (void)showUpdateFoundWithAppcastItem:(SUAppcastItem *)appcastItem reply:(void (^)(SUUpdateAlertChoice))reply
- (void)showUpdateFoundWithAppcastItem:(SUAppcastItem *)appcastItem reply:(void (^)(SPUUpdateAlertChoice))reply
{
dispatch_async(dispatch_get_main_queue(), ^{
[self showUpdateWithAppcastItem:appcastItem updateAdjective:@"new"];
reply(SUInstallUpdateChoice);
reply(SPUInstallUpdateChoice);
});
}
- (void)showDownloadedUpdateFoundWithAppcastItem:(SUAppcastItem *)appcastItem reply:(void (^)(SUUpdateAlertChoice))reply
- (void)showDownloadedUpdateFoundWithAppcastItem:(SUAppcastItem *)appcastItem reply:(void (^)(SPUUpdateAlertChoice))reply
{
dispatch_async(dispatch_get_main_queue(), ^{
[self showUpdateWithAppcastItem:appcastItem updateAdjective:@"downloaded"];
reply(SUInstallUpdateChoice);
reply(SPUInstallUpdateChoice);
});
}
- (void)showResumableUpdateFoundWithAppcastItem:(SUAppcastItem *)appcastItem reply:(void (^)(SUInstallUpdateStatus))reply
- (void)showResumableUpdateFoundWithAppcastItem:(SUAppcastItem *)appcastItem reply:(void (^)(SPUInstallUpdateStatus))reply
{
dispatch_async(dispatch_get_main_queue(), ^{
[self.coreComponent registerInstallUpdateHandler:reply];
@@ -148,9 +148,9 @@
if (self.verbose) {
fprintf(stderr, "Deferring Installation.\n");
}
[self.coreComponent installUpdateWithChoice:SUDismissUpdateInstallation];
[self.coreComponent installUpdateWithChoice:SPUDismissUpdateInstallation];
} else {
[self.coreComponent installUpdateWithChoice:SUInstallAndRelaunchUpdateNow];
[self.coreComponent installUpdateWithChoice:SPUInstallAndRelaunchUpdateNow];
}
});
}
@@ -206,7 +206,7 @@
});
}
- (void)showDownloadInitiatedWithCompletion:(void (^)(SUDownloadUpdateStatus))downloadUpdateStatusCompletion
- (void)showDownloadInitiatedWithCompletion:(void (^)(SPUDownloadUpdateStatus))downloadUpdateStatusCompletion
{
dispatch_async(dispatch_get_main_queue(), ^{
[self.coreComponent registerDownloadStatusHandler:downloadUpdateStatusCompletion];
@@ -258,7 +258,7 @@
});
}
- (void)showReadyToInstallAndRelaunch:(void (^)(SUInstallUpdateStatus))installUpdateHandler
- (void)showReadyToInstallAndRelaunch:(void (^)(SPUInstallUpdateStatus))installUpdateHandler
{
dispatch_async(dispatch_get_main_queue(), ^{
[self.coreComponent registerInstallUpdateHandler:installUpdateHandler];
@@ -267,11 +267,11 @@
if (self.verbose) {
fprintf(stderr, "Deferring Installation.\n");
}
[self.coreComponent installUpdateWithChoice:SUDismissUpdateInstallation];
[self.coreComponent installUpdateWithChoice:SPUDismissUpdateInstallation];
} else if ([SPUApplicationInfo runningApplicationWithBundle:self.applicationBundle] != nil) {
[self.coreComponent installUpdateWithChoice:SUInstallAndRelaunchUpdateNow];
[self.coreComponent installUpdateWithChoice:SPUInstallAndRelaunchUpdateNow];
} else {
[self.coreComponent installUpdateWithChoice:SUInstallUpdateNow];
[self.coreComponent installUpdateWithChoice:SPUInstallUpdateNow];
}
});
}