mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-27 05:04:27 +00:00
If we download a package type installation or a delta update, we should validate the update before trying to unarchive it. We can't do this with ordinary updates because we handle changing of DSA keys for that particular case.
37 lines
587 B
Objective-C
37 lines
587 B
Objective-C
//
|
|
// SUUnarchiverProtocol.h
|
|
// Sparkle
|
|
//
|
|
// Created by Mayur Pawashe on 3/26/16.
|
|
// Copyright © 2016 Sparkle Project. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@protocol SUUnarchiverProtocol <NSObject>
|
|
|
|
+ (BOOL)canUnarchivePath:(NSString *)path;
|
|
|
|
+ (BOOL)requiresValidationBeforeUnarchiving;
|
|
|
|
- (void)start;
|
|
|
|
- (NSString *)description;
|
|
|
|
@end
|
|
|
|
@protocol SUUnarchiverDelegate <NSObject>
|
|
|
|
- (void)unarchiverDidFinish;
|
|
|
|
- (void)unarchiverDidFail;
|
|
|
|
@optional
|
|
- (void)unarchiverExtractedProgress:(double)progress;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|