mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-29 05:24:26 +00:00
29 lines
716 B
Objective-C
29 lines
716 B
Objective-C
//
|
|
// SUUpdateValidator.h
|
|
// Sparkle
|
|
//
|
|
// Created by Mayur Pawashe on 12/3/16.
|
|
// Copyright © 2016 Sparkle Project. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
@class SUHost;
|
|
@class SUSignatures;
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface SUUpdateValidator : NSObject
|
|
|
|
- (instancetype)initWithDownloadPath:(NSString *)downloadPath signatures:(SUSignatures *)signatures host:(SUHost *)host;
|
|
|
|
// This is "pre" validation, before the archive has been extracted
|
|
- (BOOL)validateDownloadPathWithError:(NSError **)error;
|
|
|
|
// This is "post" validation, after an archive has been extracted
|
|
- (BOOL)validateWithUpdateDirectory:(NSString *)updateDirectory error:(NSError **)error;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|