Files
Sparkle/Autoupdate/SUUnarchiverProtocol.h
T
Zorg 1ca233eadf Validate the update before extraction whenever possible
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.
2016-07-30 17:36:22 -04:00

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