Add universal Sparkle build.
This commit is contained in:
121 files changed
+2835
-197
No files matched your search
+8
-6
@@ -6,12 +6,7 @@
|
||||
// Copyright © 2016 Sparkle Project. All rights reserved.
|
||||
//
|
||||
|
||||
#if __has_feature(modules)
|
||||
@import Foundation;
|
||||
#else
|
||||
#import <Foundation/Foundation.h>
|
||||
#endif
|
||||
|
||||
#import <Sparkle/SUExport.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
@@ -21,13 +16,20 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
*/
|
||||
SU_EXPORT @interface SPUDownloadData : NSObject <NSSecureCoding>
|
||||
|
||||
- (instancetype)initWithData:(NSData *)data textEncodingName:(NSString * _Nullable)textEncodingName MIMEType:(NSString * _Nullable)MIMEType;
|
||||
- (instancetype)initWithData:(NSData *)data URL:(NSURL *)URL textEncodingName:(NSString * _Nullable)textEncodingName MIMEType:(NSString * _Nullable)MIMEType;
|
||||
|
||||
/*!
|
||||
* The raw data that was downloaded.
|
||||
*/
|
||||
@property (nonatomic, readonly) NSData *data;
|
||||
|
||||
/*!
|
||||
* The URL that was fetched from.
|
||||
*
|
||||
* This may be different from the URL in the request if there were redirects involved.
|
||||
*/
|
||||
@property (nonatomic, readonly, copy) NSURL *URL;
|
||||
|
||||
/*!
|
||||
* The IANA charset encoding name if available. Eg: "utf-8"
|
||||
*/
|
||||
|
||||
Vendored
Executable → Regular
-5
@@ -6,12 +6,7 @@
|
||||
// Copyright © 2016 Sparkle Project. All rights reserved.
|
||||
//
|
||||
|
||||
#if __has_feature(modules)
|
||||
@import Cocoa;
|
||||
#else
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#endif
|
||||
|
||||
#import <Sparkle/SUExport.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
-5
@@ -6,12 +6,7 @@
|
||||
// Copyright © 2016 Sparkle Project. All rights reserved.
|
||||
//
|
||||
|
||||
#if __has_feature(modules)
|
||||
@import Cocoa;
|
||||
#else
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#endif
|
||||
|
||||
#import <Sparkle/SPUUserDriver.h>
|
||||
#import <Sparkle/SPUStandardUserDriverProtocol.h>
|
||||
#import <Sparkle/SUExport.h>
|
||||
|
||||
Vendored
Executable → Regular
-5
@@ -6,12 +6,7 @@
|
||||
// Copyright © 2016 Sparkle Project. All rights reserved.
|
||||
//
|
||||
|
||||
#if __has_feature(modules)
|
||||
@import Foundation;
|
||||
#else
|
||||
#import <Foundation/Foundation.h>
|
||||
#endif
|
||||
|
||||
#import <Sparkle/SUExport.h>
|
||||
|
||||
@protocol SUVersionDisplay;
|
||||
|
||||
Vendored
Executable → Regular
File mode changed.
Vendored
Executable → Regular
-4
@@ -9,11 +9,7 @@
|
||||
#ifndef SPUStatusCompletionResults_h
|
||||
#define SPUStatusCompletionResults_h
|
||||
|
||||
#if __has_feature(modules)
|
||||
@import Foundation;
|
||||
#else
|
||||
#import <Foundation/Foundation.h>
|
||||
#endif
|
||||
|
||||
typedef NS_ENUM(NSUInteger, SPUUserInitiatedCheckStatus) {
|
||||
SPUUserInitiatedCheckDone,
|
||||
|
||||
Vendored
Executable → Regular
-5
@@ -6,12 +6,7 @@
|
||||
// Copyright © 2016 Sparkle Project. All rights reserved.
|
||||
//
|
||||
|
||||
#if __has_feature(modules)
|
||||
@import Foundation;
|
||||
#else
|
||||
#import <Foundation/Foundation.h>
|
||||
#endif
|
||||
|
||||
#import <Sparkle/SUExport.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
+3
-7
@@ -6,11 +6,7 @@
|
||||
// Copyright 2006 Andy Matuschak. All rights reserved.
|
||||
//
|
||||
|
||||
#if __has_feature(modules)
|
||||
@import Foundation;
|
||||
#else
|
||||
#import <Foundation/Foundation.h>
|
||||
#endif
|
||||
#import <Sparkle/SUExport.h>
|
||||
#import <Sparkle/SPUUserDriver.h>
|
||||
|
||||
@@ -134,9 +130,9 @@ SU_EXPORT @interface SPUUpdater : NSObject
|
||||
If the updater's delegate implements -[SPUUpdaterDelegate feedURLStringForUpdater:], this will return that feed URL.
|
||||
Otherwise if the feed URL has been set before, the feed URL returned will be retrieved from the host bundle's user defaults.
|
||||
Otherwise the feed URL in the host bundle's Info.plist will be returned.
|
||||
If no feed URL can be retrieved, this will raise an exception.
|
||||
If no feed URL can be retrieved, returns nil.
|
||||
|
||||
This property must be called on the main thread.
|
||||
This property must be called on the main thread; calls from background threads will return nil.
|
||||
*/
|
||||
@property (nonatomic, readonly) NSURL *feedURL;
|
||||
|
||||
@@ -149,7 +145,7 @@ SU_EXPORT @interface SPUUpdater : NSObject
|
||||
|
||||
Passing nil will remove any feed URL that has been set in the host bundle's user defaults.
|
||||
|
||||
This method must be called on the main thread.
|
||||
This method must be called on the main thread; calls from background threads will have no effect.
|
||||
*/
|
||||
- (void)setFeedURL:(NSURL * _Nullable)feedURL;
|
||||
|
||||
|
||||
+8
-5
@@ -6,12 +6,7 @@
|
||||
// Copyright © 2016 Sparkle Project. All rights reserved.
|
||||
//
|
||||
|
||||
#if __has_feature(modules)
|
||||
@import Foundation;
|
||||
#else
|
||||
#import <Foundation/Foundation.h>
|
||||
#endif
|
||||
|
||||
#import <Sparkle/SUExport.h>
|
||||
|
||||
@protocol SUVersionComparison;
|
||||
@@ -300,6 +295,14 @@ typedef NS_ENUM(NSInteger, SPUUpdateCheck)
|
||||
*/
|
||||
- (void)updater:(SPUUpdater *)updater didAbortWithError:(NSError *)error;
|
||||
|
||||
/*!
|
||||
Called after an update is aborted due to an error during an scheduled update check.
|
||||
|
||||
\param updater The updater instance.
|
||||
\param error The error that caused the abort
|
||||
*/
|
||||
- (void)updater:(SPUUpdater *)updater scheduledUpdateCheckDidAbortWithError:(NSError *)error;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
-5
@@ -6,12 +6,7 @@
|
||||
// Copyright © 2016 Sparkle Project. All rights reserved.
|
||||
//
|
||||
|
||||
#if __has_feature(modules)
|
||||
@import Foundation;
|
||||
#else
|
||||
#import <Foundation/Foundation.h>
|
||||
#endif
|
||||
|
||||
#import <Sparkle/SUExport.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
-5
@@ -6,12 +6,7 @@
|
||||
// Copyright © 2016 Sparkle Project. All rights reserved.
|
||||
//
|
||||
|
||||
#if __has_feature(modules)
|
||||
@import Foundation;
|
||||
#else
|
||||
#import <Foundation/Foundation.h>
|
||||
#endif
|
||||
|
||||
#import <Sparkle/SPUStatusCompletionResults.h>
|
||||
#import <Sparkle/SUExport.h>
|
||||
|
||||
|
||||
Vendored
Executable → Regular
-5
@@ -6,12 +6,7 @@
|
||||
// Copyright © 2016 Sparkle Project. All rights reserved.
|
||||
//
|
||||
|
||||
#if __has_feature(modules)
|
||||
@import Foundation;
|
||||
#else
|
||||
#import <Foundation/Foundation.h>
|
||||
#endif
|
||||
|
||||
#import <Sparkle/SPUStatusCompletionResults.h>
|
||||
#import <Sparkle/SUExport.h>
|
||||
|
||||
|
||||
-4
@@ -9,11 +9,7 @@
|
||||
#ifndef SUAPPCAST_H
|
||||
#define SUAPPCAST_H
|
||||
|
||||
#if __has_feature(modules)
|
||||
@import Foundation;
|
||||
#else
|
||||
#import <Foundation/Foundation.h>
|
||||
#endif
|
||||
#import <Sparkle/SUExport.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
+3
-5
@@ -9,19 +9,16 @@
|
||||
#ifndef SUAPPCASTITEM_H
|
||||
#define SUAPPCASTITEM_H
|
||||
|
||||
#if __has_feature(modules)
|
||||
@import Foundation;
|
||||
#else
|
||||
#import <Foundation/Foundation.h>
|
||||
#endif
|
||||
#import <Sparkle/SUExport.h>
|
||||
@class SUSignatures;
|
||||
|
||||
SU_EXPORT @interface SUAppcastItem : NSObject<NSSecureCoding>
|
||||
@property (copy, readonly) NSString *title;
|
||||
@property (copy, readonly) NSString *dateString;
|
||||
@property (copy, readonly) NSString *itemDescription;
|
||||
@property (strong, readonly) NSURL *releaseNotesURL;
|
||||
@property (copy, readonly) NSString *DSASignature;
|
||||
@property (strong, readonly) SUSignatures *signatures;
|
||||
@property (copy, readonly) NSString *minimumSystemVersion;
|
||||
@property (copy, readonly) NSString *maximumSystemVersion;
|
||||
@property (strong, readonly) NSURL *fileURL;
|
||||
@@ -36,6 +33,7 @@ SU_EXPORT @interface SUAppcastItem : NSObject<NSSecureCoding>
|
||||
// Initializes with data from a dictionary provided by the RSS class.
|
||||
- (instancetype)initWithDictionary:(NSDictionary *)dict;
|
||||
- (instancetype)initWithDictionary:(NSDictionary *)dict failureReason:(NSString **)error;
|
||||
- (instancetype)initWithDictionary:(NSDictionary *)dict relativeToURL:(NSURL *)appcastURL failureReason:(NSString **)error;
|
||||
|
||||
@property (getter=isDeltaUpdate, readonly) BOOL deltaUpdate;
|
||||
@property (getter=isCriticalUpdate, readonly) BOOL criticalUpdate;
|
||||
|
||||
+5
-5
@@ -9,11 +9,7 @@
|
||||
#ifndef SUERRORS_H
|
||||
#define SUERRORS_H
|
||||
|
||||
#if __has_feature(modules)
|
||||
@import Foundation;
|
||||
#else
|
||||
#import <Foundation/Foundation.h>
|
||||
#endif
|
||||
#import <Sparkle/SUExport.h>
|
||||
|
||||
/**
|
||||
@@ -37,6 +33,7 @@ typedef NS_ENUM(OSStatus, SUError) {
|
||||
SUAppcastError = 1002,
|
||||
SURunningFromDiskImageError = 1003,
|
||||
SUResumeAppcastError = 1004,
|
||||
SURunningTranslocated = 1005,
|
||||
|
||||
// Download phase errors.
|
||||
SUTemporaryDirectoryError = 2000,
|
||||
@@ -56,7 +53,10 @@ typedef NS_ENUM(OSStatus, SUError) {
|
||||
SUDowngradeError = 4006,
|
||||
SUInstallationCanceledError = 4007,
|
||||
SUInstallationAuthorizeLaterError = 4008,
|
||||
SUNotAllowedInteractionError = 4009
|
||||
SUNotAllowedInteractionError = 4009,
|
||||
|
||||
// API misuse errors.
|
||||
SUIncorrectAPIUsageError = 5000
|
||||
};
|
||||
|
||||
#endif
|
||||
File mode changed.
Vendored
Executable → Regular
-4
@@ -9,11 +9,7 @@
|
||||
#ifndef SUSTANDARDVERSIONCOMPARATOR_H
|
||||
#define SUSTANDARDVERSIONCOMPARATOR_H
|
||||
|
||||
#if __has_feature(modules)
|
||||
@import Foundation;
|
||||
#else
|
||||
#import <Foundation/Foundation.h>
|
||||
#endif
|
||||
#import <Sparkle/SUExport.h>
|
||||
#import <Sparkle/SUVersionComparisonProtocol.h>
|
||||
|
||||
|
||||
Vendored
Executable → Regular
-5
@@ -6,12 +6,7 @@
|
||||
// Copyright © 2016 Sparkle Project. All rights reserved.
|
||||
//
|
||||
|
||||
#if __has_feature(modules)
|
||||
@import Foundation;
|
||||
#else
|
||||
#import <Foundation/Foundation.h>
|
||||
#endif
|
||||
|
||||
#import <Sparkle/SUExport.h>
|
||||
|
||||
/*!
|
||||
|
||||
-4
@@ -9,11 +9,7 @@
|
||||
#ifndef SUUPDATER_H
|
||||
#define SUUPDATER_H
|
||||
|
||||
#if __has_feature(modules)
|
||||
@import Cocoa;
|
||||
#else
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#endif
|
||||
#import <Sparkle/SUExport.h>
|
||||
#import <Sparkle/SUVersionComparisonProtocol.h>
|
||||
#import <Sparkle/SUVersionDisplayProtocol.h>
|
||||
|
||||
-5
@@ -6,12 +6,7 @@
|
||||
// Copyright © 2016 Sparkle Project. All rights reserved.
|
||||
//
|
||||
|
||||
#if __has_feature(modules)
|
||||
@import Foundation;
|
||||
#else
|
||||
#import <Foundation/Foundation.h>
|
||||
#endif
|
||||
|
||||
#import <Sparkle/SUExport.h>
|
||||
|
||||
@protocol SUVersionComparison, SUVersionDisplay;
|
||||
|
||||
Vendored
Executable → Regular
-5
@@ -9,12 +9,7 @@
|
||||
#ifndef SUVERSIONCOMPARISONPROTOCOL_H
|
||||
#define SUVERSIONCOMPARISONPROTOCOL_H
|
||||
|
||||
#if __has_feature(modules)
|
||||
@import Foundation;
|
||||
#else
|
||||
#import <Foundation/Foundation.h>
|
||||
#endif
|
||||
|
||||
#import <Sparkle/SUExport.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
Vendored
Executable → Regular
-5
@@ -6,12 +6,7 @@
|
||||
// Copyright 2009 Elgato Systems GmbH. All rights reserved.
|
||||
//
|
||||
|
||||
#if __has_feature(modules)
|
||||
@import Foundation;
|
||||
#else
|
||||
#import <Foundation/Foundation.h>
|
||||
#endif
|
||||
|
||||
#import <Sparkle/SUExport.h>
|
||||
|
||||
/*!
|
||||
|
||||
File mode changed.
Binary file not shown.
File mode changed.
+13
-9
@@ -3,7 +3,7 @@
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>BuildMachineOSBuild</key>
|
||||
<string>18E205e</string>
|
||||
<string>20A5299w</string>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>en</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
@@ -17,7 +17,7 @@
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.20.0</string>
|
||||
<string>2.0.0 969-ge7e20e6a</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleSupportedPlatforms</key>
|
||||
@@ -25,20 +25,24 @@
|
||||
<string>MacOSX</string>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.20.0</string>
|
||||
<string>2.0.0</string>
|
||||
<key>DTCompiler</key>
|
||||
<string>com.apple.compilers.llvm.clang.1_0</string>
|
||||
<key>DTPlatformBuild</key>
|
||||
<string>10P107d</string>
|
||||
<string>12A8158a</string>
|
||||
<key>DTPlatformName</key>
|
||||
<string>macosx</string>
|
||||
<key>DTPlatformVersion</key>
|
||||
<string>GM</string>
|
||||
<string>11.0</string>
|
||||
<key>DTSDKBuild</key>
|
||||
<string>18E205d</string>
|
||||
<string>20A5299v</string>
|
||||
<key>DTSDKName</key>
|
||||
<string>macosx10.14</string>
|
||||
<string>macosx11.0</string>
|
||||
<key>DTXcode</key>
|
||||
<string>1020</string>
|
||||
<string>1200</string>
|
||||
<key>DTXcodeBuild</key>
|
||||
<string>10P107d</string>
|
||||
<string>12A8158a</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>10.9</string>
|
||||
</dict>
|
||||
</plist>
|
||||
BIN
Binary file not shown.
+11
-9
@@ -3,7 +3,7 @@
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>BuildMachineOSBuild</key>
|
||||
<string>18E205e</string>
|
||||
<string>20A5299w</string>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>en</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
@@ -17,7 +17,7 @@
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.20.0</string>
|
||||
<string>2.0.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleSupportedPlatforms</key>
|
||||
@@ -25,21 +25,23 @@
|
||||
<string>MacOSX</string>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.20.0</string>
|
||||
<string>2.0.0</string>
|
||||
<key>DTCompiler</key>
|
||||
<string>com.apple.compilers.llvm.clang.1_0</string>
|
||||
<key>DTPlatformBuild</key>
|
||||
<string>10P107d</string>
|
||||
<string>12A8158a</string>
|
||||
<key>DTPlatformName</key>
|
||||
<string>macosx</string>
|
||||
<key>DTPlatformVersion</key>
|
||||
<string>GM</string>
|
||||
<string>11.0</string>
|
||||
<key>DTSDKBuild</key>
|
||||
<string>18E205d</string>
|
||||
<string>20A5299v</string>
|
||||
<key>DTSDKName</key>
|
||||
<string>macosx10.14</string>
|
||||
<string>macosx11.0</string>
|
||||
<key>DTXcode</key>
|
||||
<string>1020</string>
|
||||
<string>1200</string>
|
||||
<key>DTXcodeBuild</key>
|
||||
<string>10P107d</string>
|
||||
<string>12A8158a</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>10.9</string>
|
||||
<key>LSUIElement</key>
|
||||
|
||||
BIN
Binary file not shown.
Generated
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Vendored
+21
-21
@@ -6,7 +6,7 @@
|
||||
<dict>
|
||||
<key>Resources/SUStatus.nib</key>
|
||||
<data>
|
||||
WeHAQlGzzecLWofOPo/0rgREQao=
|
||||
MulAXYyGjKf4+ASdeMJhGSViQXU=
|
||||
</data>
|
||||
<key>Resources/ar.lproj/Sparkle.strings</key>
|
||||
<dict>
|
||||
@@ -30,7 +30,7 @@
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
oV92AOAArGmSW7Mp1Cr74C7zx1s=
|
||||
qmZIcgaZTr//z9PjOI776B5GQ3E=
|
||||
</data>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
@@ -48,7 +48,7 @@
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
aFIBXoHVaewkHZLyMy8rCTXUNQ0=
|
||||
FnTKeC2WOm3Wo79G5tYK17ssA4g=
|
||||
</data>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
@@ -66,7 +66,7 @@
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
D14kRfcAqRpBq5GMobJjIRUh/yc=
|
||||
HMDIP8J6ekyxwFQ6/Gn+q3WSTl4=
|
||||
</data>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
@@ -93,7 +93,7 @@
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
ySuf1W/oXCB4ZX1wloQDxoAMmAA=
|
||||
N3afKcO8erR7VUa2Cq4bwqxw/DY=
|
||||
</data>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
@@ -129,7 +129,7 @@
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
SkZ6V1m0j1Za3GCmzVfpgP0pIBU=
|
||||
iD89mxaGjEzXuqTCpr1SbfWzdyM=
|
||||
</data>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
@@ -264,7 +264,7 @@
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
JFvKYN1jjNAURBvctgcHJxsr1iA=
|
||||
kFXz9LiX6VmEsvEWZcZOIMmUE5o=
|
||||
</data>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
@@ -285,11 +285,11 @@
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
WeHAQlGzzecLWofOPo/0rgREQao=
|
||||
MulAXYyGjKf4+ASdeMJhGSViQXU=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
SuBluccOQqNjKuMoBnL5ccxkxMs3HX6C0Ju2cAu6TKY=
|
||||
vtGViE57K6lIkhS+jluB+bJ2rBdtV1x9SGQLWYqPsxg=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Resources/ar.lproj/Sparkle.strings</key>
|
||||
@@ -322,11 +322,11 @@
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
oV92AOAArGmSW7Mp1Cr74C7zx1s=
|
||||
qmZIcgaZTr//z9PjOI776B5GQ3E=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
7GfIV0Cn0XzZpKh/k81zfx5tMrwh4BC40CcYDTDzDZ8=
|
||||
6sIHusRLkghCkCVemdyAqniiTfJ68E6t0qswH/A+Aac=
|
||||
</data>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
@@ -348,11 +348,11 @@
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
aFIBXoHVaewkHZLyMy8rCTXUNQ0=
|
||||
FnTKeC2WOm3Wo79G5tYK17ssA4g=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
veXcpERRtworZCTZFpq6GTcRafdACMWDh9QC0psa2/0=
|
||||
zG5B5gvBrmrL31eAFv8JQ0xYZrAGgvpcePzhSL9lRSI=
|
||||
</data>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
@@ -374,11 +374,11 @@
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
D14kRfcAqRpBq5GMobJjIRUh/yc=
|
||||
HMDIP8J6ekyxwFQ6/Gn+q3WSTl4=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
UgBa+U3LY4m8juJ+PqXx4Zq4/EaRW9KMvUIp1GE/AQs=
|
||||
T0siv9/ri/ulfofXL+GzB1ClarT02vlzl4QRomTIy9A=
|
||||
</data>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
@@ -413,11 +413,11 @@
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
ySuf1W/oXCB4ZX1wloQDxoAMmAA=
|
||||
N3afKcO8erR7VUa2Cq4bwqxw/DY=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
uwpnRFOnusMwYJvTxNLG0RdzAwDoH83iKciaeRTtmMk=
|
||||
nGZJLdRUiRSWfcROzRsVZzoM/Pyl+C6y0c7WJdZ++ME=
|
||||
</data>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
@@ -470,11 +470,11 @@
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
SkZ6V1m0j1Za3GCmzVfpgP0pIBU=
|
||||
iD89mxaGjEzXuqTCpr1SbfWzdyM=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
WwKlqu3Hr89+HxOExBoaMwcXdNeW7VhIHqnvUraJFv0=
|
||||
P8h6uv3ksdrzPVBgsLywrDU+NA6c3at5YNW9MyQ5+i0=
|
||||
</data>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
@@ -670,11 +670,11 @@
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
JFvKYN1jjNAURBvctgcHJxsr1iA=
|
||||
kFXz9LiX6VmEsvEWZcZOIMmUE5o=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
NgmrcL+YBJDI967Qilj/xC5XpMheyS0Jlyg+J8qEhrg=
|
||||
oT/+oPtd/EjVyWINXmlilXd0HUk9MdcNrJQsHA5Mfys=
|
||||
</data>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
|
||||
BIN
Binary file not shown.
Generated
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
Generated
Vendored
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Generated
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
Generated
Vendored
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Generated
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
Generated
Vendored
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Generated
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
Generated
Vendored
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Generated
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
Generated
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
Generated
Vendored
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Generated
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
Generated
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
Generated
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
Generated
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
Generated
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
Generated
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
Generated
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
Generated
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
Generated
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
Generated
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
Generated
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
Generated
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
Generated
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
Generated
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
Generated
Vendored
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Generated
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
File diff suppressed because it is too large.
Load diff
+46
@@ -0,0 +1,46 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import os, sys, subprocess
|
||||
|
||||
def log_message(message):
|
||||
sys.stderr.write(message + "\n")
|
||||
|
||||
#Surround a token with double quotes if it has a space in it
|
||||
def sanitize(argument):
|
||||
return ('"' + argument + '"' if ' ' in argument else argument)
|
||||
|
||||
def _codesign_service(identity, path, entitlements_path=None):
|
||||
command = ["codesign", "-o", "runtime", "-fs", identity, path] + ([] if entitlements_path is None else ["--entitlements", entitlements_path])
|
||||
log_message(" ".join(map(sanitize, command)))
|
||||
|
||||
process = subprocess.Popen(command, stdout=subprocess.PIPE)
|
||||
process.communicate()
|
||||
if process.returncode != 0:
|
||||
log_message("Error: Failed to codesign %s" % (path))
|
||||
sys.exit(1)
|
||||
|
||||
def codesign_service(service_name, identity, path, entitlements_path=None):
|
||||
#Sign the auxiliary executables (if any)
|
||||
executables_path = os.path.join(path, "Contents/MacOS/")
|
||||
if os.path.exists(executables_path):
|
||||
for executable in os.listdir(executables_path):
|
||||
if executable != service_name:
|
||||
_codesign_service(identity, os.path.join(executables_path, executable), entitlements_path)
|
||||
|
||||
#Sign the service bundle
|
||||
_codesign_service(identity, path, entitlements_path)
|
||||
|
||||
if __name__ == "__main__":
|
||||
if len(sys.argv) < 3:
|
||||
log_message("Usage:\n\t%s code-signing-identity executable1 executable1 ..." % (sys.argv[0]))
|
||||
log_message("Example:\n\t%s \"Developer ID Application\" ./XPCServices/*.xpc" % (sys.argv[0]))
|
||||
sys.exit(1)
|
||||
|
||||
signing_identity = sys.argv[1]
|
||||
executables = sys.argv[2:]
|
||||
|
||||
for executable in executables:
|
||||
parent, child = os.path.split(executable)
|
||||
service_name = os.path.splitext(child)[0]
|
||||
entitlements_path = os.path.join(parent, service_name + ".entitlements")
|
||||
codesign_service(service_name, signing_identity, executable, None if not os.path.exists(entitlements_path) else entitlements_path)
|
||||
Loaded 100 of 121 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user