mirror of
https://github.com/sparkle-project/Sparkle.git
synced 2025-11-01 15:34:38 +00:00
1e419c8c16
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
41 lines
2.0 KiB
Objective-C
41 lines
2.0 KiB
Objective-C
//
|
|
// SPUInstallationInputData.h
|
|
// Sparkle
|
|
//
|
|
// Created by Mayur Pawashe on 3/24/16.
|
|
// Copyright © 2016 Sparkle Project. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
@class SUSignatures;
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
SPU_OBJC_DIRECT_MEMBERS @interface SPUInstallationInputData : NSObject <NSSecureCoding>
|
|
|
|
/*
|
|
* relaunchPath - path to application bundle to relaunch and listen for termination
|
|
* hostBundlePath - path to host bundle to update & replace
|
|
* updateDirectoryPath - path to update directory (i.e, temporary directory containing the new update archive)
|
|
* downloadName - name of update archive in update directory
|
|
* signatures - signatures for the update that came from the appcast item
|
|
* decryptionPassword - optional decryption password for dmg archives
|
|
* expectedVersion - optional expected version of the new update
|
|
* expectedContentLength - optional expected content length of the new download archive
|
|
*/
|
|
- (instancetype)initWithRelaunchPath:(NSString *)relaunchPath hostBundlePath:(NSString *)hostBundlePath updateURLBookmarkData:(NSData *)updateURLBookmarkData installationType:(NSString *)installationType signatures:(SUSignatures * _Nullable)signatures decryptionPassword:(nullable NSString *)decryptionPassword expectedVersion:(NSString *)expectedVersion expectedContentLength:(uint64_t)expectedContentLength;
|
|
|
|
@property (nonatomic, copy, readonly) NSString *relaunchPath;
|
|
@property (nonatomic, copy, readonly) NSString *hostBundlePath;
|
|
@property (nonatomic, copy, readonly) NSData *updateURLBookmarkData;
|
|
@property (nonatomic, copy, readonly) NSString *installationType;
|
|
@property (nonatomic, readonly, nullable) SUSignatures *signatures; // nullable because although not using signatures is deprecated, it's still supported
|
|
@property (nonatomic, copy, readonly, nullable) NSString *decryptionPassword;
|
|
@property (nonatomic, copy, readonly, nullable) NSString *expectedVersion;
|
|
@property (nonatomic, readonly) uint64_t expectedContentLength;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|