diff --git a/Autoupdate/AppInstaller.m b/Autoupdate/AppInstaller.m index 7d8dbbf0..9f13b664 100644 --- a/Autoupdate/AppInstaller.m +++ b/Autoupdate/AppInstaller.m @@ -561,10 +561,6 @@ static const NSTimeInterval SUDisplayProgressTimeDelay = 0.7; return; } - // Used later for relaunching - // Compute this now before we set this installer property to nil - NSString *installationPath = [self.installer installationPath]; - NSError *thirdStageError = nil; if (![self.installer performFinalInstallationProgressBlock:nil error:&thirdStageError]) { [self.installer performCleanup]; diff --git a/Autoupdate/SUGuidedPackageInstaller.h b/Autoupdate/SUGuidedPackageInstaller.h index 29e9389f..e297cf7c 100644 --- a/Autoupdate/SUGuidedPackageInstaller.h +++ b/Autoupdate/SUGuidedPackageInstaller.h @@ -21,6 +21,6 @@ A guided installation can be started by applications other than the application @interface SUGuidedPackageInstaller : NSObject -- (instancetype)initWithPackagePath:(NSString *)packagePath installationPath:(NSString *)installationPath; +- (instancetype)initWithPackagePath:(NSString *)packagePath; @end diff --git a/Autoupdate/SUGuidedPackageInstaller.m b/Autoupdate/SUGuidedPackageInstaller.m index 402e8aff..5632f0ae 100644 --- a/Autoupdate/SUGuidedPackageInstaller.m +++ b/Autoupdate/SUGuidedPackageInstaller.m @@ -16,21 +16,18 @@ @interface SUGuidedPackageInstaller () @property (nonatomic, readonly, copy) NSString *packagePath; -@property (nonatomic, readonly, copy) NSString *installationPath; @end @implementation SUGuidedPackageInstaller @synthesize packagePath = _packagePath; -@synthesize installationPath = _installationPath; -- (instancetype)initWithPackagePath:(NSString *)packagePath installationPath:(NSString *)installationPath +- (instancetype)initWithPackagePath:(NSString *)packagePath { self = [super init]; if (self != nil) { _packagePath = [packagePath copy]; - _installationPath = [installationPath copy]; } return self; } diff --git a/Autoupdate/SUInstaller.m b/Autoupdate/SUInstaller.m index 553c12b0..7db302e8 100644 --- a/Autoupdate/SUInstaller.m +++ b/Autoupdate/SUInstaller.m @@ -135,7 +135,7 @@ *error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUInstallationError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Found guided package installer but '%@=%@' was probably missing in the appcast item enclosure", SUAppcastAttributeInstallationType, SPUInstallationTypeGuidedPackage] }]; } } else { - installer = [[SUGuidedPackageInstaller alloc] initWithPackagePath:newDownloadPath installationPath:host.bundlePath]; + installer = [[SUGuidedPackageInstaller alloc] initWithPackagePath:newDownloadPath]; } } else if (isPackage) { if (![expectedInstallationType isEqualToString:SPUInstallationTypeInteractivePackage]) { @@ -143,7 +143,7 @@ *error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUInstallationError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Found package installer but '%@=%@' was probably missing in the appcast item enclosure", SUAppcastAttributeInstallationType, SPUInstallationTypeInteractivePackage] }]; } } else { - installer = [[SUPackageInstaller alloc] initWithPackagePath:newDownloadPath installationPath:host.bundlePath]; + installer = [[SUPackageInstaller alloc] initWithPackagePath:newDownloadPath]; } } else { if (![expectedInstallationType isEqualToString:SPUInstallationTypeApplication]) { diff --git a/Autoupdate/SUInstallerProtocol.h b/Autoupdate/SUInstallerProtocol.h index 86fb6f3d..c574bf41 100644 --- a/Autoupdate/SUInstallerProtocol.h +++ b/Autoupdate/SUInstallerProtocol.h @@ -33,9 +33,6 @@ NS_ASSUME_NONNULL_BEGIN // Should be thread safe - (BOOL)canInstallSilently; -// The destination and installation path of the bundle being updated -- (NSString *)installationPath; - @end NS_ASSUME_NONNULL_END diff --git a/Autoupdate/SUPackageInstaller.h b/Autoupdate/SUPackageInstaller.h index b4375618..779118af 100644 --- a/Autoupdate/SUPackageInstaller.h +++ b/Autoupdate/SUPackageInstaller.h @@ -14,6 +14,6 @@ @interface SUPackageInstaller : NSObject -- (instancetype)initWithPackagePath:(NSString *)packagePath installationPath:(NSString *)installationPath; +- (instancetype)initWithPackagePath:(NSString *)packagePath; @end diff --git a/Autoupdate/SUPackageInstaller.m b/Autoupdate/SUPackageInstaller.m index aaaa2e16..056567fb 100644 --- a/Autoupdate/SUPackageInstaller.m +++ b/Autoupdate/SUPackageInstaller.m @@ -17,7 +17,6 @@ @interface SUPackageInstaller () @property (nonatomic, readonly, copy) NSString *packagePath; -@property (nonatomic, readonly, copy) NSString *installationPath; @end @@ -26,14 +25,12 @@ static NSString *SUOpenUtilityPath = @"/usr/bin/open"; @synthesize packagePath = _packagePath; -@synthesize installationPath = _installationPath; -- (instancetype)initWithPackagePath:(NSString *)packagePath installationPath:(NSString *)installationPath +- (instancetype)initWithPackagePath:(NSString *)packagePath { self = [super init]; if (self != nil) { _packagePath = [packagePath copy]; - _installationPath = [installationPath copy]; } return self; } diff --git a/CHANGELOG b/CHANGELOG index 25d1eb8c..ea031b04 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -28,6 +28,7 @@ * System profiler privacy and transparency (#1690) (Martin Pilkington) * Support getting app icon from asset catalog (#1694) (Charles Srstka) * Don't hide update alert window now on deactivation (#1804) (Zorg) +* Raise minimum system version to 10.11 (Zorg) * Special thanks to developers using early builds of this release in production and contributors for keeping this running (Kornel, Jonas Zaugg, Gwynne Raskind, Jordan Rose, Tony Arnold, Bryan Jones, Christian Tietze, Jakob Egger, and many more) Please visit [Sparkle's website](http://sparkle-project.org) for more information on documentation and migration. @@ -711,4 +712,4 @@ Important security fixes: # 0.1 -* Initial Release \ No newline at end of file +* Initial Release diff --git a/Configurations/CommandLineTool-Shared.xcconfig b/Configurations/CommandLineTool-Shared.xcconfig index bff21f68..a1e48a7f 100644 --- a/Configurations/CommandLineTool-Shared.xcconfig +++ b/Configurations/CommandLineTool-Shared.xcconfig @@ -3,4 +3,3 @@ #include "ConfigSwift.xcconfig" SWIFT_OBJC_BRIDGING_HEADER = $(PRODUCT_NAME)/Bridging-Header.h -MACOSX_DEPLOYMENT_TARGET = 10.11 diff --git a/Configurations/ConfigCommon.xcconfig b/Configurations/ConfigCommon.xcconfig index 04ee7259..1800f918 100644 --- a/Configurations/ConfigCommon.xcconfig +++ b/Configurations/ConfigCommon.xcconfig @@ -29,8 +29,7 @@ ENABLE_STRICT_OBJC_MSGSEND = YES GCC_SYMBOLS_PRIVATE_EXTERN = YES GCC_INLINES_ARE_PRIVATE_EXTERN = YES ARCHS = $(ARCHS_STANDARD) -// NSURLSession requirements -MACOSX_DEPLOYMENT_TARGET = 10.9 +MACOSX_DEPLOYMENT_TARGET = 10.11 PRODUCT_NAME = ${TARGET_NAME} PRODUCT_BUNDLE_IDENTIFIER = org.sparkle-project.Sparkle.${PRODUCT_NAME:rfc1034identifier} @@ -42,6 +41,7 @@ DOWNLOADER_BUNDLE_ID = ${XPC_SERVICE_BUNDLE_ID_PREFIX}.Downloader GCC_PREPROCESSOR_DEFINITIONS_COMMON = SPARKLE_NORMALIZE_INSTALLED_APPLICATION_NAME=$(SPARKLE_NORMALIZE_INSTALLED_APPLICATION_NAME) SPARKLE_AUTOMATED_DOWNGRADES=$(SPARKLE_AUTOMATED_DOWNGRADES) 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}\" INSTALLER_CONNECTION_BUNDLE_ID=\"${INSTALLER_CONNECTION_BUNDLE_ID}\" INSTALLER_STATUS_BUNDLE_ID=\"${INSTALLER_STATUS_BUNDLE_ID}\" DOWNLOADER_BUNDLE_ID=\"${DOWNLOADER_BUNDLE_ID}\" +CODE_SIGN_IDENTITY = - ENABLE_HARDENED_RUNTIME = YES CLANG_ENABLE_OBJC_ARC = YES GCC_ENABLE_PASCAL_STRINGS = NO diff --git a/Configurations/ConfigDownloaderDebug.xcconfig b/Configurations/ConfigDownloaderDebug.xcconfig index 64333d84..691804b6 100644 --- a/Configurations/ConfigDownloaderDebug.xcconfig +++ b/Configurations/ConfigDownloaderDebug.xcconfig @@ -1,4 +1,2 @@ // Downloader Debug #include "ConfigDownloader.xcconfig" - -CODE_SIGN_IDENTITY = - diff --git a/Configurations/ConfigInstallerConnectionDebug.xcconfig b/Configurations/ConfigInstallerConnectionDebug.xcconfig index 51a4d689..06f93ff5 100644 --- a/Configurations/ConfigInstallerConnectionDebug.xcconfig +++ b/Configurations/ConfigInstallerConnectionDebug.xcconfig @@ -1,5 +1,3 @@ // InstallerConnection Debug #include "ConfigInstallerConnection.xcconfig" - -CODE_SIGN_IDENTITY = - diff --git a/Configurations/ConfigInstallerLauncherDebug.xcconfig b/Configurations/ConfigInstallerLauncherDebug.xcconfig index 90465dbb..7b6fc26f 100644 --- a/Configurations/ConfigInstallerLauncherDebug.xcconfig +++ b/Configurations/ConfigInstallerLauncherDebug.xcconfig @@ -1,4 +1,2 @@ // Installer Launcher Debug #include "ConfigInstallerLauncher.xcconfig" - -CODE_SIGN_IDENTITY = - diff --git a/Configurations/ConfigInstallerStatusDebug.xcconfig b/Configurations/ConfigInstallerStatusDebug.xcconfig index 86c48100..90589f53 100644 --- a/Configurations/ConfigInstallerStatusDebug.xcconfig +++ b/Configurations/ConfigInstallerStatusDebug.xcconfig @@ -1,5 +1,3 @@ // InstallerStatus Debug #include "ConfigInstallerStatus.xcconfig" - -CODE_SIGN_IDENTITY = - diff --git a/Configurations/ConfigTestApp.xcconfig b/Configurations/ConfigTestApp.xcconfig index d4d6d40c..5e3d9f8a 100644 --- a/Configurations/ConfigTestApp.xcconfig +++ b/Configurations/ConfigTestApp.xcconfig @@ -6,6 +6,4 @@ ASSETCATALOG_COMPILER_APPICON_NAME = $(SPARKLE_ICON_NAME) LD_RUNPATH_SEARCH_PATHS = @executable_path/../Frameworks PRODUCT_BUNDLE_IDENTIFIER = org.sparkle-project.SparkleTestApp CODE_SIGN_ENTITLEMENTS = TestApplication/Sparkle-Test-App.entitlements -MACOSX_DEPLOYMENT_TARGET = 10.10 ENABLE_HARDENED_RUNTIME = NO -CODE_SIGN_IDENTITY = - diff --git a/Configurations/ConfigTestAppDebug.xcconfig b/Configurations/ConfigTestAppDebug.xcconfig index 5b764768..ca152c25 100644 --- a/Configurations/ConfigTestAppDebug.xcconfig +++ b/Configurations/ConfigTestAppDebug.xcconfig @@ -1,4 +1,2 @@ // Test Application Debug #include "ConfigTestApp.xcconfig" - -CODE_SIGN_IDENTITY = - diff --git a/Configurations/ConfigTestAppHelperDebug.xcconfig b/Configurations/ConfigTestAppHelperDebug.xcconfig index 00c4854d..20a428f0 100644 --- a/Configurations/ConfigTestAppHelperDebug.xcconfig +++ b/Configurations/ConfigTestAppHelperDebug.xcconfig @@ -1,4 +1,2 @@ // Test Application Helper Debug #include "ConfigTestAppHelper.xcconfig" - -CODE_SIGN_IDENTITY = - diff --git a/Configurations/ConfigUITest.xcconfig b/Configurations/ConfigUITest.xcconfig index 88f6d890..b982e9c0 100644 --- a/Configurations/ConfigUITest.xcconfig +++ b/Configurations/ConfigUITest.xcconfig @@ -4,7 +4,6 @@ INFOPLIST_FILE = UITests/UITests-Info.plist WRAPPER_EXTENSION = xctest -MACOSX_DEPLOYMENT_TARGET = 10.11 ENABLE_HARDENED_RUNTIME = NO FRAMEWORK_SEARCH_PATHS = $(inherited) $(DEVELOPER_FRAMEWORKS_DIR) diff --git a/Configurations/ConfigUnitTest.xcconfig b/Configurations/ConfigUnitTest.xcconfig index f9e7cea3..eb14622d 100644 --- a/Configurations/ConfigUnitTest.xcconfig +++ b/Configurations/ConfigUnitTest.xcconfig @@ -9,6 +9,5 @@ GCC_SYMBOLS_PRIVATE_EXTERN = NO WARNING_CFLAGS = $(inherited) -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments FRAMEWORK_SEARCH_PATHS = $(inherited) $(DEVELOPER_FRAMEWORKS_DIR) LD_RUNPATH_SEARCH_PATHS = @loader_path/../Frameworks -MACOSX_DEPLOYMENT_TARGET = 10.9 CLANG_ENABLE_MODULES = YES SWIFT_OBJC_BRIDGING_HEADER = Tests/Sparkle Unit Tests-Bridging-Header.h diff --git a/InstallerLauncher/SUInstallerLauncher.m b/InstallerLauncher/SUInstallerLauncher.m index f3bc48a2..a25f72cc 100644 --- a/InstallerLauncher/SUInstallerLauncher.m +++ b/InstallerLauncher/SUInstallerLauncher.m @@ -56,7 +56,10 @@ // We could invoke SMJobCopyDictionary() first to see if the job exists, but I'd rather avoid // using it because the headers indicate it may be removed one day without any replacement CFErrorRef removeError = NULL; +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" if (!SMJobRemove(domain, (__bridge CFStringRef)(label), auth, true, &removeError)) { +#pragma clang diagnostic pop if (removeError != NULL) { // It's normal for a job to not be found, so this is not an interesting error if (CFErrorGetCode(removeError) != kSMErrorJobNotFound) { @@ -77,7 +80,12 @@ jobDictionary[@"MachServices"] = @{SPUStatusInfoServiceNameForBundleIdentifier(hostBundleIdentifier) : @YES}; CFErrorRef submitError = NULL; +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" + // SMJobSubmit is deprecated but is the only way to submit a non-permanent + // helper and allows us to submit to user domain without requiring authorization submittedJob = SMJobSubmit(domain, (__bridge CFDictionaryRef)(jobDictionary), auth, &submitError); +#pragma clang diagnostic pop if (!submittedJob) { if (submitError != NULL) { SULog(SULogLevelError, @"Submit progress error: %@", submitError); @@ -239,7 +247,10 @@ // We could invoke SMJobCopyDictionary() first to see if the job exists, but I'd rather avoid // using it because the headers indicate it may be removed one day without any replacement CFErrorRef removeError = NULL; +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" if (!SMJobRemove(domain, (__bridge CFStringRef)(label), auth, true, &removeError)) { +#pragma clang diagnostic pop if (removeError != NULL) { // It's normal for a job to not be found, so this is not an interesting error if (CFErrorGetCode(removeError) != kSMErrorJobNotFound) { @@ -252,7 +263,12 @@ NSDictionary *jobDictionary = @{@"Label" : label, @"ProgramArguments" : arguments, @"EnableTransactions" : @NO, @"KeepAlive" : @{@"SuccessfulExit" : @NO}, @"RunAtLoad" : @NO, @"Nice" : @0, @"LaunchOnlyOnce": @YES, @"MachServices" : @{SPUInstallerServiceNameForBundleIdentifier(hostBundleIdentifier) : @YES, SPUProgressAgentServiceNameForBundleIdentifier(hostBundleIdentifier) : @YES}}; CFErrorRef submitError = NULL; +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" + // SMJobSubmit is deprecated but is the only way to submit a non-permanent + // helper and allows us to submit to user domain without requiring authorization submittedJob = SMJobSubmit(domain, (__bridge CFDictionaryRef)(jobDictionary), auth, &submitError); +#pragma clang diagnostic pop if (!submittedJob) { if (submitError != NULL) { SULog(SULogLevelError, @"Submit error: %@", submitError); diff --git a/README.markdown b/README.markdown index aff08951..542f227a 100644 --- a/README.markdown +++ b/README.markdown @@ -33,7 +33,7 @@ Please visit [Sparkle's website](http://sparkle-project.org) for up to date docu ## Requirements -* Runtime: macOS 10.9 or greater +* Runtime: macOS 10.11 or greater * Build: Latest major Xcode (stable or beta, whichever is latest) and one major version less; at least Xcode 12 if using Swift Package Manager. * HTTPS server for serving updates (see [App Transport Security](http://sparkle-project.org/documentation/app-transport-security/)) diff --git a/Resources/SampleAppcast.xml b/Resources/SampleAppcast.xml index 79eb5f3f..39c176bd 100755 --- a/Resources/SampleAppcast.xml +++ b/Resources/SampleAppcast.xml @@ -11,7 +11,7 @@ Wed, 09 Jan 2006 19:20:11 +0000 - 10.9 + 10.11 @@ -21,7 +21,7 @@ Wed, 01 Jan 2006 12:20:11 +0000 - 10.9 + 10.11 @@ -32,7 +32,7 @@ Wed, 25 Dec 2005 12:20:11 +0000 - 10.9 + 10.11 diff --git a/Sparkle.podspec b/Sparkle.podspec index e57b5030..016dfa4d 100644 --- a/Sparkle.podspec +++ b/Sparkle.podspec @@ -18,7 +18,7 @@ Pod::Spec.new do |s| 'Andy Matuschak' => 'andy@andymatuschak.org', } - s.platform = :osx, '10.9' + s.platform = :osx, '10.11' s.source = { :http => "https://github.com/sparkle-project/Sparkle/releases/download/#{s.version}/Sparkle-#{s.version}.tar.bz2" } s.source_files = 'Sparkle.framework/Versions/A/Headers/*.h' diff --git a/Sparkle.xcodeproj/project.pbxproj b/Sparkle.xcodeproj/project.pbxproj index 95e682b2..5bf88164 100644 --- a/Sparkle.xcodeproj/project.pbxproj +++ b/Sparkle.xcodeproj/project.pbxproj @@ -2904,7 +2904,7 @@ attributes = { CLASSPREFIX = SU; LastSwiftUpdateCheck = 1020; - LastUpgradeCheck = 1200; + LastUpgradeCheck = 1250; ORGANIZATIONNAME = "Sparkle Project"; TargetAttributes = { 612279D80DB5470200AB99EA = { @@ -4250,7 +4250,6 @@ isa = XCBuildConfiguration; baseConfigurationReference = EA1E286822B664FD004AA304 /* CommandLineTool-Debug.xcconfig */; buildSettings = { - CODE_SIGN_IDENTITY = "-"; }; name = Debug; }; @@ -4258,7 +4257,6 @@ isa = XCBuildConfiguration; baseConfigurationReference = EA1E286722B664FD004AA304 /* CommandLineTool-Release.xcconfig */; buildSettings = { - CODE_SIGN_IDENTITY = "-"; }; name = Coverage; }; @@ -4266,7 +4264,6 @@ isa = XCBuildConfiguration; baseConfigurationReference = EA1E286722B664FD004AA304 /* CommandLineTool-Release.xcconfig */; buildSettings = { - CODE_SIGN_IDENTITY = "-"; }; name = Release; }; diff --git a/Sparkle.xcodeproj/xcshareddata/xcschemes/Distribution.xcscheme b/Sparkle.xcodeproj/xcshareddata/xcschemes/Distribution.xcscheme index 73c338ed..3ebded4e 100644 --- a/Sparkle.xcodeproj/xcshareddata/xcschemes/Distribution.xcscheme +++ b/Sparkle.xcodeproj/xcshareddata/xcschemes/Distribution.xcscheme @@ -1,6 +1,6 @@ - + - + @@ -25,7 +25,7 @@ - + @@ -114,6 +114,7 @@ + diff --git a/Sparkle/Base.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/Base.lproj/SUUpdatePermissionPrompt.xib index 5aea2107..40302e7c 100644 --- a/Sparkle/Base.lproj/SUUpdatePermissionPrompt.xib +++ b/Sparkle/Base.lproj/SUUpdatePermissionPrompt.xib @@ -1,19 +1,23 @@ - + - + - - - - + + + + - + + + + + @@ -23,110 +27,27 @@ - + - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + - + @@ -139,13 +60,77 @@ Gw - - - + + + SUIncludeProfile + SUSendProfileInfo + + + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - SUIncludeProfile - SUSendProfileInfo - - diff --git a/Sparkle/SPUUpdater.m b/Sparkle/SPUUpdater.m index 5019bf21..89a8800c 100644 --- a/Sparkle/SPUUpdater.m +++ b/Sparkle/SPUUpdater.m @@ -777,10 +777,9 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification } static NSString *escapeURLComponent(NSString *str) { - return [[[[str stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding] - stringByReplacingOccurrencesOfString:@"=" withString:@"%3d"] - stringByReplacingOccurrencesOfString:@"&" withString:@"%26"] - stringByReplacingOccurrencesOfString:@"+" withString:@"%2b"]; + NSString *escapedString = [str stringByAddingPercentEncodingWithAllowedCharacters:NSCharacterSet.URLQueryAllowedCharacterSet]; + + return [[[escapedString stringByReplacingOccurrencesOfString:@"=" withString:@"%3d"] stringByReplacingOccurrencesOfString:@"&" withString:@"%26"] stringByReplacingOccurrencesOfString:@"+" withString:@"%2b"]; } // Precondition: The feed URL should be valid diff --git a/Sparkle/SULegacyWebView.m b/Sparkle/SULegacyWebView.m index e714a306..bebf9f6f 100644 --- a/Sparkle/SULegacyWebView.m +++ b/Sparkle/SULegacyWebView.m @@ -11,17 +11,6 @@ #import "SULog.h" #import -// WebKit protocols are not explicitly declared until 10.11 SDK, so -// declare dummy protocols to keep the build working on earlier SDKs. -#if __MAC_OS_X_VERSION_MAX_ALLOWED < 101100 -@protocol WebFrameLoadDelegate -@end -@protocol WebPolicyDelegate -@end -@protocol WebUIDelegate -@end -#endif - @interface SULegacyWebView () @property (nonatomic, readonly) WebView *webView; diff --git a/Sparkle/SUStatus.xib b/Sparkle/SUStatus.xib index 2985c4c9..69813dd2 100644 --- a/Sparkle/SUStatus.xib +++ b/Sparkle/SUStatus.xib @@ -1,8 +1,8 @@ - + - + @@ -23,20 +23,22 @@ - + - - - + + + + + + - - - + + @@ -46,17 +48,18 @@ - + - - - - - + + @@ -83,6 +85,22 @@ + + + + + + + + + + + + + + + + diff --git a/Sparkle/SUUpdateAlert.m b/Sparkle/SUUpdateAlert.m index c2f51ac2..8a2e3194 100644 --- a/Sparkle/SUUpdateAlert.m +++ b/Sparkle/SUUpdateAlert.m @@ -312,18 +312,12 @@ static NSString *const SUUpdateAlertTouchBarIndentifier = @"" SPARKLE_BUNDLE_IDE BOOL javaScriptEnabled = [self.host boolForInfoDictionaryKey:SUEnableJavaScriptKey]; - BOOL useWKWebView; - if (@available(macOS 10.11, *)) { - // WKWebView has a bug where it won't work in loading local HTML content in sandboxed apps that do not have an outgoing network entitlement - // FB6993802: https://twitter.com/sindresorhus/status/1160577243929878528 | https://github.com/feedback-assistant/reports/issues/1 - // If the developer is using the downloader XPC service, they are very most likely are a) sandboxed b) do not use outgoing network entitlement. - // In this case, fall back to legacy WebKit view. - // (In theory it is possible for a non-sandboxed app or sandboxed app with outgoing network entitlement to use the XPC service, it's just pretty unlikely. And falling back to a legacy web view would not be too harmful in those cases). - useWKWebView = !SPUXPCServiceExists(@DOWNLOADER_BUNDLE_ID); - } else { - // Never use WKWebView prior to macOS 10.11. Details are in SUWKWebView.m - useWKWebView = NO; - } + // WKWebView has a bug where it won't work in loading local HTML content in sandboxed apps that do not have an outgoing network entitlement + // FB6993802: https://twitter.com/sindresorhus/status/1160577243929878528 | https://github.com/feedback-assistant/reports/issues/1 + // If the developer is using the downloader XPC service, they are very most likely are a) sandboxed b) do not use outgoing network entitlement. + // In this case, fall back to legacy WebKit view. + // (In theory it is possible for a non-sandboxed app or sandboxed app with outgoing network entitlement to use the XPC service, it's just pretty unlikely. And falling back to a legacy web view would not be too harmful in those cases). + BOOL useWKWebView = !SPUXPCServiceExists(@DOWNLOADER_BUNDLE_ID); if (useWKWebView) { self.webView = [[SUWKWebView alloc] initWithColorStyleSheetLocation:colorStyleURL fontFamily:defaultFontFamily fontPointSize:defaultFontSize javaScriptEnabled:javaScriptEnabled]; diff --git a/Sparkle/SUUpdatePermissionPrompt.m b/Sparkle/SUUpdatePermissionPrompt.m index b6bf53a3..6fb12102 100644 --- a/Sparkle/SUUpdatePermissionPrompt.m +++ b/Sparkle/SUUpdatePermissionPrompt.m @@ -21,17 +21,23 @@ static NSString *const SUUpdatePermissionPromptTouchBarIndentifier = @"" SPARKLE @interface SUUpdatePermissionPrompt () -@property (assign) BOOL isShowingMoreInfo; -@property (assign) BOOL shouldSendProfile; +@property (nonatomic) BOOL shouldSendProfile; -@property (strong) SUHost *host; -@property (strong) NSArray *systemProfileInformationArray; -@property (weak) IBOutlet NSTextField *descriptionTextField; -@property (weak) IBOutlet NSView *moreInfoView; -@property (weak) IBOutlet NSButton *moreInfoButton; -@property (weak) IBOutlet NSTableView *profileTableView; -@property (weak) IBOutlet NSButton *cancelButton; -@property (weak) IBOutlet NSButton *checkButton; +@property (nonatomic) SUHost *host; +@property (nonatomic) NSArray *systemProfileInformationArray; + +@property (nonatomic) IBOutlet NSStackView *stackView; +@property (nonatomic) IBOutlet NSView *promptView; +@property (nonatomic) IBOutlet NSView *moreInfoView; +@property (nonatomic) IBOutlet NSView *placeholderView; +@property (nonatomic) IBOutlet NSView *responseView; +@property (nonatomic) IBOutlet NSView *infoChoiceView; + +@property (nonatomic) IBOutlet NSButton *cancelButton; +@property (nonatomic) IBOutlet NSButton *checkButton; +@property (nonatomic) IBOutlet NSButton *anonymousInfoDisclosureButton; + +@property (nonatomic) IBOutlet NSLayoutConstraint *placeholderHeightLayoutConstraint; @property (nonatomic, readonly) void (^reply)(SUUpdatePermissionResponse *); @@ -40,16 +46,19 @@ static NSString *const SUUpdatePermissionPromptTouchBarIndentifier = @"" SPARKLE @implementation SUUpdatePermissionPrompt @synthesize reply = _reply; -@synthesize isShowingMoreInfo = _isShowingMoreInfo; @synthesize shouldSendProfile = _shouldSendProfile; -@synthesize host; -@synthesize systemProfileInformationArray; -@synthesize descriptionTextField; -@synthesize moreInfoView; -@synthesize moreInfoButton; -@synthesize profileTableView; -@synthesize cancelButton; -@synthesize checkButton; +@synthesize host = _host; +@synthesize systemProfileInformationArray = _systemProfileInformationArray; +@synthesize stackView = _stackView; +@synthesize promptView = _promtView; +@synthesize moreInfoView = _moreInfoView; +@synthesize placeholderView = _placeholderView; +@synthesize responseView = _responseView; +@synthesize infoChoiceView = _infoChoiceView; +@synthesize cancelButton = _cancelButton; +@synthesize checkButton = _checkButton; +@synthesize anonymousInfoDisclosureButton = _anonymousInfoDisclosureButton; +@synthesize placeholderHeightLayoutConstraint = _placeholderHeightLayoutConstraint; - (instancetype)initPromptWithHost:(SUHost *)theHost request:(SPUUpdatePermissionRequest *)request reply:(void (^)(SUUpdatePermissionResponse *))reply { @@ -57,10 +66,9 @@ static NSString *const SUUpdatePermissionPromptTouchBarIndentifier = @"" SPARKLE if (self) { _reply = reply; - self.host = theHost; - self.isShowingMoreInfo = NO; - self.shouldSendProfile = [self shouldAskAboutProfile]; - self.systemProfileInformationArray = request.systemProfile; + _host = theHost; + _shouldSendProfile = [self shouldAskAboutProfile]; + _systemProfileInformationArray = request.systemProfile; [self setShouldCascadeWindows:NO]; } return self; @@ -77,15 +85,13 @@ static NSString *const SUUpdatePermissionPromptTouchBarIndentifier = @"" SPARKLE { [self.window center]; - if (![self shouldAskAboutProfile]) - { - NSRect frame = [[self window] frame]; - frame.size.height -= [self.moreInfoButton frame].size.height; - [[self window] setFrame:frame display:YES]; - } else { - // Set the table view's delegate so we can disable row selection. - [self.profileTableView setDelegate:(id)self]; - } + self.infoChoiceView.hidden = ![self shouldAskAboutProfile]; + + [self.stackView addArrangedSubview:self.promptView]; + [self.stackView addArrangedSubview:self.infoChoiceView]; + [self.stackView addArrangedSubview:self.placeholderView]; + [self.stackView addArrangedSubview:self.moreInfoView]; + [self.stackView addArrangedSubview:self.responseView]; } - (BOOL)tableView:(NSTableView *) __unused tableView shouldSelectRow:(NSInteger) __unused row { return NO; } @@ -103,45 +109,38 @@ static NSString *const SUUpdatePermissionPromptTouchBarIndentifier = @"" SPARKLE - (IBAction)toggleMoreInfo:(id)__unused sender { - self.isShowingMoreInfo = !self.isShowingMoreInfo; - - NSView *contentView = [[self window] contentView]; - NSRect contentViewFrame = [contentView frame]; - NSRect windowFrame = [[self window] frame]; - - NSRect profileMoreInfoViewFrame = [self.moreInfoView frame]; - NSRect profileMoreInfoButtonFrame = [self.moreInfoButton frame]; - NSRect descriptionFrame = [self.descriptionTextField frame]; - - if (self.isShowingMoreInfo) - { - // Add the subview - contentViewFrame.size.height += profileMoreInfoViewFrame.size.height; - profileMoreInfoViewFrame.origin.y = profileMoreInfoButtonFrame.origin.y - profileMoreInfoViewFrame.size.height; - profileMoreInfoViewFrame.origin.x = descriptionFrame.origin.x; - profileMoreInfoViewFrame.size.width = descriptionFrame.size.width; - - windowFrame.size.height += profileMoreInfoViewFrame.size.height; - windowFrame.origin.y -= profileMoreInfoViewFrame.size.height; - - [self.moreInfoView setFrame:profileMoreInfoViewFrame]; - [self.moreInfoView setHidden:YES]; - [contentView addSubview:self.moreInfoView - positioned:NSWindowBelow - relativeTo:self.moreInfoButton]; + // Use a placeholder view to unhide/hide before putting the more info view in place + // This allows us to animate resizing the more info view in place more easily + + static const CGFloat TOGGLE_INFO_ANIMATION_DURATION = 0.2; + + BOOL disclosingInfo = (self.anonymousInfoDisclosureButton.state == NSControlStateValueOn); + + if (disclosingInfo) { + self.placeholderHeightLayoutConstraint.constant = 0.0; + self.placeholderView.hidden = NO; + + [NSAnimationContext runAnimationGroup:^(NSAnimationContext * _Nonnull context) { + context.duration = TOGGLE_INFO_ANIMATION_DURATION; + + self.placeholderHeightLayoutConstraint.animator.constant = self.moreInfoView.frame.size.height; + } completionHandler:^{ + self.placeholderView.hidden = YES; + self.moreInfoView.hidden = NO; + }]; } else { - // Remove the subview - [self.moreInfoView setHidden:NO]; - [self.moreInfoView removeFromSuperview]; - contentViewFrame.size.height -= profileMoreInfoViewFrame.size.height; - - windowFrame.size.height -= profileMoreInfoViewFrame.size.height; - windowFrame.origin.y += profileMoreInfoViewFrame.size.height; + self.placeholderHeightLayoutConstraint.constant = self.moreInfoView.frame.size.height; + self.moreInfoView.hidden = YES; + self.placeholderView.hidden = NO; + + [NSAnimationContext runAnimationGroup:^(NSAnimationContext * _Nonnull context) { + context.duration = TOGGLE_INFO_ANIMATION_DURATION; + + self.placeholderHeightLayoutConstraint.animator.constant = 0.0; + } completionHandler:^{ + self.placeholderView.hidden = YES; + }]; } - [[self window] setFrame:windowFrame display:YES animate:YES]; - [contentView setFrame:contentViewFrame]; - [contentView setNeedsDisplay:YES]; - [self.moreInfoView setHidden:!self.isShowingMoreInfo]; } - (IBAction)finishPrompt:(NSButton *)sender diff --git a/Sparkle/SUWKWebView.h b/Sparkle/SUWKWebView.h index c7f0738d..2dfb4357 100644 --- a/Sparkle/SUWKWebView.h +++ b/Sparkle/SUWKWebView.h @@ -11,7 +11,6 @@ NS_ASSUME_NONNULL_BEGIN -// Only use this class on macOS 10.11 or later (see implementation for rationale) @interface SUWKWebView : NSObject - (instancetype)initWithColorStyleSheetLocation:(NSURL *)colorStyleSheetLocation fontFamily:(NSString *)fontFamily fontPointSize:(int)fontPointSize javaScriptEnabled:(BOOL)javaScriptEnabled; diff --git a/Sparkle/SUWKWebView.m b/Sparkle/SUWKWebView.m index 46176e04..8e018d49 100644 --- a/Sparkle/SUWKWebView.m +++ b/Sparkle/SUWKWebView.m @@ -21,12 +21,8 @@ @interface SUWKWebView () -// Remove when minimum system requirement is 10.10+ -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wunguarded-availability" @property (nonatomic, readonly) WKWebView *webView; @property (nonatomic) WKNavigation *currentNavigation; -#pragma clang diagnostic pop @property (nonatomic) void (^completionHandler)(NSError * _Nullable); @property (nonatomic) BOOL drawsWebViewBackground; @@ -39,9 +35,6 @@ @synthesize completionHandler = _completionHandler; @synthesize drawsWebViewBackground = _drawsWebViewBackground; -// Remove when minimum system requirement is 10.10+ -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wunguarded-availability" static WKUserScript *_userScriptWithInjectedStyleSource(NSString *styleSource) { // We must remove newlines when inserting the style source in this interpolated string below @@ -59,11 +52,7 @@ static WKUserScript *_userScriptWithInjectedStyleSource(NSString *styleSource) return [[WKUserScript alloc] initWithSource:scriptSource injectionTime:WKUserScriptInjectionTimeAtDocumentEnd forMainFrameOnly:YES]; } -#pragma clang diagnostic pop -// Remove when minimum system requirement is 10.10+ -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wunguarded-availability" - (instancetype)initWithColorStyleSheetLocation:(NSURL *)colorStyleSheetLocation fontFamily:(NSString *)fontFamily fontPointSize:(int)fontPointSize javaScriptEnabled:(BOOL)javaScriptEnabled { self = [super init]; @@ -108,7 +97,6 @@ static WKUserScript *_userScriptWithInjectedStyleSource(NSString *styleSource) } return self; } -#pragma clang diagnostic pop - (NSView *)view { @@ -126,13 +114,7 @@ static WKUserScript *_userScriptWithInjectedStyleSource(NSString *styleSource) { self.completionHandler = [completionHandler copy]; - // Remove when minimum system requirement is 10.11+ -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wunguarded-availability" - // Note: This API requires macOS 10.11 - // Rather than figuring out a bad workaround for 10.10, it is simpler to just require 10.11 for this class self.currentNavigation = [self.webView loadData:data MIMEType:MIMEType characterEncodingName:textEncodingName baseURL:baseURL]; -#pragma clang diagnostic pop } - (void)setDrawsBackground:(BOOL)drawsBackground @@ -161,11 +143,7 @@ static WKUserScript *_userScriptWithInjectedStyleSource(NSString *styleSource) [self.webView stopLoading]; } -// Remove when minimum system requirement is 10.10+ -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wunguarded-availability" - (void)webView:(WKWebView *)webView didFinishNavigation:(WKNavigation *)navigation -#pragma clang diagnostic pop { if (navigation == self.currentNavigation) { if (self.completionHandler != nil) { @@ -176,11 +154,7 @@ static WKUserScript *_userScriptWithInjectedStyleSource(NSString *styleSource) } } -// Remove when minimum system requirement is 10.10+ -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wunguarded-availability" - (void)webView:(WKWebView *)webView didFailNavigation:(WKNavigation *)navigation withError:(NSError *)error -#pragma clang diagnostic pop { if (navigation == self.currentNavigation) { if (self.completionHandler != nil) { @@ -191,11 +165,7 @@ static WKUserScript *_userScriptWithInjectedStyleSource(NSString *styleSource) } } -// Remove when minimum system requirement is 10.10+ -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wunguarded-availability" - (void)webViewWebContentProcessDidTerminate:(WKWebView *)webView -#pragma clang diagnostic pop { if (self.currentNavigation != nil) { if (self.completionHandler != nil) { @@ -207,8 +177,6 @@ static WKUserScript *_userScriptWithInjectedStyleSource(NSString *styleSource) } } -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wunguarded-availability" - (void)webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigationAction *)navigationAction decisionHandler:(void (^)(WKNavigationActionPolicy))decisionHandler { NSURLRequest *request = navigationAction.request; @@ -233,6 +201,5 @@ static WKUserScript *_userScriptWithInjectedStyleSource(NSString *styleSource) } } } -#pragma clang diagnostic pop @end diff --git a/Sparkle/ar.lproj/SUUpdatePermissionPrompt.strings b/Sparkle/ar.lproj/SUUpdatePermissionPrompt.strings index 51a4dbd3..9bd55c87 100644 Binary files a/Sparkle/ar.lproj/SUUpdatePermissionPrompt.strings and b/Sparkle/ar.lproj/SUUpdatePermissionPrompt.strings differ diff --git a/Sparkle/cs.lproj/SUUpdatePermissionPrompt.strings b/Sparkle/cs.lproj/SUUpdatePermissionPrompt.strings index 97ed2a85..c8101901 100644 --- a/Sparkle/cs.lproj/SUUpdatePermissionPrompt.strings +++ b/Sparkle/cs.lproj/SUUpdatePermissionPrompt.strings @@ -5,19 +5,19 @@ "45.title" = "Text Cell"; /* Class = "NSButtonCell"; title = "Check Automatically"; ObjectID = "176"; */ -"176.title" = "Automaticky vyhledávat"; +"OhZ-1K-DmA.title" = "Automaticky vyhledávat"; /* Class = "NSButtonCell"; title = "Don’t Check"; ObjectID = "177"; */ -"177.title" = "Nevyhledávat"; +"cCJ-V0-aTi.title" = "Nevyhledávat"; /* Class = "NSTextFieldCell"; title = "Check for updates automatically?"; ObjectID = "178"; */ -"178.title" = "Vyhledávat aktualizace automaticky?"; +"gmh-T4-BO0.title" = "Vyhledávat aktualizace automaticky?"; /* Class = "NSTextFieldCell"; title = "DO NOT LOCALIZE"; ObjectID = "179"; */ "179.title" = "DO NOT LOCALIZE"; /* Class = "NSButtonCell"; title = "Include anonymous system profile"; ObjectID = "180"; */ -"180.title" = "Odeslat anonymní systémový profil"; +"gz7-LM-gNf.title" = "Odeslat anonymní systémový profil"; /* Class = "NSTextFieldCell"; title = "Anonymous system profile information is used to help us plan future development work.\nPlease contact us if you have any questions about this.\n\nThis is the information that would be sent:"; ObjectID = "183"; */ "183.title" = "Informace z anonymního systémového profilu pomáhají vývojářům lépe plánovat budoucí vývoj aplikace.\nBudete-li mít nějaký dotaz, obraťte se na nás.\n\nTyto informace by měly být odeslány:"; diff --git a/Sparkle/da.lproj/SUUpdatePermissionPrompt.strings b/Sparkle/da.lproj/SUUpdatePermissionPrompt.strings index 0a0a998d..b468e06b 100644 Binary files a/Sparkle/da.lproj/SUUpdatePermissionPrompt.strings and b/Sparkle/da.lproj/SUUpdatePermissionPrompt.strings differ diff --git a/Sparkle/de.lproj/SUUpdatePermissionPrompt.strings b/Sparkle/de.lproj/SUUpdatePermissionPrompt.strings index 47b00059..daf9ff49 100644 Binary files a/Sparkle/de.lproj/SUUpdatePermissionPrompt.strings and b/Sparkle/de.lproj/SUUpdatePermissionPrompt.strings differ diff --git a/Sparkle/el.lproj/SUUpdatePermissionPrompt.strings b/Sparkle/el.lproj/SUUpdatePermissionPrompt.strings index a84a913d..0b360868 100644 Binary files a/Sparkle/el.lproj/SUUpdatePermissionPrompt.strings and b/Sparkle/el.lproj/SUUpdatePermissionPrompt.strings differ diff --git a/Sparkle/en.lproj/SUUpdatePermissionPrompt.strings b/Sparkle/en.lproj/SUUpdatePermissionPrompt.strings index 40408e56..e9c01f3a 100644 --- a/Sparkle/en.lproj/SUUpdatePermissionPrompt.strings +++ b/Sparkle/en.lproj/SUUpdatePermissionPrompt.strings @@ -6,19 +6,19 @@ "45.title" = "Text Cell"; /* Class = "NSButtonCell"; title = "Check Automatically"; ObjectID = "176"; */ -"176.title" = "Check Automatically"; +"OhZ-1K-DmA.title" = "Check Automatically"; /* Class = "NSButtonCell"; title = "Don’t Check"; ObjectID = "177"; */ -"177.title" = "Don’t Check"; +"cCJ-V0-aTi.title" = "Don’t Check"; /* Class = "NSTextFieldCell"; title = "Check for updates automatically?"; ObjectID = "178"; */ -"178.title" = "Check for updates automatically?"; +"gmh-T4-BO0.title" = "Check for updates automatically?"; /* Class = "NSTextFieldCell"; title = "DO NOT LOCALIZE"; ObjectID = "179"; */ "179.title" = "DO NOT LOCALIZE"; /* Class = "NSButtonCell"; title = "Include anonymous system profile"; ObjectID = "180"; */ -"180.title" = "Include anonymous system profile"; +"gz7-LM-gNf.title" = "Include anonymous system profile"; /* Class = "NSTextFieldCell"; title = "Anonymous system profile information is used to help us plan future development work. Please contact us if you have any questions about this.\n\nThis is the information that would be sent:"; ObjectID = "183"; */ "183.title" = "Anonymous system profile information is used to help us plan future development work. Please contact us if you have any questions about this.\n\nThis is the information that would be sent:"; diff --git a/Sparkle/es.lproj/SUUpdatePermissionPrompt.strings b/Sparkle/es.lproj/SUUpdatePermissionPrompt.strings index ed12e176..fb35ad0d 100644 Binary files a/Sparkle/es.lproj/SUUpdatePermissionPrompt.strings and b/Sparkle/es.lproj/SUUpdatePermissionPrompt.strings differ diff --git a/Sparkle/fi.lproj/SUUpdatePermissionPrompt.strings b/Sparkle/fi.lproj/SUUpdatePermissionPrompt.strings index 7746e682..57b20181 100644 Binary files a/Sparkle/fi.lproj/SUUpdatePermissionPrompt.strings and b/Sparkle/fi.lproj/SUUpdatePermissionPrompt.strings differ diff --git a/Sparkle/fr.lproj/SUUpdatePermissionPrompt.strings b/Sparkle/fr.lproj/SUUpdatePermissionPrompt.strings index 2ec15550..45ac9405 100644 Binary files a/Sparkle/fr.lproj/SUUpdatePermissionPrompt.strings and b/Sparkle/fr.lproj/SUUpdatePermissionPrompt.strings differ diff --git a/Sparkle/hr.lproj/SUUpdatePermissionPrompt.strings b/Sparkle/hr.lproj/SUUpdatePermissionPrompt.strings index e351dee9..95130bd7 100644 Binary files a/Sparkle/hr.lproj/SUUpdatePermissionPrompt.strings and b/Sparkle/hr.lproj/SUUpdatePermissionPrompt.strings differ diff --git a/Sparkle/hu.lproj/SUUpdatePermissionPrompt.strings b/Sparkle/hu.lproj/SUUpdatePermissionPrompt.strings index a44717a1..2243b94f 100644 Binary files a/Sparkle/hu.lproj/SUUpdatePermissionPrompt.strings and b/Sparkle/hu.lproj/SUUpdatePermissionPrompt.strings differ diff --git a/Sparkle/is.lproj/SUUpdatePermissionPrompt.strings b/Sparkle/is.lproj/SUUpdatePermissionPrompt.strings index 1b2ae2e5..3d3f7a5e 100644 Binary files a/Sparkle/is.lproj/SUUpdatePermissionPrompt.strings and b/Sparkle/is.lproj/SUUpdatePermissionPrompt.strings differ diff --git a/Sparkle/it.lproj/SUUpdatePermissionPrompt.strings b/Sparkle/it.lproj/SUUpdatePermissionPrompt.strings index 55b623b5..360f818e 100644 Binary files a/Sparkle/it.lproj/SUUpdatePermissionPrompt.strings and b/Sparkle/it.lproj/SUUpdatePermissionPrompt.strings differ diff --git a/Sparkle/ja.lproj/SUUpdatePermissionPrompt.strings b/Sparkle/ja.lproj/SUUpdatePermissionPrompt.strings index 117c57b1..30beb4b4 100644 Binary files a/Sparkle/ja.lproj/SUUpdatePermissionPrompt.strings and b/Sparkle/ja.lproj/SUUpdatePermissionPrompt.strings differ diff --git a/Sparkle/ko.lproj/SUUpdatePermissionPrompt.strings b/Sparkle/ko.lproj/SUUpdatePermissionPrompt.strings index ba51fac5..6dee3b18 100644 Binary files a/Sparkle/ko.lproj/SUUpdatePermissionPrompt.strings and b/Sparkle/ko.lproj/SUUpdatePermissionPrompt.strings differ diff --git a/Sparkle/nb.lproj/SUUpdatePermissionPrompt.strings b/Sparkle/nb.lproj/SUUpdatePermissionPrompt.strings index 71a68bc6..061f200c 100644 Binary files a/Sparkle/nb.lproj/SUUpdatePermissionPrompt.strings and b/Sparkle/nb.lproj/SUUpdatePermissionPrompt.strings differ diff --git a/Sparkle/nl.lproj/SUUpdatePermissionPrompt.strings b/Sparkle/nl.lproj/SUUpdatePermissionPrompt.strings index 73d5f5ee..7455371d 100644 Binary files a/Sparkle/nl.lproj/SUUpdatePermissionPrompt.strings and b/Sparkle/nl.lproj/SUUpdatePermissionPrompt.strings differ diff --git a/Sparkle/pl.lproj/SUUpdatePermissionPrompt.strings b/Sparkle/pl.lproj/SUUpdatePermissionPrompt.strings index 16591dd2..03f3f28a 100644 Binary files a/Sparkle/pl.lproj/SUUpdatePermissionPrompt.strings and b/Sparkle/pl.lproj/SUUpdatePermissionPrompt.strings differ diff --git a/Sparkle/pt_BR.lproj/SUUpdatePermissionPrompt.strings b/Sparkle/pt_BR.lproj/SUUpdatePermissionPrompt.strings index 5eca8957..fff8f24c 100644 Binary files a/Sparkle/pt_BR.lproj/SUUpdatePermissionPrompt.strings and b/Sparkle/pt_BR.lproj/SUUpdatePermissionPrompt.strings differ diff --git a/Sparkle/pt_PT.lproj/SUUpdatePermissionPrompt.strings b/Sparkle/pt_PT.lproj/SUUpdatePermissionPrompt.strings index f744d468..f45443bd 100644 Binary files a/Sparkle/pt_PT.lproj/SUUpdatePermissionPrompt.strings and b/Sparkle/pt_PT.lproj/SUUpdatePermissionPrompt.strings differ diff --git a/Sparkle/ro.lproj/SUUpdatePermissionPrompt.strings b/Sparkle/ro.lproj/SUUpdatePermissionPrompt.strings index e9075e57..71edbddc 100644 Binary files a/Sparkle/ro.lproj/SUUpdatePermissionPrompt.strings and b/Sparkle/ro.lproj/SUUpdatePermissionPrompt.strings differ diff --git a/Sparkle/ru.lproj/SUUpdatePermissionPrompt.strings b/Sparkle/ru.lproj/SUUpdatePermissionPrompt.strings index acf4be10..deabb930 100644 Binary files a/Sparkle/ru.lproj/SUUpdatePermissionPrompt.strings and b/Sparkle/ru.lproj/SUUpdatePermissionPrompt.strings differ diff --git a/Sparkle/sk.lproj/SUUpdatePermissionPrompt.strings b/Sparkle/sk.lproj/SUUpdatePermissionPrompt.strings index 83ebfa9d..28e992c3 100644 Binary files a/Sparkle/sk.lproj/SUUpdatePermissionPrompt.strings and b/Sparkle/sk.lproj/SUUpdatePermissionPrompt.strings differ diff --git a/Sparkle/sl.lproj/SUUpdatePermissionPrompt.strings b/Sparkle/sl.lproj/SUUpdatePermissionPrompt.strings index c1cf84a5..5ebeebb0 100644 Binary files a/Sparkle/sl.lproj/SUUpdatePermissionPrompt.strings and b/Sparkle/sl.lproj/SUUpdatePermissionPrompt.strings differ diff --git a/Sparkle/sv.lproj/SUUpdatePermissionPrompt.strings b/Sparkle/sv.lproj/SUUpdatePermissionPrompt.strings index 29647d7c..6261aa2e 100644 Binary files a/Sparkle/sv.lproj/SUUpdatePermissionPrompt.strings and b/Sparkle/sv.lproj/SUUpdatePermissionPrompt.strings differ diff --git a/Sparkle/th.lproj/SUUpdatePermissionPrompt.strings b/Sparkle/th.lproj/SUUpdatePermissionPrompt.strings index 56a8d38b..d8fbda78 100644 Binary files a/Sparkle/th.lproj/SUUpdatePermissionPrompt.strings and b/Sparkle/th.lproj/SUUpdatePermissionPrompt.strings differ diff --git a/Sparkle/tr.lproj/SUUpdatePermissionPrompt.strings b/Sparkle/tr.lproj/SUUpdatePermissionPrompt.strings index 7d46eeb1..5bdc58b3 100644 Binary files a/Sparkle/tr.lproj/SUUpdatePermissionPrompt.strings and b/Sparkle/tr.lproj/SUUpdatePermissionPrompt.strings differ diff --git a/Sparkle/uk.lproj/SUUpdatePermissionPrompt.strings b/Sparkle/uk.lproj/SUUpdatePermissionPrompt.strings index 6076fcdb..5ef1fcea 100644 Binary files a/Sparkle/uk.lproj/SUUpdatePermissionPrompt.strings and b/Sparkle/uk.lproj/SUUpdatePermissionPrompt.strings differ diff --git a/Sparkle/zh_CN.lproj/SUUpdatePermissionPrompt.strings b/Sparkle/zh_CN.lproj/SUUpdatePermissionPrompt.strings index 52ddc42f..e5175d2f 100644 Binary files a/Sparkle/zh_CN.lproj/SUUpdatePermissionPrompt.strings and b/Sparkle/zh_CN.lproj/SUUpdatePermissionPrompt.strings differ diff --git a/Sparkle/zh_TW.lproj/SUUpdatePermissionPrompt.strings b/Sparkle/zh_TW.lproj/SUUpdatePermissionPrompt.strings index a7d39111..f758704f 100644 Binary files a/Sparkle/zh_TW.lproj/SUUpdatePermissionPrompt.strings and b/Sparkle/zh_TW.lproj/SUUpdatePermissionPrompt.strings differ diff --git a/TestApplication/TestApplication-Info.plist b/TestApplication/TestApplication-Info.plist index 0672481c..580dc56f 100644 --- a/TestApplication/TestApplication-Info.plist +++ b/TestApplication/TestApplication-Info.plist @@ -26,6 +26,8 @@ NSApplication SUEnableSystemProfiling + LSMinimumSystemVersion + $(MACOSX_DEPLOYMENT_TARGET) SUFeedURL http://localhost:1337/sparkletestcast.xml SUPublicEDKey diff --git a/generate_appcast/ArchiveItem.swift b/generate_appcast/ArchiveItem.swift index faed72ca..8336b639 100644 --- a/generate_appcast/ArchiveItem.swift +++ b/generate_appcast/ArchiveItem.swift @@ -54,7 +54,7 @@ class ArchiveItem: CustomStringConvertible { self.version = version self._shortVersion = shortVersion self.feedURL = feedURL - self.minimumSystemVersion = minimumSystemVersion ?? "10.9" + self.minimumSystemVersion = minimumSystemVersion ?? "10.11" self.archivePath = archivePath self.appPath = appPath self.supportsDSA = supportsDSA