diff --git a/Sparkle/Autoupdate/AppInstaller.m b/Sparkle/Autoupdate/AppInstaller.m index 065a9efc..a0b7e7b9 100644 --- a/Sparkle/Autoupdate/AppInstaller.m +++ b/Sparkle/Autoupdate/AppInstaller.m @@ -266,7 +266,7 @@ static const NSTimeInterval SUDisplayProgressTimeDelay = 0.7; - (void)extractAndInstallUpdate { NSString *downloadPath = [self.installationData.updateDirectoryPath stringByAppendingPathComponent:self.installationData.downloadName]; - id unarchiver = [SUUnarchiver unarchiverForPath:downloadPath updatingHostBundlePath:self.host.bundlePath decryptionPassword:self.installationData.decryptionPassword delegate:self]; + id unarchiver = [SUUnarchiver unarchiverForPath:downloadPath updatingHostBundlePath:self.host.bundlePath decryptionPassword:self.installationData.decryptionPassword delegate:self]; if (!unarchiver) { SULog(@"Error: No valid unarchiver for %@!", downloadPath); [self unarchiverDidFail]; diff --git a/Sparkle/SUBinaryDeltaUnarchiver.h b/Sparkle/SUBinaryDeltaUnarchiver.h index bba78063..d7e0b7b6 100644 --- a/Sparkle/SUBinaryDeltaUnarchiver.h +++ b/Sparkle/SUBinaryDeltaUnarchiver.h @@ -14,7 +14,7 @@ NS_ASSUME_NONNULL_BEGIN -@interface SUBinaryDeltaUnarchiver : NSObject +@interface SUBinaryDeltaUnarchiver : NSObject - (instancetype)initWithArchivePath:(NSString *)archivePath updateHostBundlePath:(NSString *)updateHostBundlePath delegate:(nullable id )delegate; diff --git a/Sparkle/SUDiskImageUnarchiver.h b/Sparkle/SUDiskImageUnarchiver.h index 377b0e30..d39f68b3 100644 --- a/Sparkle/SUDiskImageUnarchiver.h +++ b/Sparkle/SUDiskImageUnarchiver.h @@ -14,7 +14,7 @@ NS_ASSUME_NONNULL_BEGIN -@interface SUDiskImageUnarchiver : NSObject +@interface SUDiskImageUnarchiver : NSObject - (instancetype)initWithArchivePath:(NSString *)archivePath decryptionPassword:(nullable NSString *)decryptionPassword delegate:(nullable id )delegate; diff --git a/Sparkle/SUPipedUnarchiver.h b/Sparkle/SUPipedUnarchiver.h index c2027396..caec2b9e 100644 --- a/Sparkle/SUPipedUnarchiver.h +++ b/Sparkle/SUPipedUnarchiver.h @@ -14,7 +14,7 @@ NS_ASSUME_NONNULL_BEGIN -@interface SUPipedUnarchiver : NSObject +@interface SUPipedUnarchiver : NSObject - (instancetype)initWithArchivePath:(NSString *)archivePath delegate:(nullable id )delegate; diff --git a/Sparkle/SUUnarchiver.h b/Sparkle/SUUnarchiver.h index dcb6370d..b732c313 100644 --- a/Sparkle/SUUnarchiver.h +++ b/Sparkle/SUUnarchiver.h @@ -10,12 +10,12 @@ NS_ASSUME_NONNULL_BEGIN -@protocol SUUnarchiver; +@protocol SUUnarchiverProtocol; @protocol SUUnarchiverDelegate; @interface SUUnarchiver : NSObject -+ (nullable id )unarchiverForPath:(NSString *)path updatingHostBundlePath:(nullable NSString *)hostPath decryptionPassword:(nullable NSString *)decryptionPassword delegate:(nullable id )delegate; ++ (nullable id )unarchiverForPath:(NSString *)path updatingHostBundlePath:(nullable NSString *)hostPath decryptionPassword:(nullable NSString *)decryptionPassword delegate:(nullable id )delegate; @end diff --git a/Sparkle/SUUnarchiver.m b/Sparkle/SUUnarchiver.m index fc38815f..cf630f57 100644 --- a/Sparkle/SUUnarchiver.m +++ b/Sparkle/SUUnarchiver.m @@ -18,7 +18,7 @@ @implementation SUUnarchiver -+ (nullable id )unarchiverForPath:(NSString *)path updatingHostBundlePath:(nullable NSString *)hostPath decryptionPassword:(nullable NSString *)decryptionPassword delegate:(nullable id )delegate ++ (nullable id )unarchiverForPath:(NSString *)path updatingHostBundlePath:(nullable NSString *)hostPath decryptionPassword:(nullable NSString *)decryptionPassword delegate:(nullable id )delegate { if ([SUPipedUnarchiver canUnarchivePath:path]) { return [[SUPipedUnarchiver alloc] initWithArchivePath:path delegate:delegate]; diff --git a/Sparkle/SUUnarchiverProtocol.h b/Sparkle/SUUnarchiverProtocol.h index 619ebbcf..8bcfd520 100644 --- a/Sparkle/SUUnarchiverProtocol.h +++ b/Sparkle/SUUnarchiverProtocol.h @@ -10,7 +10,7 @@ NS_ASSUME_NONNULL_BEGIN -@protocol SUUnarchiver +@protocol SUUnarchiverProtocol + (BOOL)canUnarchivePath:(NSString *)path;