mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
Rename UpdateDownloader service to PersistentDownloader
This commit is contained in:
1 parent
c9cb670761
commit
c5026976ee
17 files changed
+101
-103
No files matched your search
@@ -36,15 +36,15 @@ PRODUCT_BUNDLE_IDENTIFIER = org.sparkle-project.Sparkle.${PRODUCT_NAME:rfc1034id
|
||||
|
||||
INSTALLER_LAUNCHER_PRODUCT_NAME = SparkleInstallerLauncher
|
||||
APPCAST_DOWNLOADER_PRODUCT_NAME = SparkleAppcastDownloader
|
||||
UPDATE_DOWNLOADER_PRODUCT_NAME = SparkleUpdateDownloader
|
||||
PERSISTENT_DOWNLOADER_PRODUCT_NAME = SparklePersistentDownloader
|
||||
REMOTE_MESSAGE_PORT_PRODUCT_NAME = SparkleRemoteMessagePort
|
||||
|
||||
INSTALLER_LAUNCHER_BUNDLE_ID = org.sparkle-project.${INSTALLER_LAUNCHER_PRODUCT_NAME}
|
||||
APPCAST_DOWNLOADER_BUNDLE_ID = org.sparkle-project.${APPCAST_DOWNLOADER_PRODUCT_NAME}
|
||||
UPDATE_DOWNLOADER_BUNDLE_ID = org.sparkle-project.${UPDATE_DOWNLOADER_PRODUCT_NAME}
|
||||
PERSISTENT_DOWNLOADER_BUNDLE_ID = org.sparkle-project.${PERSISTENT_DOWNLOADER_PRODUCT_NAME}
|
||||
REMOTE_MESSAGE_PORT_BUNDLE_ID = org.sparkle-project.${REMOTE_MESSAGE_PORT_PRODUCT_NAME}
|
||||
|
||||
GCC_PREPROCESSOR_DEFINITIONS_COMMON = SPARKLE_NORMALIZE_INSTALLED_APPLICATION_NAME=$(SPARKLE_NORMALIZE_INSTALLED_APPLICATION_NAME) SPARKLE_AUTOMATED_DOWNGRADES=$(SPARKLE_AUTOMATED_DOWNGRADES) SPARKLE_APPEND_VERSION_NUMBER=$(SPARKLE_APPEND_VERSION_NUMBER) SPARKLE_BUNDLE_IDENTIFIER=\"$(SPARKLE_BUNDLE_IDENTIFIER)\" CURRENT_PROJECT_VERSION=\"$(CURRENT_PROJECT_VERSION)\" SPARKLE_RELAUNCH_TOOL_NAME=\"$(SPARKLE_RELAUNCH_TOOL_NAME)\" SPARKLE_INSTALLER_PROGRESS_TOOL_NAME=\"$(SPARKLE_INSTALLER_PROGRESS_TOOL_NAME)\" SPARKLE_ICON_NAME=\"$(SPARKLE_ICON_NAME)\" INSTALLER_LAUNCHER_BUNDLE_ID=\"${INSTALLER_LAUNCHER_BUNDLE_ID}\" APPCAST_DOWNLOADER_BUNDLE_ID=\"${APPCAST_DOWNLOADER_BUNDLE_ID}\" UPDATE_DOWNLOADER_BUNDLE_ID=\"${UPDATE_DOWNLOADER_BUNDLE_ID}\" REMOTE_MESSAGE_PORT_BUNDLE_ID=\"${REMOTE_MESSAGE_PORT_BUNDLE_ID}\" INSTALLER_LAUNCHER_PRODUCT_NAME=\"${INSTALLER_LAUNCHER_PRODUCT_NAME}\" APPCAST_DOWNLOADER_PRODUCT_NAME=\"${APPCAST_DOWNLOADER_PRODUCT_NAME}\" UPDATE_DOWNLOADER_PRODUCT_NAME=\"${UPDATE_DOWNLOADER_PRODUCT_NAME}\" REMOTE_MESSAGE_PORT_PRODUCT_NAME=\"${REMOTE_MESSAGE_PORT_PRODUCT_NAME}\"
|
||||
GCC_PREPROCESSOR_DEFINITIONS_COMMON = SPARKLE_NORMALIZE_INSTALLED_APPLICATION_NAME=$(SPARKLE_NORMALIZE_INSTALLED_APPLICATION_NAME) SPARKLE_AUTOMATED_DOWNGRADES=$(SPARKLE_AUTOMATED_DOWNGRADES) SPARKLE_APPEND_VERSION_NUMBER=$(SPARKLE_APPEND_VERSION_NUMBER) SPARKLE_BUNDLE_IDENTIFIER=\"$(SPARKLE_BUNDLE_IDENTIFIER)\" CURRENT_PROJECT_VERSION=\"$(CURRENT_PROJECT_VERSION)\" SPARKLE_RELAUNCH_TOOL_NAME=\"$(SPARKLE_RELAUNCH_TOOL_NAME)\" SPARKLE_INSTALLER_PROGRESS_TOOL_NAME=\"$(SPARKLE_INSTALLER_PROGRESS_TOOL_NAME)\" SPARKLE_ICON_NAME=\"$(SPARKLE_ICON_NAME)\" INSTALLER_LAUNCHER_BUNDLE_ID=\"${INSTALLER_LAUNCHER_BUNDLE_ID}\" APPCAST_DOWNLOADER_BUNDLE_ID=\"${APPCAST_DOWNLOADER_BUNDLE_ID}\" PERSISTENT_DOWNLOADER_BUNDLE_ID=\"${PERSISTENT_DOWNLOADER_BUNDLE_ID}\" REMOTE_MESSAGE_PORT_BUNDLE_ID=\"${REMOTE_MESSAGE_PORT_BUNDLE_ID}\" INSTALLER_LAUNCHER_PRODUCT_NAME=\"${INSTALLER_LAUNCHER_PRODUCT_NAME}\" APPCAST_DOWNLOADER_PRODUCT_NAME=\"${APPCAST_DOWNLOADER_PRODUCT_NAME}\" PERSISTENT_DOWNLOADER_PRODUCT_NAME=\"${PERSISTENT_DOWNLOADER_PRODUCT_NAME}\" REMOTE_MESSAGE_PORT_PRODUCT_NAME=\"${REMOTE_MESSAGE_PORT_PRODUCT_NAME}\"
|
||||
|
||||
CLANG_ENABLE_OBJC_ARC = YES
|
||||
GCC_ENABLE_PASCAL_STRINGS = NO
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
// PersistentDownloader
|
||||
|
||||
INFOPLIST_FILE = PersistentDownloader/Info.plist
|
||||
WRAPPER_EXTENSION = xpc
|
||||
PRODUCT_BUNDLE_IDENTIFIER = ${PERSISTENT_DOWNLOADER_BUNDLE_ID}
|
||||
PRODUCT_NAME = ${PERSISTENT_DOWNLOADER_PRODUCT_NAME}
|
||||
CODE_SIGN_ENTITLEMENTS = PersistentDownloader/SparklePersistentDownloader.entitlements
|
||||
@@ -0,0 +1,4 @@
|
||||
// PersistentDownloader Debug
|
||||
#include "ConfigPersistentDownloader.xcconfig"
|
||||
|
||||
CODE_SIGN_IDENTITY = -
|
||||
@@ -1,7 +0,0 @@
|
||||
// UpdateDownloader
|
||||
|
||||
INFOPLIST_FILE = UpdateDownloader/Info.plist
|
||||
WRAPPER_EXTENSION = xpc
|
||||
PRODUCT_BUNDLE_IDENTIFIER = ${UPDATE_DOWNLOADER_BUNDLE_ID}
|
||||
PRODUCT_NAME = ${UPDATE_DOWNLOADER_PRODUCT_NAME}
|
||||
CODE_SIGN_ENTITLEMENTS = UpdateDownloader/SparkleUpdateDownloader.entitlements
|
||||
@@ -1,4 +0,0 @@
|
||||
// UpdateDownloader Debug
|
||||
#include "ConfigUpdateDownloader.xcconfig"
|
||||
|
||||
CODE_SIGN_IDENTITY = -
|
||||
@@ -15,12 +15,12 @@ if [ "$ACTION" = "" ] ; then
|
||||
mkdir -p "$CONFIGURATION_BUILD_DIR/staging/XPCServices"
|
||||
|
||||
cp -R "$CONFIGURATION_BUILD_DIR/SparkleInstallerLauncher.xpc" "$CONFIGURATION_BUILD_DIR/staging/XPCServices"
|
||||
cp -R "$CONFIGURATION_BUILD_DIR/SparkleUpdateDownloader.xpc" "$CONFIGURATION_BUILD_DIR/staging/XPCServices"
|
||||
cp -R "$CONFIGURATION_BUILD_DIR/SparklePersistentDownloader.xpc" "$CONFIGURATION_BUILD_DIR/staging/XPCServices"
|
||||
cp -R "$CONFIGURATION_BUILD_DIR/SparkleAppcastDownloader.xpc" "$CONFIGURATION_BUILD_DIR/staging/XPCServices"
|
||||
cp -R "$CONFIGURATION_BUILD_DIR/SparkleRemoteMessagePort.xpc" "$CONFIGURATION_BUILD_DIR/staging/XPCServices"
|
||||
|
||||
cp "$SRCROOT/AppcastDownloader/SparkleAppcastDownloader.entitlements" "$CONFIGURATION_BUILD_DIR/staging/XPCServices"
|
||||
cp "$SRCROOT/UpdateDownloader/SparkleUpdateDownloader.entitlements" "$CONFIGURATION_BUILD_DIR/staging/XPCServices"
|
||||
cp "$SRCROOT/PersistentDownloader/SparklePersistentDownloader.entitlements" "$CONFIGURATION_BUILD_DIR/staging/XPCServices"
|
||||
|
||||
# Only copy dSYMs for Release builds, but don't check for the presence of the actual files
|
||||
# because missing dSYMs in a release build SHOULD trigger a build failure
|
||||
@@ -30,7 +30,7 @@ if [ "$ACTION" = "" ] ; then
|
||||
cp -R "$CONFIGURATION_BUILD_DIR/Sparkle.framework.dSYM" "$CONFIGURATION_BUILD_DIR/staging"
|
||||
|
||||
cp -R "$CONFIGURATION_BUILD_DIR/SparkleInstallerLauncher.xpc.dSYM" "$CONFIGURATION_BUILD_DIR/staging/XPCServices"
|
||||
cp -R "$CONFIGURATION_BUILD_DIR/SparkleUpdateDownloader.xpc.dSYM" "$CONFIGURATION_BUILD_DIR/staging/XPCServices"
|
||||
cp -R "$CONFIGURATION_BUILD_DIR/SparklePersistentDownloader.xpc.dSYM" "$CONFIGURATION_BUILD_DIR/staging/XPCServices"
|
||||
cp -R "$CONFIGURATION_BUILD_DIR/SparkleAppcastDownloader.xpc.dSYM" "$CONFIGURATION_BUILD_DIR/staging/XPCServices"
|
||||
cp -R "$CONFIGURATION_BUILD_DIR/SparkleRemoteMessagePort.xpc.dSYM" "$CONFIGURATION_BUILD_DIR/staging/XPCServices"
|
||||
fi
|
||||
|
||||
File renamed without changes.
+6
-6
@@ -1,21 +1,21 @@
|
||||
//
|
||||
// SUUpdateDownloader.h
|
||||
// UpdateDownloader
|
||||
// SUPersistentDownloader.h
|
||||
// PersistentDownloader
|
||||
//
|
||||
// Created by Mayur Pawashe on 4/1/16.
|
||||
// Copyright © 2016 Sparkle Project. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "SUUpdateDownloaderProtocol.h"
|
||||
#import "SUPersistentDownloaderProtocol.h"
|
||||
|
||||
@protocol SUDownloaderDelegate;
|
||||
@protocol SUPersistentDownloaderDelegate;
|
||||
|
||||
// This object implements the protocol which we have defined. It provides the actual behavior for the service. It is 'exported' by the service to make it available to the process hosting the service over an NSXPCConnection.
|
||||
@interface SUUpdateDownloader : NSObject <SUUpdateDownloaderProtocol>
|
||||
@interface SUPersistentDownloader : NSObject <SUPersistentDownloaderProtocol>
|
||||
|
||||
// Due to XPC remote object reasons, this delegate is strongly referenced
|
||||
// Invoke cleanup when done with this instance
|
||||
- (instancetype)initWithDelegate:(id <SUDownloaderDelegate>)delegate;
|
||||
- (instancetype)initWithDelegate:(id <SUPersistentDownloaderDelegate>)delegate;
|
||||
|
||||
@end
|
||||
+11
-11
@@ -1,22 +1,22 @@
|
||||
//
|
||||
// SUUpdateDownloader.m
|
||||
// UpdateDownloader
|
||||
// SUPersistentDownloader.m
|
||||
// PersistentDownloader
|
||||
//
|
||||
// Created by Mayur Pawashe on 4/1/16.
|
||||
// Copyright © 2016 Sparkle Project. All rights reserved.
|
||||
//
|
||||
|
||||
#import "SUUpdateDownloader.h"
|
||||
#import "SUDownloaderDelegate.h"
|
||||
#import "SUPersistentDownloader.h"
|
||||
#import "SUPersistentDownloaderDelegate.h"
|
||||
#import "SUURLRequest.h"
|
||||
#import "SUErrors.h"
|
||||
|
||||
static NSString *SUUpdateDownloadingReason = @"Downloading Update";
|
||||
static NSString *SUPersistentDownloadingReason = @"Downloading persistent file";
|
||||
|
||||
@interface SUUpdateDownloader () <NSURLDownloadDelegate>
|
||||
@interface SUPersistentDownloader () <NSURLDownloadDelegate>
|
||||
|
||||
// Delegate is intentionally strongly referenced; see header
|
||||
@property (nonatomic) id <SUDownloaderDelegate> delegate;
|
||||
@property (nonatomic) id <SUPersistentDownloaderDelegate> delegate;
|
||||
@property (nonatomic) NSURLDownload *download;
|
||||
@property (nonatomic, copy) NSString *bundleIdentifier;
|
||||
@property (nonatomic, copy) NSString *desiredFilename;
|
||||
@@ -24,7 +24,7 @@ static NSString *SUUpdateDownloadingReason = @"Downloading Update";
|
||||
|
||||
@end
|
||||
|
||||
@implementation SUUpdateDownloader
|
||||
@implementation SUPersistentDownloader
|
||||
|
||||
@synthesize delegate = _delegate;
|
||||
@synthesize download = _download;
|
||||
@@ -32,7 +32,7 @@ static NSString *SUUpdateDownloadingReason = @"Downloading Update";
|
||||
@synthesize desiredFilename = _desiredFilename;
|
||||
@synthesize disabledAutomaticTermination = _disabledAutomaticTermination;
|
||||
|
||||
- (instancetype)initWithDelegate:(id <SUDownloaderDelegate>)delegate
|
||||
- (instancetype)initWithDelegate:(id <SUPersistentDownloaderDelegate>)delegate
|
||||
{
|
||||
self = [super init];
|
||||
if (self != nil) {
|
||||
@@ -53,7 +53,7 @@ static NSString *SUUpdateDownloadingReason = @"Downloading Update";
|
||||
}
|
||||
|
||||
// Prevent service from automatically terminating while downloading the update asynchronously without any reply blocks
|
||||
[[NSProcessInfo processInfo] disableAutomaticTermination:SUUpdateDownloadingReason];
|
||||
[[NSProcessInfo processInfo] disableAutomaticTermination:SUPersistentDownloadingReason];
|
||||
self.disabledAutomaticTermination = YES;
|
||||
|
||||
self.download = [[NSURLDownload alloc] initWithRequest:request.request delegate:self];
|
||||
@@ -65,7 +65,7 @@ static NSString *SUUpdateDownloadingReason = @"Downloading Update";
|
||||
- (void)enableAutomaticTermination
|
||||
{
|
||||
if (self.disabledAutomaticTermination) {
|
||||
[[NSProcessInfo processInfo] enableAutomaticTermination:SUUpdateDownloadingReason];
|
||||
[[NSProcessInfo processInfo] enableAutomaticTermination:SUPersistentDownloadingReason];
|
||||
self.disabledAutomaticTermination = NO;
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// SUDownloaderDelegate.h
|
||||
// SUPersistentDownloaderDelegate.h
|
||||
// Sparkle
|
||||
//
|
||||
// Created by Mayur Pawashe on 4/1/16.
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@protocol SUDownloaderDelegate <NSObject>
|
||||
@protocol SUPersistentDownloaderDelegate <NSObject>
|
||||
|
||||
- (void)downloaderDidSetDestinationName:(NSString *)destinationName temporaryDirectory:(NSString *)temporaryDirectory;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
//
|
||||
// SUUpdateDownloaderProtocol.h
|
||||
// UpdateDownloader
|
||||
// SUPersistentDownloaderProtocol.h
|
||||
// PersistentDownloader
|
||||
//
|
||||
// Created by Mayur Pawashe on 4/1/16.
|
||||
// Copyright © 2016 Sparkle Project. All rights reserved.
|
||||
@@ -13,7 +13,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@class SUURLRequest;
|
||||
|
||||
// The protocol that this service will vend as its API. This header file will also need to be visible to the process hosting the service.
|
||||
@protocol SUUpdateDownloaderProtocol
|
||||
@protocol SUPersistentDownloaderProtocol
|
||||
|
||||
- (void)startDownloadWithRequest:(SUURLRequest *)request bundleIdentifier:(NSString *)bundleIdentifier desiredFilename:(NSString *)desiredFilename;
|
||||
|
||||
File renamed without changes.
@@ -1,14 +1,14 @@
|
||||
//
|
||||
// main.m
|
||||
// UpdateDownloader
|
||||
// PersistentDownloader
|
||||
//
|
||||
// Created by Mayur Pawashe on 4/1/16.
|
||||
// Copyright © 2016 Sparkle Project. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "SUUpdateDownloader.h"
|
||||
#import "SUDownloaderDelegate.h"
|
||||
#import "SUPersistentDownloader.h"
|
||||
#import "SUPersistentDownloaderDelegate.h"
|
||||
|
||||
@interface ServiceDelegate : NSObject <NSXPCListenerDelegate>
|
||||
@end
|
||||
@@ -20,13 +20,13 @@
|
||||
|
||||
// Configure the connection.
|
||||
// First, set the interface that the exported object implements.
|
||||
newConnection.exportedInterface = [NSXPCInterface interfaceWithProtocol:@protocol(SUUpdateDownloaderProtocol)];
|
||||
newConnection.exportedInterface = [NSXPCInterface interfaceWithProtocol:@protocol(SUPersistentDownloaderProtocol)];
|
||||
|
||||
// Then set remote object interface
|
||||
newConnection.remoteObjectInterface = [NSXPCInterface interfaceWithProtocol:@protocol(SUDownloaderDelegate)];
|
||||
newConnection.remoteObjectInterface = [NSXPCInterface interfaceWithProtocol:@protocol(SUPersistentDownloaderDelegate)];
|
||||
|
||||
// Next, set the object that the connection exports. All messages sent on the connection to this service will be sent to the exported object to handle. The connection retains the exported object.
|
||||
SUUpdateDownloader *exportedObject = [[SUUpdateDownloader alloc] initWithDelegate:newConnection.remoteObjectProxy];
|
||||
SUPersistentDownloader *exportedObject = [[SUPersistentDownloader alloc] initWithDelegate:newConnection.remoteObjectProxy];
|
||||
newConnection.exportedObject = exportedObject;
|
||||
|
||||
// Resuming the connection allows the system to deliver more incoming messages.
|
||||
@@ -143,6 +143,9 @@
|
||||
7229E1BD1C98EFF200CB50D0 /* SUDownloadDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 7229E1BB1C98EFF200CB50D0 /* SUDownloadDriver.h */; };
|
||||
7229E1BE1C98EFF200CB50D0 /* SUDownloadDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 7229E1BC1C98EFF200CB50D0 /* SUDownloadDriver.m */; };
|
||||
723B252A1CEA7F3B00909873 /* bscommon.c in Sources */ = {isa = PBXBuildFile; fileRef = 72B09CE91CEA18900052EF9E /* bscommon.c */; };
|
||||
723B5DA71CF7AB0100365F95 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 723B5DA01CF7AB0100365F95 /* main.m */; };
|
||||
723B5DA91CF7AB0100365F95 /* SUPersistentDownloader.m in Sources */ = {isa = PBXBuildFile; fileRef = 723B5DA31CF7AB0100365F95 /* SUPersistentDownloader.m */; };
|
||||
723B5DAA1CF7AB6A00365F95 /* SUPersistentDownloader.m in Sources */ = {isa = PBXBuildFile; fileRef = 723B5DA31CF7AB0100365F95 /* SUPersistentDownloader.m */; };
|
||||
7246E0A31C83B685003B4E75 /* SUStandardUpdaterController.h in Headers */ = {isa = PBXBuildFile; fileRef = 7246E0A11C83B685003B4E75 /* SUStandardUpdaterController.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
||||
7246E0A41C83B685003B4E75 /* SUStandardUpdaterController.m in Sources */ = {isa = PBXBuildFile; fileRef = 7246E0A21C83B685003B4E75 /* SUStandardUpdaterController.m */; };
|
||||
725602D51C83551C00DAA70E /* SUApplicationInfo.h in Headers */ = {isa = PBXBuildFile; fileRef = 725602D31C83551C00DAA70E /* SUApplicationInfo.h */; };
|
||||
@@ -180,9 +183,6 @@
|
||||
726E07BE1CAF0C5C001A286B /* SUFileManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 7275F9C01B5F1F2900B1D19E /* SUFileManager.m */; };
|
||||
726E07BF1CAF0C6C001A286B /* SUConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 61299A5F09CA6EB100B7442F /* SUConstants.m */; };
|
||||
726E07C01CAF15B7001A286B /* SULog.m in Sources */ = {isa = PBXBuildFile; fileRef = 55C14F05136EF6DB00649790 /* SULog.m */; };
|
||||
726E07F41CAF37BD001A286B /* SUUpdateDownloader.m in Sources */ = {isa = PBXBuildFile; fileRef = 726E07F31CAF37BD001A286B /* SUUpdateDownloader.m */; };
|
||||
726E07F61CAF37BD001A286B /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 726E07F51CAF37BD001A286B /* main.m */; };
|
||||
726E08011CAF3F70001A286B /* SUDownloaderDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 726E08001CAF3F70001A286B /* SUDownloaderDelegate.h */; };
|
||||
726E4A0E1C86881600C57C6A /* SUStandardUserDriverUIDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 726E4A0D1C86881600C57C6A /* SUStandardUserDriverUIDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
||||
726E4A101C86B5A200C57C6A /* SUStandardUserDriverRemoteDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 726E4A0F1C86B5A200C57C6A /* SUStandardUserDriverRemoteDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
||||
726E4A1B1C86C88F00C57C6A /* TestAppHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = 726E4A1A1C86C88F00C57C6A /* TestAppHelper.m */; };
|
||||
@@ -299,9 +299,8 @@
|
||||
72F94F591CC44DE1002DEE68 /* SUXPCServiceInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = 72F94F571CC44DE1002DEE68 /* SUXPCServiceInfo.m */; };
|
||||
72F94F5A1CC450DE002DEE68 /* SUInstallerLauncher.m in Sources */ = {isa = PBXBuildFile; fileRef = 726E07B11CAF08D6001A286B /* SUInstallerLauncher.m */; };
|
||||
72F94F5B1CC451B4002DEE68 /* SUAppcastDownloader.m in Sources */ = {isa = PBXBuildFile; fileRef = 728638F71CAF5A5F00783084 /* SUAppcastDownloader.m */; };
|
||||
72F94F5C1CC452C1002DEE68 /* SUUpdateDownloader.m in Sources */ = {isa = PBXBuildFile; fileRef = 726E07F31CAF37BD001A286B /* SUUpdateDownloader.m */; };
|
||||
72F94F5D1CC455B4002DEE68 /* SparkleInstallerLauncher.xpc in Embed XPC Services */ = {isa = PBXBuildFile; fileRef = 726E07AD1CAF08D6001A286B /* SparkleInstallerLauncher.xpc */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
|
||||
72F94F5E1CC455B4002DEE68 /* SparkleUpdateDownloader.xpc in Embed XPC Services */ = {isa = PBXBuildFile; fileRef = 726E07EF1CAF37BD001A286B /* SparkleUpdateDownloader.xpc */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
|
||||
72F94F5E1CC455B4002DEE68 /* SparklePersistentDownloader.xpc in Embed XPC Services */ = {isa = PBXBuildFile; fileRef = 726E07EF1CAF37BD001A286B /* SparklePersistentDownloader.xpc */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
|
||||
72F94F5F1CC455B4002DEE68 /* SparkleAppcastDownloader.xpc in Embed XPC Services */ = {isa = PBXBuildFile; fileRef = 728638F31CAF5A5F00783084 /* SparkleAppcastDownloader.xpc */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
|
||||
72F94F601CC455B4002DEE68 /* SparkleRemoteMessagePort.xpc in Embed XPC Services */ = {isa = PBXBuildFile; fileRef = 72E41A3E1CB20BA7003D47E0 /* SparkleRemoteMessagePort.xpc */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
|
||||
767B61AC1972D488004E0C3C /* SUGuidedPackageInstaller.h in Headers */ = {isa = PBXBuildFile; fileRef = 767B61AA1972D488004E0C3C /* SUGuidedPackageInstaller.h */; };
|
||||
@@ -524,7 +523,7 @@
|
||||
dstSubfolderSpec = 16;
|
||||
files = (
|
||||
72F94F5D1CC455B4002DEE68 /* SparkleInstallerLauncher.xpc in Embed XPC Services */,
|
||||
72F94F5E1CC455B4002DEE68 /* SparkleUpdateDownloader.xpc in Embed XPC Services */,
|
||||
72F94F5E1CC455B4002DEE68 /* SparklePersistentDownloader.xpc in Embed XPC Services */,
|
||||
72F94F5F1CC455B4002DEE68 /* SparkleAppcastDownloader.xpc in Embed XPC Services */,
|
||||
72F94F601CC455B4002DEE68 /* SparkleRemoteMessagePort.xpc in Embed XPC Services */,
|
||||
726E4A211C86C88F00C57C6A /* TestAppHelper.xpc in Embed XPC Services */,
|
||||
@@ -785,6 +784,13 @@
|
||||
7229E1B81C97CC4D00CB50D0 /* SUScheduledUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUScheduledUpdateDriver.m; sourceTree = "<group>"; };
|
||||
7229E1BB1C98EFF200CB50D0 /* SUDownloadDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUDownloadDriver.h; sourceTree = "<group>"; };
|
||||
7229E1BC1C98EFF200CB50D0 /* SUDownloadDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUDownloadDriver.m; sourceTree = "<group>"; };
|
||||
723B5D9F1CF7AB0100365F95 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = PersistentDownloader/Info.plist; sourceTree = SOURCE_ROOT; };
|
||||
723B5DA01CF7AB0100365F95 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = PersistentDownloader/main.m; sourceTree = SOURCE_ROOT; };
|
||||
723B5DA11CF7AB0100365F95 /* SparklePersistentDownloader.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; name = SparklePersistentDownloader.entitlements; path = PersistentDownloader/SparklePersistentDownloader.entitlements; sourceTree = SOURCE_ROOT; };
|
||||
723B5DA21CF7AB0100365F95 /* SUPersistentDownloader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SUPersistentDownloader.h; path = PersistentDownloader/SUPersistentDownloader.h; sourceTree = SOURCE_ROOT; };
|
||||
723B5DA31CF7AB0100365F95 /* SUPersistentDownloader.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SUPersistentDownloader.m; path = PersistentDownloader/SUPersistentDownloader.m; sourceTree = SOURCE_ROOT; };
|
||||
723B5DA41CF7AB0100365F95 /* SUPersistentDownloaderDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SUPersistentDownloaderDelegate.h; path = PersistentDownloader/SUPersistentDownloaderDelegate.h; sourceTree = SOURCE_ROOT; };
|
||||
723B5DA51CF7AB0100365F95 /* SUPersistentDownloaderProtocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SUPersistentDownloaderProtocol.h; path = PersistentDownloader/SUPersistentDownloaderProtocol.h; sourceTree = SOURCE_ROOT; };
|
||||
7246E0A11C83B685003B4E75 /* SUStandardUpdaterController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUStandardUpdaterController.h; sourceTree = "<group>"; };
|
||||
7246E0A21C83B685003B4E75 /* SUStandardUpdaterController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUStandardUpdaterController.m; sourceTree = "<group>"; };
|
||||
725602D31C83551C00DAA70E /* SUApplicationInfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUApplicationInfo.h; sourceTree = "<group>"; };
|
||||
@@ -822,14 +828,7 @@
|
||||
726E07B31CAF08D6001A286B /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
|
||||
726E07B51CAF08D6001A286B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||
726E07C11CAF1E79001A286B /* ConfigInstallerLauncher.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ConfigInstallerLauncher.xcconfig; sourceTree = "<group>"; };
|
||||
726E07EF1CAF37BD001A286B /* SparkleUpdateDownloader.xpc */ = {isa = PBXFileReference; explicitFileType = "wrapper.xpc-service"; includeInIndex = 0; path = SparkleUpdateDownloader.xpc; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
726E07F11CAF37BD001A286B /* SUUpdateDownloaderProtocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SUUpdateDownloaderProtocol.h; sourceTree = "<group>"; };
|
||||
726E07F21CAF37BD001A286B /* SUUpdateDownloader.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SUUpdateDownloader.h; sourceTree = "<group>"; };
|
||||
726E07F31CAF37BD001A286B /* SUUpdateDownloader.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SUUpdateDownloader.m; sourceTree = "<group>"; };
|
||||
726E07F51CAF37BD001A286B /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
|
||||
726E07F71CAF37BD001A286B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||
726E07FF1CAF3801001A286B /* SparkleUpdateDownloader.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = SparkleUpdateDownloader.entitlements; sourceTree = "<group>"; };
|
||||
726E08001CAF3F70001A286B /* SUDownloaderDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SUDownloaderDelegate.h; path = ../Sparkle/SUDownloaderDelegate.h; sourceTree = "<group>"; };
|
||||
726E07EF1CAF37BD001A286B /* SparklePersistentDownloader.xpc */ = {isa = PBXFileReference; explicitFileType = "wrapper.xpc-service"; includeInIndex = 0; path = SparklePersistentDownloader.xpc; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
726E4A0D1C86881600C57C6A /* SUStandardUserDriverUIDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUStandardUserDriverUIDelegate.h; sourceTree = "<group>"; };
|
||||
726E4A0F1C86B5A200C57C6A /* SUStandardUserDriverRemoteDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUStandardUserDriverRemoteDelegate.h; sourceTree = "<group>"; };
|
||||
726E4A111C86C44A00C57C6A /* Sparkle-Test-App.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = "Sparkle-Test-App.entitlements"; sourceTree = "<group>"; };
|
||||
@@ -850,7 +849,7 @@
|
||||
7275F9C01B5F1F2900B1D19E /* SUFileManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUFileManager.m; sourceTree = "<group>"; };
|
||||
728337A41C9E6FF40085AA99 /* SUProbeInstallStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUProbeInstallStatus.h; sourceTree = "<group>"; };
|
||||
728337A51C9E6FF40085AA99 /* SUProbeInstallStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUProbeInstallStatus.m; sourceTree = "<group>"; };
|
||||
728638EE1CAF589C00783084 /* ConfigUpdateDownloader.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigUpdateDownloader.xcconfig; sourceTree = "<group>"; };
|
||||
728638EE1CAF589C00783084 /* ConfigPersistentDownloader.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigPersistentDownloader.xcconfig; sourceTree = "<group>"; };
|
||||
728638F31CAF5A5F00783084 /* SparkleAppcastDownloader.xpc */ = {isa = PBXFileReference; explicitFileType = "wrapper.xpc-service"; includeInIndex = 0; path = SparkleAppcastDownloader.xpc; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
728638F51CAF5A5F00783084 /* SUAppcastDownloaderProtocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SUAppcastDownloaderProtocol.h; sourceTree = "<group>"; };
|
||||
728638F61CAF5A5F00783084 /* SUAppcastDownloader.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SUAppcastDownloader.h; sourceTree = "<group>"; };
|
||||
@@ -938,7 +937,7 @@
|
||||
72F94EB01CC2A865002DEE68 /* ConfigCommonReleaseHTTP.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigCommonReleaseHTTP.xcconfig; sourceTree = "<group>"; };
|
||||
72F94ED31CC33F1E002DEE68 /* set-ats-exceptions.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = "set-ats-exceptions.sh"; sourceTree = "<group>"; };
|
||||
72F94ED51CC3441A002DEE68 /* ConfigInstallerLauncherDebug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigInstallerLauncherDebug.xcconfig; sourceTree = "<group>"; };
|
||||
72F94ED61CC344A7002DEE68 /* ConfigUpdateDownloaderDebug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigUpdateDownloaderDebug.xcconfig; sourceTree = "<group>"; };
|
||||
72F94ED61CC344A7002DEE68 /* ConfigPersistentDownloaderDebug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigPersistentDownloaderDebug.xcconfig; sourceTree = "<group>"; };
|
||||
72F94ED71CC344E4002DEE68 /* ConfigAppcastDownloaderDebug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigAppcastDownloaderDebug.xcconfig; sourceTree = "<group>"; };
|
||||
72F94ED81CC34529002DEE68 /* ConfigRemoteMessagePortDebug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigRemoteMessagePortDebug.xcconfig; sourceTree = "<group>"; };
|
||||
72F94EDA1CC36C37002DEE68 /* ConfigTestAppDebug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigTestAppDebug.xcconfig; sourceTree = "<group>"; };
|
||||
@@ -1100,7 +1099,7 @@
|
||||
726B2B5D1C645FC900388755 /* UI Tests.xctest */,
|
||||
726E4A161C86C88F00C57C6A /* TestAppHelper.xpc */,
|
||||
726E07AD1CAF08D6001A286B /* SparkleInstallerLauncher.xpc */,
|
||||
726E07EF1CAF37BD001A286B /* SparkleUpdateDownloader.xpc */,
|
||||
726E07EF1CAF37BD001A286B /* SparklePersistentDownloader.xpc */,
|
||||
728638F31CAF5A5F00783084 /* SparkleAppcastDownloader.xpc */,
|
||||
72E41A3E1CB20BA7003D47E0 /* SparkleRemoteMessagePort.xpc */,
|
||||
721C24451CB753E6005440CB /* Updater.app */,
|
||||
@@ -1539,18 +1538,18 @@
|
||||
path = ../InstallerLauncher;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
726E07F01CAF37BD001A286B /* UpdateDownloader */ = {
|
||||
726E07F01CAF37BD001A286B /* PersistentDownloader */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
726E07F11CAF37BD001A286B /* SUUpdateDownloaderProtocol.h */,
|
||||
726E08001CAF3F70001A286B /* SUDownloaderDelegate.h */,
|
||||
726E07F21CAF37BD001A286B /* SUUpdateDownloader.h */,
|
||||
726E07F31CAF37BD001A286B /* SUUpdateDownloader.m */,
|
||||
726E07F51CAF37BD001A286B /* main.m */,
|
||||
726E07F71CAF37BD001A286B /* Info.plist */,
|
||||
726E07FF1CAF3801001A286B /* SparkleUpdateDownloader.entitlements */,
|
||||
723B5D9F1CF7AB0100365F95 /* Info.plist */,
|
||||
723B5DA01CF7AB0100365F95 /* main.m */,
|
||||
723B5DA11CF7AB0100365F95 /* SparklePersistentDownloader.entitlements */,
|
||||
723B5DA21CF7AB0100365F95 /* SUPersistentDownloader.h */,
|
||||
723B5DA31CF7AB0100365F95 /* SUPersistentDownloader.m */,
|
||||
723B5DA41CF7AB0100365F95 /* SUPersistentDownloaderDelegate.h */,
|
||||
723B5DA51CF7AB0100365F95 /* SUPersistentDownloaderProtocol.h */,
|
||||
);
|
||||
name = UpdateDownloader;
|
||||
name = PersistentDownloader;
|
||||
path = ../UpdateDownloader;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
@@ -1648,7 +1647,7 @@
|
||||
72F94F571CC44DE1002DEE68 /* SUXPCServiceInfo.m */,
|
||||
728638F41CAF5A5F00783084 /* AppcastDownloader */,
|
||||
726E07AE1CAF08D6001A286B /* InstallerLauncher */,
|
||||
726E07F01CAF37BD001A286B /* UpdateDownloader */,
|
||||
726E07F01CAF37BD001A286B /* PersistentDownloader */,
|
||||
72E41A3F1CB20BA7003D47E0 /* RemoteMessagePort */,
|
||||
);
|
||||
name = "XPC Services";
|
||||
@@ -1678,8 +1677,8 @@
|
||||
729F10FE1C65A9B500DFCCC5 /* ConfigUITestCoverage.xcconfig */,
|
||||
726E07C11CAF1E79001A286B /* ConfigInstallerLauncher.xcconfig */,
|
||||
72F94ED51CC3441A002DEE68 /* ConfigInstallerLauncherDebug.xcconfig */,
|
||||
728638EE1CAF589C00783084 /* ConfigUpdateDownloader.xcconfig */,
|
||||
72F94ED61CC344A7002DEE68 /* ConfigUpdateDownloaderDebug.xcconfig */,
|
||||
728638EE1CAF589C00783084 /* ConfigPersistentDownloader.xcconfig */,
|
||||
72F94ED61CC344A7002DEE68 /* ConfigPersistentDownloaderDebug.xcconfig */,
|
||||
728639041CAF614000783084 /* ConfigAppcastDownloader.xcconfig */,
|
||||
72F94ED71CC344E4002DEE68 /* ConfigAppcastDownloaderDebug.xcconfig */,
|
||||
72E41A551CB22F44003D47E0 /* ConfigRemoteMessagePort.xcconfig */,
|
||||
@@ -1723,7 +1722,6 @@
|
||||
61B5FC0D09C4FC8200B25A18 /* SUAppcast.h in Headers */,
|
||||
72A1C2631CD6849C004CD282 /* SUUpdatePermissionPrompt.h in Headers */,
|
||||
7246E0A31C83B685003B4E75 /* SUStandardUpdaterController.h in Headers */,
|
||||
726E08011CAF3F70001A286B /* SUDownloaderDelegate.h in Headers */,
|
||||
61299A8D09CA790200B7442F /* SUUnarchiver.h in Headers */,
|
||||
61B5FC7009C51F4A00B25A18 /* SUAppcastItem.h in Headers */,
|
||||
72B767D61C9C8B5C00A07552 /* SUBasicUpdateDriver.h in Headers */,
|
||||
@@ -1942,9 +1940,9 @@
|
||||
productReference = 726E07AD1CAF08D6001A286B /* SparkleInstallerLauncher.xpc */;
|
||||
productType = "com.apple.product-type.xpc-service";
|
||||
};
|
||||
726E07EE1CAF37BD001A286B /* SparkleUpdateDownloader */ = {
|
||||
726E07EE1CAF37BD001A286B /* SparklePersistentDownloader */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 726E07FB1CAF37BD001A286B /* Build configuration list for PBXNativeTarget "SparkleUpdateDownloader" */;
|
||||
buildConfigurationList = 726E07FB1CAF37BD001A286B /* Build configuration list for PBXNativeTarget "SparklePersistentDownloader" */;
|
||||
buildPhases = (
|
||||
726E07EB1CAF37BD001A286B /* Sources */,
|
||||
726E07EC1CAF37BD001A286B /* Frameworks */,
|
||||
@@ -1955,9 +1953,9 @@
|
||||
);
|
||||
dependencies = (
|
||||
);
|
||||
name = SparkleUpdateDownloader;
|
||||
name = SparklePersistentDownloader;
|
||||
productName = UpdateDownloader;
|
||||
productReference = 726E07EF1CAF37BD001A286B /* SparkleUpdateDownloader.xpc */;
|
||||
productReference = 726E07EF1CAF37BD001A286B /* SparklePersistentDownloader.xpc */;
|
||||
productType = "com.apple.product-type.xpc-service";
|
||||
};
|
||||
726E4A151C86C88F00C57C6A /* TestAppHelper */ = {
|
||||
@@ -2179,7 +2177,7 @@
|
||||
targets = (
|
||||
8DC2EF4F0486A6940098B216 /* Sparkle */,
|
||||
726E07AC1CAF08D6001A286B /* SparkleInstallerLauncher */,
|
||||
726E07EE1CAF37BD001A286B /* SparkleUpdateDownloader */,
|
||||
726E07EE1CAF37BD001A286B /* SparklePersistentDownloader */,
|
||||
728638F21CAF5A5F00783084 /* SparkleAppcastDownloader */,
|
||||
72E41A3D1CB20BA7003D47E0 /* SparkleRemoteMessagePort */,
|
||||
61B5F90109C4CEE200B25A18 /* Sparkle Test App */,
|
||||
@@ -2553,9 +2551,9 @@
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
7293A1B11CEE9B9F00B957A7 /* SUURLRequest.m in Sources */,
|
||||
723B5DA71CF7AB0100365F95 /* main.m in Sources */,
|
||||
728638ED1CAF50CE00783084 /* SUConstants.m in Sources */,
|
||||
726E07F61CAF37BD001A286B /* main.m in Sources */,
|
||||
726E07F41CAF37BD001A286B /* SUUpdateDownloader.m in Sources */,
|
||||
723B5DA91CF7AB0100365F95 /* SUPersistentDownloader.m in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
@@ -2602,7 +2600,7 @@
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
72F94F5C1CC452C1002DEE68 /* SUUpdateDownloader.m in Sources */,
|
||||
723B5DAA1CF7AB6A00365F95 /* SUPersistentDownloader.m in Sources */,
|
||||
72F94F5B1CC451B4002DEE68 /* SUAppcastDownloader.m in Sources */,
|
||||
72F94F5A1CC450DE002DEE68 /* SUInstallerLauncher.m in Sources */,
|
||||
72B767E31C9CE90A00A07552 /* SUCoreBasedUpdateDriver.m in Sources */,
|
||||
@@ -2739,7 +2737,7 @@
|
||||
};
|
||||
72F94F641CC48669002DEE68 /* PBXTargetDependency */ = {
|
||||
isa = PBXTargetDependency;
|
||||
target = 726E07EE1CAF37BD001A286B /* SparkleUpdateDownloader */;
|
||||
target = 726E07EE1CAF37BD001A286B /* SparklePersistentDownloader */;
|
||||
targetProxy = 72F94F631CC48669002DEE68 /* PBXContainerItemProxy */;
|
||||
};
|
||||
72F94F661CC48669002DEE68 /* PBXTargetDependency */ = {
|
||||
@@ -2759,7 +2757,7 @@
|
||||
};
|
||||
72F94F6D1CC4A0C8002DEE68 /* PBXTargetDependency */ = {
|
||||
isa = PBXTargetDependency;
|
||||
target = 726E07EE1CAF37BD001A286B /* SparkleUpdateDownloader */;
|
||||
target = 726E07EE1CAF37BD001A286B /* SparklePersistentDownloader */;
|
||||
targetProxy = 72F94F6C1CC4A0C8002DEE68 /* PBXContainerItemProxy */;
|
||||
};
|
||||
72F94F6F1CC4A0C8002DEE68 /* PBXTargetDependency */ = {
|
||||
@@ -3189,7 +3187,7 @@
|
||||
};
|
||||
726E07FC1CAF37BD001A286B /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 72F94ED61CC344A7002DEE68 /* ConfigUpdateDownloaderDebug.xcconfig */;
|
||||
baseConfigurationReference = 72F94ED61CC344A7002DEE68 /* ConfigPersistentDownloaderDebug.xcconfig */;
|
||||
buildSettings = {
|
||||
CLANG_ANALYZER_NONNULL = YES;
|
||||
};
|
||||
@@ -3197,7 +3195,7 @@
|
||||
};
|
||||
726E07FD1CAF37BD001A286B /* Coverage */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 72F94ED61CC344A7002DEE68 /* ConfigUpdateDownloaderDebug.xcconfig */;
|
||||
baseConfigurationReference = 72F94ED61CC344A7002DEE68 /* ConfigPersistentDownloaderDebug.xcconfig */;
|
||||
buildSettings = {
|
||||
CLANG_ANALYZER_NONNULL = YES;
|
||||
};
|
||||
@@ -3205,7 +3203,7 @@
|
||||
};
|
||||
726E07FE1CAF37BD001A286B /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 728638EE1CAF589C00783084 /* ConfigUpdateDownloader.xcconfig */;
|
||||
baseConfigurationReference = 728638EE1CAF589C00783084 /* ConfigPersistentDownloader.xcconfig */;
|
||||
buildSettings = {
|
||||
CLANG_ANALYZER_NONNULL = YES;
|
||||
};
|
||||
@@ -3322,7 +3320,7 @@
|
||||
};
|
||||
72F94EA21CC2A23A002DEE68 /* Release-HTTP */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 728638EE1CAF589C00783084 /* ConfigUpdateDownloader.xcconfig */;
|
||||
baseConfigurationReference = 728638EE1CAF589C00783084 /* ConfigPersistentDownloader.xcconfig */;
|
||||
buildSettings = {
|
||||
CLANG_ANALYZER_NONNULL = YES;
|
||||
};
|
||||
@@ -3554,7 +3552,7 @@
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
726E07FB1CAF37BD001A286B /* Build configuration list for PBXNativeTarget "SparkleUpdateDownloader" */ = {
|
||||
726E07FB1CAF37BD001A286B /* Build configuration list for PBXNativeTarget "SparklePersistentDownloader" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
726E07FC1CAF37BD001A286B /* Debug */,
|
||||
|
||||
Vendored
+1
-1
@@ -49,7 +49,7 @@
|
||||
|
||||
// If we support sandboxing this component in the future, it is important to note this may return a different path
|
||||
// For this reason, this method should not be a part of SUHost because its behavior depends on what kind of process it's being invoked from
|
||||
#warning kind of duplicated code from SUUpdateDownloader ??
|
||||
#warning kind of duplicated code from SUPersistentDownloader ??
|
||||
+ (NSString *)sparkleCachePathForHost:(SUHost *)host
|
||||
{
|
||||
NSArray *cachePaths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
|
||||
|
||||
Vendored
+9
-9
@@ -7,8 +7,8 @@
|
||||
//
|
||||
|
||||
#import "SUDownloadDriver.h"
|
||||
#import "SUDownloaderDelegate.h"
|
||||
#import "SUUpdateDownloader.h"
|
||||
#import "SUPersistentDownloaderDelegate.h"
|
||||
#import "SUPersistentDownloader.h"
|
||||
#import "SUXPCServiceInfo.h"
|
||||
#import "SUAppcastItem.h"
|
||||
#import "SUFileManager.h"
|
||||
@@ -22,9 +22,9 @@
|
||||
#error This is a "core" class and should NOT import AppKit
|
||||
#endif
|
||||
|
||||
@interface SUDownloadDriver () <SUDownloaderDelegate>
|
||||
@interface SUDownloadDriver () <SUPersistentDownloaderDelegate>
|
||||
|
||||
@property (nonatomic) id<SUUpdateDownloaderProtocol> downloader;
|
||||
@property (nonatomic) id<SUPersistentDownloaderProtocol> downloader;
|
||||
@property (nonatomic) NSXPCConnection *connection;
|
||||
@property (nonatomic, readonly) SUAppcastItem *updateItem;
|
||||
@property (nonatomic, readonly) SUHost *host;
|
||||
@@ -58,12 +58,12 @@
|
||||
_request = [NSMutableURLRequest requestWithURL:updateItem.fileURL];
|
||||
[_request setValue:userAgent forHTTPHeaderField:@"User-Agent"];
|
||||
|
||||
if (!SUXPCServiceExists(@UPDATE_DOWNLOADER_PRODUCT_NAME)) {
|
||||
_downloader = [[SUUpdateDownloader alloc] initWithDelegate:self];
|
||||
if (!SUXPCServiceExists(@PERSISTENT_DOWNLOADER_PRODUCT_NAME)) {
|
||||
_downloader = [[SUPersistentDownloader alloc] initWithDelegate:self];
|
||||
} else {
|
||||
_connection = [[NSXPCConnection alloc] initWithServiceName:@UPDATE_DOWNLOADER_BUNDLE_ID];
|
||||
_connection.remoteObjectInterface = [NSXPCInterface interfaceWithProtocol:@protocol(SUUpdateDownloaderProtocol)];
|
||||
_connection.exportedInterface = [NSXPCInterface interfaceWithProtocol:@protocol(SUDownloaderDelegate)];
|
||||
_connection = [[NSXPCConnection alloc] initWithServiceName:@PERSISTENT_DOWNLOADER_BUNDLE_ID];
|
||||
_connection.remoteObjectInterface = [NSXPCInterface interfaceWithProtocol:@protocol(SUPersistentDownloaderProtocol)];
|
||||
_connection.exportedInterface = [NSXPCInterface interfaceWithProtocol:@protocol(SUPersistentDownloaderDelegate)];
|
||||
_connection.exportedObject = self;
|
||||
|
||||
_downloader = _connection.remoteObjectProxy;
|
||||
|
||||
Vendored
+3
-3
@@ -173,15 +173,15 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification
|
||||
BOOL foundXPCAppcastDownloaderService = NO;
|
||||
BOOL foundATSAppcastIssue = [self checkATSIssueForBundle:SUXPCServiceBundle(@APPCAST_DOWNLOADER_PRODUCT_NAME) getBundleExists:&foundXPCAppcastDownloaderService];
|
||||
|
||||
BOOL foundXPCUpdateDownloaderService = NO;
|
||||
BOOL foundXPCPersistentDownloaderService = NO;
|
||||
BOOL foundATSUpdateIssue = NO;
|
||||
if (!foundATSAppcastIssue) {
|
||||
foundATSUpdateIssue = [self checkATSIssueForBundle:SUXPCServiceBundle(@UPDATE_DOWNLOADER_PRODUCT_NAME) getBundleExists:&foundXPCUpdateDownloaderService];
|
||||
foundATSUpdateIssue = [self checkATSIssueForBundle:SUXPCServiceBundle(@PERSISTENT_DOWNLOADER_PRODUCT_NAME) getBundleExists:&foundXPCPersistentDownloaderService];
|
||||
}
|
||||
|
||||
NSBundle *mainBundle = [NSBundle mainBundle];
|
||||
BOOL foundATSMainBundleIssue = NO;
|
||||
if (!foundATSAppcastIssue && !foundATSUpdateIssue && (!foundXPCAppcastDownloaderService || !foundXPCUpdateDownloaderService)) {
|
||||
if (!foundATSAppcastIssue && !foundATSUpdateIssue && (!foundXPCAppcastDownloaderService || !foundXPCPersistentDownloaderService)) {
|
||||
BOOL foundATSIssue = ([mainBundle objectForInfoDictionaryKey:@"NSAppTransportSecurity"] == nil);
|
||||
BOOL updatingMainBundle = [self.host.bundle isEqualTo:mainBundle];
|
||||
|
||||
|
||||
Reference in new issue
Block a user