mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-30 05:28:50 +00:00
If we detect the wrong archive is being served (i.e, expected content length differs from archive length) we log this out to developers. If the app version in the archive (if available) also differs, we report this discrepancy as well. If the update archive looks the same but signing validation fails, we tell the developer the update may have not been signed correctly. I'm not changing the generic error that is reported to users about the update being improperly signed (that would involve propagating this information there and updating bunch of localizations). The extra info is more for the developer than it is for the user. Fixes #2468
55 lines
1.9 KiB
Objective-C
55 lines
1.9 KiB
Objective-C
//
|
|
// Use this file to import your target's public headers that you would like to expose to Swift.
|
|
//
|
|
|
|
#import "SUUnarchiver.h"
|
|
#import "SUUnarchiverProtocol.h"
|
|
#import "SUBinaryDeltaUnarchiver.h"
|
|
#import "SUPipedUnarchiver.h"
|
|
#import "SUBinaryDeltaCommon.h"
|
|
#import "SUFileManager.h"
|
|
#import "SUExport.h"
|
|
#import "SUAppcast.h"
|
|
#import "SUAppcast+Private.h"
|
|
#import "SUAppcastItem.h"
|
|
#import "SUAppcastDriver.h"
|
|
#import "SUVersionComparisonProtocol.h"
|
|
#import "SUStandardVersionComparator.h"
|
|
#import "SUUpdateValidator.h"
|
|
#import "SPUVerifierInformation.h"
|
|
#import "SUHost.h"
|
|
#import "SPUSkippedUpdate.h"
|
|
#import "SUSignatures.h"
|
|
#import "SPUInstallationType.h"
|
|
#import "SPUAppcastItemStateResolver.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
// Duplicated to avoid exporting a private symbol from SUFileManager
|
|
static const char *SUAppleQuarantineIdentifier = "com.apple.quarantine";
|
|
|
|
@interface SUFileManager (Private)
|
|
|
|
- (BOOL)_itemExistsAtURL:(NSURL *)fileURL;
|
|
- (BOOL)_itemExistsAtURL:(NSURL *)fileURL isDirectory:(nullable BOOL *)isDirectory;
|
|
|
|
@end
|
|
|
|
@interface SUAppcastDriver (Private)
|
|
|
|
+ (SUAppcastItem *)bestItemFromAppcastItems:(NSArray *)appcastItems getDeltaItem:(SUAppcastItem *_Nullable __autoreleasing *_Nullable)deltaItem withHostVersion:(NSString *)hostVersion comparator:(id<SUVersionComparison>)comparator;
|
|
|
|
+ (SUAppcast *)filterSupportedAppcast:(SUAppcast *)appcast phasedUpdateGroup:(NSNumber * _Nullable)phasedUpdateGroup skippedUpdate:(SPUSkippedUpdate * _Nullable)skippedUpdate currentDate:(NSDate *)currentDate hostVersion:(NSString *)hostVersion versionComparator:(id<SUVersionComparison>)versionComparator testOSVersion:(BOOL)testOSVersion testMinimumAutoupdateVersion:(BOOL)testMinimumAutoupdateVersion;
|
|
|
|
+ (SUAppcast *)filterAppcast:(SUAppcast *)appcast forMacOSAndAllowedChannels:(NSSet<NSString *> *)allowedChannels;
|
|
|
|
@end
|
|
|
|
@interface SUBinaryDeltaUnarchiver (Private)
|
|
|
|
+ (void)updateSpotlightImportersAtBundlePath:(NSString *)targetPath;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|