mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-28 05:14:34 +00:00
Rename SUUpdater -> SPUUpdater & add SUUpdater for backwards compatibility
New classes will soon be prefixed with "SPU" I still need to look into adding a compatibility layer for -updater:willInstallUpdateOnQuit:immediateInstallationInvocation: and possibly deprecating no-DSA instead of outright rejecting it.
This commit is contained in:
1 parent
c811db1e67
commit
4f285d2245
19 files changed
+1318
-945
No files matched your search
@@ -14,7 +14,7 @@ void _SULogDisableStandardErrorStream(void);
|
||||
|
||||
@interface SUCommandLineDriver () <SUUpdaterDelegate>
|
||||
|
||||
@property (nonatomic, readonly) SUUpdater *updater;
|
||||
@property (nonatomic, readonly) SPUUpdater *updater;
|
||||
@property (nonatomic, readonly) NSString *applicationBundlePath;
|
||||
@property (nonatomic, readonly) BOOL verbose;
|
||||
@property (nonatomic) BOOL probingForUpdates;
|
||||
@@ -64,7 +64,7 @@ void _SULogDisableStandardErrorStream(void);
|
||||
return self;
|
||||
}
|
||||
|
||||
- (BOOL)updaterShouldAllowInstallerInteraction:(SUUpdater *)__unused updater
|
||||
- (BOOL)updaterShouldAllowInstallerInteraction:(id)__unused updater
|
||||
{
|
||||
// If the installation is interactive, we can show an authorization prompt for requesting additional privileges,
|
||||
// otherwise we should have the installer inherit the updater's privileges.
|
||||
@@ -83,7 +83,7 @@ void _SULogDisableStandardErrorStream(void);
|
||||
}
|
||||
|
||||
// In case we fail during probing, otherwise we leave error handling to the user driver
|
||||
- (void)updaterDidNotFindUpdate:(SUUpdater *)__unused updater
|
||||
- (void)updaterDidNotFindUpdate:(id)__unused updater
|
||||
{
|
||||
if (self.probingForUpdates) {
|
||||
if (self.verbose) {
|
||||
@@ -94,7 +94,7 @@ void _SULogDisableStandardErrorStream(void);
|
||||
}
|
||||
|
||||
// In case we fail during probing, otherwise we leave error handling to the user driver
|
||||
- (void)updater:(SUUpdater *)__unused updater didAbortWithError:(NSError *)error
|
||||
- (void)updater:(id)__unused updater didAbortWithError:(NSError *)error
|
||||
{
|
||||
if (self.probingForUpdates) {
|
||||
if (self.verbose) {
|
||||
@@ -104,12 +104,12 @@ void _SULogDisableStandardErrorStream(void);
|
||||
}
|
||||
}
|
||||
|
||||
- (NSString *)pathToRelaunchForUpdater:(SUUpdater *)__unused updater
|
||||
- (NSString *)pathToRelaunchForUpdater:(id)__unused updater
|
||||
{
|
||||
return self.applicationBundlePath;
|
||||
}
|
||||
|
||||
- (BOOL)updaterShouldDownloadReleaseNotes:(SUUpdater *)__unused updater
|
||||
- (BOOL)updaterShouldDownloadReleaseNotes:(id)__unused updater
|
||||
{
|
||||
return self.verbose;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user