diff --git a/.github/ISSUE_TEMPLATE/other-issues.md b/.github/ISSUE_TEMPLATE/other-issues.md new file mode 100644 index 00000000..6b018777 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/other-issues.md @@ -0,0 +1,10 @@ +--- +name: Other issues +about: Found a bug? Want to implement a new feature? +title: '' +labels: '' +assignees: '' + +--- + + diff --git a/.github/ISSUE_TEMPLATE/sparkle-doesn-t-work-in-my-app.md b/.github/ISSUE_TEMPLATE/sparkle-doesn-t-work-in-my-app.md new file mode 100644 index 00000000..8372326f --- /dev/null +++ b/.github/ISSUE_TEMPLATE/sparkle-doesn-t-work-in-my-app.md @@ -0,0 +1,34 @@ +--- +name: Sparkle doesn't work in my app +about: Problems with integration, unexpected errors +title: '' +labels: '' +assignees: '' + +--- + + + +### Description of the problem + + +### Do you use Sandboxing in your app? + +### Version of `Sparkle.framework` in the latest version of your app + +### Version of `Sparkle.framework` in the old version of app that your users have (or N/A) + +### Sparkle's output from Console.app +``` + +``` + +### Steps to reproduce the behavior diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..d24fc63a --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "Vendor/ed25519"] + path = Vendor/ed25519 + url = https://github.com/orlp/ed25519 diff --git a/CHANGELOG b/CHANGELOG index c68454b4..9d4da6f8 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,68 @@ +# 1.22.0 + + * Enabled "Hardened Runtime" build option for Apple's notarization requirement + * Add delegate methods to suppress update alerts (George Nachman) + * Improved error when running from translocated location (Michael Buckley) + * Add phased rollout feature (#1381) (Fabian Jäger) + * Ignore non-standard permissions in delta updates instead of failing the build (Kornel Lesiński) + * Notify user when installed version is newer than the latest in the appcast (CoreCode) + * Block-based alternatives to `NSInvocation`-based delegate methods (Fabian Jäger) + * Pass item to updaterShouldShowUpdateAlertForScheduledUpdate delegate method (George Nachman) + * Separate the ed25519 sources into a new static library (Tony Arnold) + * Correction of Czech localization inconsistency (#1403) (vojtakonarik) + * Disambiguate signing error messages (Nate Weaver) + * Use `XMLNode.Options.nodePrettyPrint` in `generate_appcast` instead of trying to add whitespace manually (fumoboy007) + * Annotate SUHost for nullability (Michael Buckley) + * Use SUAVAILABLE macro (Christiaan Hofman) + * Fix warnings when using modules (nivekkagicom) + +# 1.21.3 + + * Losslessly reduced the size of PNG (Barijaona Ramaholimihaso) + * Catch exceptions from subcommands (Julian Mayer) + * `generate_appcast` can sign any bundles instead of just apps (Nate Weaver) + * Check that effectiveAppearance is being observed before calling removeObserver (Pierluigi) + +# 1.21.2 + + * Allow EdDSA for delta updates, too (Kornel) + * Warning fixes (Brian Bergstrand) + * Improvements to release notes view context menu and dark mode (Bi11) + +# 1.21.0 + + * Added support EdDSA (ed25519) signatures (Kornel) + * DSA signatures are considered outdated, and Apple's `Security.framework` only supports weaker SHA-1-based DSA. + * Both old DSA and new EdDSA are still supported (and one app can use both), but new applications should use EdDSA only, and we recommend migrating away from DSA signatures. + * `generate_keys` is now a Swift tool that stores EdDSA private keys in the Keychain + * Existing apps can continue using their old DSA keys, but we've dropped support for generation of old DSA keys + * `sign_update` is now a Swift tool that signs using EdDSA from private keys in the Keychain + * The old DSA-based signing script has been moved to `bin/old_dsa_scripts` + * The old DSA-based signing script has been fixed to work on pre-10.13 systems (Thomas Tempelmann) + * `generate_appcast` has been updated to support EdDSA signatures + * It can sign both DSA (if `dsa_priv.pem` file is specified) and EdDSA (from Keychain) + * The tool now uses Caches directory and doesn't generate unnecessary delta files + * Fixed verification of delta updates on filesystems that change permissions of symlinks + * Fixed `NSURLSession` leak (Michael Ehrmann) + +# 1.20.0 + + * `generate_appcast` option to read private key directly from the keychain (Tamás Lustyik) + * Add delegate callbacks for fininshed download and extraction related events (Csaba Horony) + * Don't check for updates if Do Not Disturb is on (Kornel) + * Expose `CodesigningVerifier`, add codesign info API (sunuslee) + * Threading fixes: + * Fix potential hang with `dispatch_sync` to main thread (Brian Bergstrand) + * Fix closeCheckingWindow called from background thread (Alexey Martemyanov) + * Improve 'read-only' error message (#1192) (Adrian Thomas) + * New Spanish localisation (Ken Arroyo Ohori) + * Updated Finnish language resources (Jason Pollack) + * Hungarian localization (Csaba Horony) + * Log more information about authentication requests (Kornel) + * Explicitly specify types to silence "Messaging unqualified id" warning that's new in Xcode 10. Removed __has_feature(objc_generics) check and use generisc to help silence the warnings. (Kent Sutherland) + * Fix binary delta creation on network drives (sagecook) + * Fix compilation issues on Xcode 10 with new build system (Leo Natan) + # 1.19.0 * Refactoring of downloader code to avoid deprecated methods (Deadpikle) diff --git a/Configurations/ConfigCommon.xcconfig b/Configurations/ConfigCommon.xcconfig index a89af949..926dab0f 100644 --- a/Configurations/ConfigCommon.xcconfig +++ b/Configurations/ConfigCommon.xcconfig @@ -16,8 +16,8 @@ SPARKLE_AUTOMATED_DOWNGRADES = 0 SPARKLE_NORMALIZE_INSTALLED_APPLICATION_NAME = 0 SPARKLE_VERSION_MAJOR = 1 -SPARKLE_VERSION_MINOR = 19 -SPARKLE_VERSION_PATCH = 1 +SPARKLE_VERSION_MINOR = 22 +SPARKLE_VERSION_PATCH = 0 SPARKLE_VERSION = $(SPARKLE_VERSION_MAJOR).$(SPARKLE_VERSION_MINOR).$(SPARKLE_VERSION_PATCH) CURRENT_PROJECT_VERSION = $(SPARKLE_VERSION) @@ -32,6 +32,7 @@ PRODUCT_BUNDLE_IDENTIFIER = org.sparkle-project.Sparkle.${PRODUCT_NAME:rfc1034id 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)\" SPARKLE_RELAUNCH_TOOL_NAME=\"$(SPARKLE_RELAUNCH_TOOL_NAME)\" SPARKLE_FILEOP_TOOL_NAME=\"$(SPARKLE_FILEOP_TOOL_NAME)\" +ENABLE_HARDENED_RUNTIME = YES; CLANG_ENABLE_OBJC_ARC = YES GCC_ENABLE_PASCAL_STRINGS = NO GCC_NO_COMMON_BLOCKS = YES; diff --git a/Configurations/ConfigGenerateKeys.xcconfig b/Configurations/ConfigGenerateKeys.xcconfig new file mode 100644 index 00000000..d62c5b95 --- /dev/null +++ b/Configurations/ConfigGenerateKeys.xcconfig @@ -0,0 +1,7 @@ +// Generate Appcast only + +#include "ConfigSwift.xcconfig" + +SWIFT_OBJC_BRIDGING_HEADER = generate_keys/Bridging-Header.h +MACOSX_DEPLOYMENT_TARGET = 10.11 +PRODUCT_NAME = generate_keys diff --git a/Configurations/ConfigGenerateKeysDebug.xcconfig b/Configurations/ConfigGenerateKeysDebug.xcconfig new file mode 100644 index 00000000..bc4e111b --- /dev/null +++ b/Configurations/ConfigGenerateKeysDebug.xcconfig @@ -0,0 +1,4 @@ +// Generate Appcast Debug + +#include "ConfigGenerateKeys.xcconfig" +#include "ConfigSwiftDebug.xcconfig" diff --git a/Configurations/ConfigGenerateKeysRelease.xcconfig b/Configurations/ConfigGenerateKeysRelease.xcconfig new file mode 100644 index 00000000..b69bf619 --- /dev/null +++ b/Configurations/ConfigGenerateKeysRelease.xcconfig @@ -0,0 +1,4 @@ +// Generate Appcast Release + +#include "ConfigGenerateKeys.xcconfig" +#include "ConfigSwiftRelease.xcconfig" diff --git a/Configurations/bsdiff-Debug.xcconfig b/Configurations/bsdiff-Debug.xcconfig new file mode 100644 index 00000000..58b53f33 --- /dev/null +++ b/Configurations/bsdiff-Debug.xcconfig @@ -0,0 +1,3 @@ +// Copyright © 2019 Sparkle Project. All rights reserved. + +#include "bsdiff-Shared.xcconfig" diff --git a/Configurations/bsdiff-Release.xcconfig b/Configurations/bsdiff-Release.xcconfig new file mode 100644 index 00000000..58b53f33 --- /dev/null +++ b/Configurations/bsdiff-Release.xcconfig @@ -0,0 +1,3 @@ +// Copyright © 2019 Sparkle Project. All rights reserved. + +#include "bsdiff-Shared.xcconfig" diff --git a/Configurations/bsdiff-Shared.xcconfig b/Configurations/bsdiff-Shared.xcconfig new file mode 100644 index 00000000..40367d7b --- /dev/null +++ b/Configurations/bsdiff-Shared.xcconfig @@ -0,0 +1,14 @@ +// Copyright © 2019 Sparkle Project. All rights reserved. + +// Deployment +SKIP_INSTALL = YES + +// Packaging +EXECUTABLE_PREFIX = lib +PRODUCT_NAME = $(TARGET_NAME) + +// Search Paths +ALWAYS_SEARCH_USER_PATHS = NO + +// Disable Warnings - this is a third-party project, and we'll trust that the maintainers know what they're doing. +WARNING_CFLAGS = $(inherited) -Wno-comma diff --git a/Configurations/ed25519-Debug.xcconfig b/Configurations/ed25519-Debug.xcconfig new file mode 100644 index 00000000..79dda095 --- /dev/null +++ b/Configurations/ed25519-Debug.xcconfig @@ -0,0 +1,3 @@ +// Copyright © 2019 Sparkle Project. All rights reserved. + +#include "ed25519-Shared.xcconfig" diff --git a/Configurations/ed25519-Release.xcconfig b/Configurations/ed25519-Release.xcconfig new file mode 100644 index 00000000..79dda095 --- /dev/null +++ b/Configurations/ed25519-Release.xcconfig @@ -0,0 +1,3 @@ +// Copyright © 2019 Sparkle Project. All rights reserved. + +#include "ed25519-Shared.xcconfig" diff --git a/Configurations/ed25519-Shared.xcconfig b/Configurations/ed25519-Shared.xcconfig new file mode 100644 index 00000000..91faa52d --- /dev/null +++ b/Configurations/ed25519-Shared.xcconfig @@ -0,0 +1,14 @@ +// Copyright © 2019 Sparkle Project. All rights reserved. + +// Deployment +SKIP_INSTALL = YES + +// Packaging +EXECUTABLE_PREFIX = lib +PRODUCT_NAME = $(TARGET_NAME) + +// Search Paths +ALWAYS_SEARCH_USER_PATHS = NO + +// Disable Warnings - this is a third-party project, and we'll trust that the maintainers know what they're doing. +WARNING_CFLAGS = $(inherited) -Wno-cast-qual -Wno-conversion -Wno-sign-conversion diff --git a/Configurations/make-release-package.sh b/Configurations/make-release-package.sh index 0e994806..12e08635 100755 --- a/Configurations/make-release-package.sh +++ b/Configurations/make-release-package.sh @@ -19,6 +19,8 @@ if [ "$ACTION" = "" ] ; then cp -R "$SRCROOT/bin" "$CONFIGURATION_BUILD_DIR/staging" cp "$CONFIGURATION_BUILD_DIR/BinaryDelta" "$CONFIGURATION_BUILD_DIR/staging/bin" cp "$CONFIGURATION_BUILD_DIR/generate_appcast" "$CONFIGURATION_BUILD_DIR/staging/bin" + cp "$CONFIGURATION_BUILD_DIR/generate_keys" "$CONFIGURATION_BUILD_DIR/staging/bin" + cp "$CONFIGURATION_BUILD_DIR/sign_update" "$CONFIGURATION_BUILD_DIR/staging/bin" cp -R "$CONFIGURATION_BUILD_DIR/Sparkle Test App.app" "$CONFIGURATION_BUILD_DIR/staging" cp -R "$CONFIGURATION_BUILD_DIR/Sparkle.framework" "$CONFIGURATION_BUILD_DIR/staging" @@ -27,6 +29,8 @@ if [ "$ACTION" = "" ] ; then if [ "$CONFIGURATION" = "Release" ] ; then cp -R "$CONFIGURATION_BUILD_DIR/BinaryDelta.dSYM" "$CONFIGURATION_BUILD_DIR/staging/bin" cp -R "$CONFIGURATION_BUILD_DIR/generate_appcast.dSYM" "$CONFIGURATION_BUILD_DIR/staging/bin" + cp -R "$CONFIGURATION_BUILD_DIR/generate_keys.dSYM" "$CONFIGURATION_BUILD_DIR/staging/bin" + cp -R "$CONFIGURATION_BUILD_DIR/sign_update.dSYM" "$CONFIGURATION_BUILD_DIR/staging/bin" cp -R "$CONFIGURATION_BUILD_DIR/Sparkle Test App.app.dSYM" "$CONFIGURATION_BUILD_DIR/staging" cp -R "$CONFIGURATION_BUILD_DIR/Sparkle.framework.dSYM" "$CONFIGURATION_BUILD_DIR/staging" fi diff --git a/Documentation/build-docs.sh b/Documentation/build-docs.sh index 65d5a000..d27280d3 100755 --- a/Documentation/build-docs.sh +++ b/Documentation/build-docs.sh @@ -5,7 +5,7 @@ if [ "$ACTION" = "" ] ; then doxygen Documentation/Doxyfile else echo "warning: Doxygen not found in PATH" - echo "open Terminal and type this command `brew install doxygen` then click `enter/return` key. finally build this target again" + echo "open Terminal and type this command 'brew install doxygen' then click 'enter/return' key. finally build this target again" fi elif [ "$ACTION" = "clean" ] ; then rm -rf "$SRCROOT/Documentation/html" diff --git a/README.markdown b/README.markdown index 58c7e5f4..71412cef 100644 --- a/README.markdown +++ b/README.markdown @@ -7,31 +7,23 @@ Secure and reliable software update framework for Cocoa developers. ## Features * Seamless. There's no mention of Sparkle; your icons and app name are used. -* Secure. Updates are verified using DSA signatures and Apple Code Signing. +* Secure. Updates are verified using EdDSA signatures and Apple Code Signing. * Fast. Supports delta updates which only patch files that have changed. * Easy to install. Sparkle requires no code in your app, and only needs static files on a web server. * Supports bundles, preference panes, plugins, and other non-.app software. Can install .pkg files for more complicated products. * Handles permissions, quarantine and automatically asks for authentication if needed. * Uses RSS-based appcasts for release information. Appcasts are a de-facto standard supported by 3rd party update-tracking programs and websites. -* Sparkle stays hidden until second launch for better first impressions. +* Stays hidden until second launch for better first impressions. * Truly self-updating — the user can choose to automatically download and install all updates in the background. - -## Changes since 1.5b - -* Compatibilty with macOS Sierra. -* Up-to-date with 10.12 SDK and Xcode 8 (supports macOS 10.7+). -* Important security fixes. -* Cleaned up and modernized code, using ARC and Autolayout. -* Truly automatic background updates (no UI at all) when user agreed to "Automatically download and install updates in the future." -* Upgraded and more reliable binary delta and code signing verification. * Ability to mark updates as critical. * Progress and status notifications for the host app. ## Requirements * Runtime: macOS 10.7 or greater -* Build: Xcode 7 and 10.8 SDK or greater +* Build: Xcode 9 and 10.11 SDK or greater * HTTPS server for serving updates (see [App Transport Security](http://sparkle-project.org/documentation/app-transport-security/)) +* No sandboxing. Sparkle 1.x can't update sandboxed apps. Sparkle 2.0 (alpha) can. ## Usage @@ -39,6 +31,20 @@ See [getting started guide](https://sparkle-project.org/documentation/). No code ## Development +This repository uses git submodules, and will not build unless you clone recursively. Also, GitHub-provided ZIP/tar archives are broken due to GitHub not supporting git submodules properly. + + git clone --recursive https://github.com/sparkle-project/Sparkle + +### Troubleshooting + + * Please check **Console.app**. Sparkle prints detailed information there about all problems it encounters. It often also suggests solutions to the problems, so please read Sparkle's log messages carefully. + + * Use the `generate_appcast` tool which creates appcast files, correct signatures, and delta updates automatically. + + * Make sure the URL specified in [`SUFeedURL`](https://sparkle-project.org/documentation/customization/) is valid (typos/404s are a common error!), and that it uses modern TLS ([test it](https://www.ssllabs.com/ssltest/)). + + * Delete your app's preferences (in `~/Library/Preferences/`) if you've set another feed URL programmatically via Sparkle's Objective-C interface. + ### API symbols Sparkle is built with `-fvisibility=hidden -fvisibility-inlines-hidden` which means no symbols are exported by default. diff --git a/Resources/Images.xcassets/AppIcon.appiconset/icon_128x128.png b/Resources/Images.xcassets/AppIcon.appiconset/icon_128x128.png index 02080831..029c5a1f 100644 Binary files a/Resources/Images.xcassets/AppIcon.appiconset/icon_128x128.png and b/Resources/Images.xcassets/AppIcon.appiconset/icon_128x128.png differ diff --git a/Resources/Images.xcassets/AppIcon.appiconset/icon_128x128@2x.png b/Resources/Images.xcassets/AppIcon.appiconset/icon_128x128@2x.png index c0583922..87ba8ef0 100644 Binary files a/Resources/Images.xcassets/AppIcon.appiconset/icon_128x128@2x.png and b/Resources/Images.xcassets/AppIcon.appiconset/icon_128x128@2x.png differ diff --git a/Resources/Images.xcassets/AppIcon.appiconset/icon_16x16.png b/Resources/Images.xcassets/AppIcon.appiconset/icon_16x16.png index a67751fa..0de27a66 100644 Binary files a/Resources/Images.xcassets/AppIcon.appiconset/icon_16x16.png and b/Resources/Images.xcassets/AppIcon.appiconset/icon_16x16.png differ diff --git a/Resources/Images.xcassets/AppIcon.appiconset/icon_16x16@2x.png b/Resources/Images.xcassets/AppIcon.appiconset/icon_16x16@2x.png index 3e77a450..d4fdc56a 100644 Binary files a/Resources/Images.xcassets/AppIcon.appiconset/icon_16x16@2x.png and b/Resources/Images.xcassets/AppIcon.appiconset/icon_16x16@2x.png differ diff --git a/Resources/Images.xcassets/AppIcon.appiconset/icon_256x256.png b/Resources/Images.xcassets/AppIcon.appiconset/icon_256x256.png index 1777fcc9..87ba8ef0 100644 Binary files a/Resources/Images.xcassets/AppIcon.appiconset/icon_256x256.png and b/Resources/Images.xcassets/AppIcon.appiconset/icon_256x256.png differ diff --git a/Resources/Images.xcassets/AppIcon.appiconset/icon_256x256@2x.png b/Resources/Images.xcassets/AppIcon.appiconset/icon_256x256@2x.png index 6ec496fe..c3fc2f5e 100644 Binary files a/Resources/Images.xcassets/AppIcon.appiconset/icon_256x256@2x.png and b/Resources/Images.xcassets/AppIcon.appiconset/icon_256x256@2x.png differ diff --git a/Resources/Images.xcassets/AppIcon.appiconset/icon_32x32.png b/Resources/Images.xcassets/AppIcon.appiconset/icon_32x32.png index 3be1d474..d4fdc56a 100644 Binary files a/Resources/Images.xcassets/AppIcon.appiconset/icon_32x32.png and b/Resources/Images.xcassets/AppIcon.appiconset/icon_32x32.png differ diff --git a/Resources/Images.xcassets/AppIcon.appiconset/icon_32x32@2x.png b/Resources/Images.xcassets/AppIcon.appiconset/icon_32x32@2x.png index f51f5972..aef9fc40 100644 Binary files a/Resources/Images.xcassets/AppIcon.appiconset/icon_32x32@2x.png and b/Resources/Images.xcassets/AppIcon.appiconset/icon_32x32@2x.png differ diff --git a/Resources/Images.xcassets/AppIcon.appiconset/icon_512x512.png b/Resources/Images.xcassets/AppIcon.appiconset/icon_512x512.png index 54d52234..c3fc2f5e 100644 Binary files a/Resources/Images.xcassets/AppIcon.appiconset/icon_512x512.png and b/Resources/Images.xcassets/AppIcon.appiconset/icon_512x512.png differ diff --git a/Resources/Images.xcassets/AppIcon.appiconset/icon_512x512@2x.png b/Resources/Images.xcassets/AppIcon.appiconset/icon_512x512@2x.png index 8fe6aa07..586e72fc 100644 Binary files a/Resources/Images.xcassets/AppIcon.appiconset/icon_512x512@2x.png and b/Resources/Images.xcassets/AppIcon.appiconset/icon_512x512@2x.png differ diff --git a/Resources/SampleAppcast.xml b/Resources/SampleAppcast.xml index dd9c089d..35ad5dad 100755 --- a/Resources/SampleAppcast.xml +++ b/Resources/SampleAppcast.xml @@ -10,6 +10,7 @@ http://you.com/app/2.0.html Wed, 09 Jan 2006 19:20:11 +0000 + 10.7 @@ -20,6 +21,7 @@ http://you.com/app/1.5.html Wed, 01 Jan 2006 12:20:11 +0000 + 10.7 @@ -31,6 +33,7 @@ http://you.com/app/1.4.html Wed, 25 Dec 2005 12:20:11 +0000 + 10.7 diff --git a/Resources/Screenshot.png b/Resources/Screenshot.png index 1b52ba3d..a9ba1bd8 100644 Binary files a/Resources/Screenshot.png and b/Resources/Screenshot.png differ diff --git a/Sparkle.podspec b/Sparkle.podspec index 7dfa6245..13557835 100644 --- a/Sparkle.podspec +++ b/Sparkle.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "Sparkle" - s.version = "1.19.1" + s.version = "1.22.0" s.summary = "A software update framework for macOS" s.description = "Sparkle is an easy-to-use software update framework for Cocoa developers." s.homepage = "http://sparkle-project.org" diff --git a/Sparkle.xcodeproj/project.pbxproj b/Sparkle.xcodeproj/project.pbxproj index e8497ec9..88b0e68b 100644 --- a/Sparkle.xcodeproj/project.pbxproj +++ b/Sparkle.xcodeproj/project.pbxproj @@ -13,6 +13,8 @@ buildPhases = ( ); dependencies = ( + 5A5ADEF0214EE67100DF0099 /* PBXTargetDependency */, + 5A5ADEEE214EE66E00DF0099 /* PBXTargetDependency */, 5AE13FAA1E0D7E2F000D2C2C /* PBXTargetDependency */, 14950064195FB8A600BC5B5B /* PBXTargetDependency */, 14950066195FB8A600BC5B5B /* PBXTargetDependency */, @@ -33,11 +35,9 @@ 142E0E0919A83AAC00E4312B /* SUBinaryDeltaTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 142E0E0819A83AAC00E4312B /* SUBinaryDeltaTest.m */; }; 14652F7C19A9725300959E44 /* SUBinaryDeltaCommon.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8E20FD68CC7005AE3F6 /* SUBinaryDeltaCommon.m */; }; 14652F7D19A9726700959E44 /* SUBinaryDeltaApply.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8E00FD68CC7005AE3F6 /* SUBinaryDeltaApply.m */; }; - 14652F7E19A9728A00959E44 /* bspatch.c in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8DC0FD68CB9005AE3F6 /* bspatch.c */; }; 14652F8019A9740F00959E44 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 61B5F8F609C4CEB300B25A18 /* Security.framework */; }; 14652F8219A9746000959E44 /* SULog.m in Sources */ = {isa = PBXBuildFile; fileRef = 55C14F05136EF6DB00649790 /* SULog.m */; }; 14652F8419A978C200959E44 /* SUExport.h in Headers */ = {isa = PBXBuildFile; fileRef = 14652F8319A9759F00959E44 /* SUExport.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 14732BC01960F2C200593899 /* test_app_only_dsa_pub.pem in Resources */ = {isa = PBXBuildFile; fileRef = 14732BBF1960F0AC00593899 /* test_app_only_dsa_pub.pem */; }; 14732BD019610A0D00593899 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D69BFE84028FC02AAC07 /* Foundation.framework */; }; 14732BD119610A1200593899 /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D6A5FE840307C02AAC07 /* AppKit.framework */; }; 14732BD319610A1800593899 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 14732BD219610A1800593899 /* XCTest.framework */; }; @@ -89,18 +89,25 @@ 5A4094481C74EA5200983BE0 /* SUAppcastTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5AA4DCD01C73E5510078F128 /* SUAppcastTest.swift */; }; 5A5AC5361E0C6CA300998119 /* Unarchive.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5A5AC5351E0C6CA300998119 /* Unarchive.swift */; }; 5A5AC5381E0C6D3000998119 /* FeedXML.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5A5AC5371E0C6D3000998119 /* FeedXML.swift */; }; + 5A5ADEDA214EDE4900DF0099 /* main.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5A5ADED9214EDE4900DF0099 /* main.swift */; }; 5A6D31EE1BF53245009C5157 /* SUFileManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 7275F9C01B5F1F2900B1D19E /* SUFileManager.m */; }; 5A6D31EF1BF5325F009C5157 /* SUOperatingSystem.m in Sources */ = {isa = PBXBuildFile; fileRef = 726F2CE41BC9C33D001971A4 /* SUOperatingSystem.m */; }; 5AA96C581E0AE0DB00CA4346 /* main.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5AA96C571E0AE0DB00CA4346 /* main.swift */; }; 5AAD00521E0BE6BE00AF411E /* ArchiveItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5AAD00511E0BE6BE00AF411E /* ArchiveItem.swift */; }; 5AAD00661E0C2D9B00AF411E /* SUBinaryDeltaCommon.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8E20FD68CC7005AE3F6 /* SUBinaryDeltaCommon.m */; }; 5AAD00671E0C2D9B00AF411E /* SUBinaryDeltaCreate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7268AC621AD634C200C3E0C1 /* SUBinaryDeltaCreate.m */; }; - 5AAD00681E0C2DAB00AF411E /* bscommon.c in Sources */ = {isa = PBXBuildFile; fileRef = 723B252B1CEAB3A600909873 /* bscommon.c */; }; - 5AAD00691E0C2DAB00AF411E /* bsdiff.c in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8DB0FD68CB9005AE3F6 /* bsdiff.c */; }; - 5AAD006A1E0C2DB500AF411E /* sais.c in Sources */ = {isa = PBXBuildFile; fileRef = 7223E7611AD1AEFF008E3161 /* sais.c */; }; 5AAD006C1E0C2DBF00AF411E /* libxar.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 5AAD006B1E0C2DBF00AF411E /* libxar.tbd */; }; + 5AB8F169214D4AE300A1187F /* SUSignatures.m in Sources */ = {isa = PBXBuildFile; fileRef = 5AF04876214D2E5F00B5789F /* SUSignatures.m */; }; + 5AB8F181214D564C00A1187F /* sha512.h in Headers */ = {isa = PBXBuildFile; fileRef = 5AB8F170214D564A00A1187F /* sha512.h */; }; + 5AB8F184214D564C00A1187F /* fe.h in Headers */ = {isa = PBXBuildFile; fileRef = 5AB8F173214D564B00A1187F /* fe.h */; }; + 5AB8F185214D564C00A1187F /* ed25519.h in Headers */ = {isa = PBXBuildFile; fileRef = 5AB8F174214D564B00A1187F /* ed25519.h */; }; + 5AB8F187214D564C00A1187F /* precomp_data.h in Headers */ = {isa = PBXBuildFile; fileRef = 5AB8F176214D564B00A1187F /* precomp_data.h */; }; + 5AB8F18A214D564C00A1187F /* fixedint.h in Headers */ = {isa = PBXBuildFile; fileRef = 5AB8F179214D564B00A1187F /* fixedint.h */; }; + 5AB8F18B214D564C00A1187F /* ge.h in Headers */ = {isa = PBXBuildFile; fileRef = 5AB8F17A214D564B00A1187F /* ge.h */; }; + 5AB8F18F214D564C00A1187F /* sc.h in Headers */ = {isa = PBXBuildFile; fileRef = 5AB8F17E214D564B00A1187F /* sc.h */; }; + 5AB8F1A2214DA72000A1187F /* main.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5AB8F1A1214DA72000A1187F /* main.swift */; }; 5AD0FA7F1C73F2E2004BCEFF /* testappcast.xml in Resources */ = {isa = PBXBuildFile; fileRef = 5AD0FA7E1C73F2E2004BCEFF /* testappcast.xml */; }; - 5AE13F781E0C9B12000D2C2C /* DSASignature.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5AE13F771E0C9B12000D2C2C /* DSASignature.swift */; }; + 5AE13F781E0C9B12000D2C2C /* Signatures.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5AE13F771E0C9B12000D2C2C /* Signatures.swift */; }; 5AE13FA01E0D4F65000D2C2C /* Appcast.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5AE13F9F1E0D4F65000D2C2C /* Appcast.swift */; }; 5AE13FA11E0D7168000D2C2C /* SUUnarchiver.m in Sources */ = {isa = PBXBuildFile; fileRef = 61299A8C09CA790200B7442F /* SUUnarchiver.m */; }; 5AE13FA21E0D716F000D2C2C /* SUFileManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 7275F9C01B5F1F2900B1D19E /* SUFileManager.m */; }; @@ -113,17 +120,16 @@ 5AE13FB81E0D9F8E000D2C2C /* SULog.m in Sources */ = {isa = PBXBuildFile; fileRef = 55C14F05136EF6DB00649790 /* SULog.m */; }; 5AE13FB91E0DA384000D2C2C /* SUBinaryDeltaUnarchiver.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E9380FD69271005AE3F6 /* SUBinaryDeltaUnarchiver.m */; }; 5AE13FBA1E0DA389000D2C2C /* SUBinaryDeltaApply.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8E00FD68CC7005AE3F6 /* SUBinaryDeltaApply.m */; }; - 5AE13FBB1E0DA391000D2C2C /* bspatch.c in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8DC0FD68CB9005AE3F6 /* bspatch.c */; }; 5AE13FBD1E0DA39B000D2C2C /* libbz2.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 5AE13FBC1E0DA39B000D2C2C /* libbz2.tbd */; }; 5AE459001C34118500E3BB47 /* SUUpdaterTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 14950074195FDF5900BC5B5B /* SUUpdaterTest.m */; }; 5AE459021C34118500E3BB47 /* SUVersionComparisonTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 61227A150DB548B800AB99EA /* SUVersionComparisonTest.m */; }; 5AE7E1111DC81AD3009C2C12 /* AppIcon.icns in Resources */ = {isa = PBXBuildFile; fileRef = 5AE7E10E1DC81ACA009C2C12 /* AppIcon.icns */; }; + 5AF04877214D2E5F00B5789F /* SUSignatures.h in Headers */ = {isa = PBXBuildFile; fileRef = 5AF04875214D2E5F00B5789F /* SUSignatures.h */; }; + 5AF04878214D2E5F00B5789F /* SUSignatures.m in Sources */ = {isa = PBXBuildFile; fileRef = 5AF04876214D2E5F00B5789F /* SUSignatures.m */; }; 5AF6C74F1AEA46D10014A3AB /* test.pkg in Resources */ = {isa = PBXBuildFile; fileRef = 5AF6C74E1AEA46D10014A3AB /* test.pkg */; }; 5AF6C7541AEA49840014A3AB /* SUInstallerTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 5AF6C74C1AEA40760014A3AB /* SUInstallerTest.m */; }; 5AF9DC3C1981DBEE001EA135 /* SUDSAVerifierTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 5AF9DC3B1981DBEE001EA135 /* SUDSAVerifierTest.m */; }; - 5D06E8E90FD68CDB005AE3F6 /* bsdiff.c in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8DB0FD68CB9005AE3F6 /* bsdiff.c */; }; 5D06E8EA0FD68CDB005AE3F6 /* SUBinaryDeltaTool.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8E30FD68CC7005AE3F6 /* SUBinaryDeltaTool.m */; }; - 5D06E8EB0FD68CE4005AE3F6 /* bspatch.c in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8DC0FD68CB9005AE3F6 /* bspatch.c */; }; 5D06E8EC0FD68CE4005AE3F6 /* SUBinaryDeltaApply.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8E00FD68CC7005AE3F6 /* SUBinaryDeltaApply.m */; }; 5D06E8ED0FD68CE4005AE3F6 /* SUBinaryDeltaCommon.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8E20FD68CC7005AE3F6 /* SUBinaryDeltaCommon.m */; }; 5D06E8FD0FD68D6B005AE3F6 /* libbz2.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D06E8FB0FD68D61005AE3F6 /* libbz2.dylib */; }; @@ -148,8 +154,8 @@ 61177A1F0D1112E900749C97 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6117796E0D1112E000749C97 /* IOKit.framework */; }; 6120721209CC5C4B007FE0F6 /* SUAutomaticUpdateAlert.h in Headers */ = {isa = PBXBuildFile; fileRef = 6120721009CC5C4B007FE0F6 /* SUAutomaticUpdateAlert.h */; settings = {ATTRIBUTES = (); }; }; 6120721309CC5C4B007FE0F6 /* SUAutomaticUpdateAlert.m in Sources */ = {isa = PBXBuildFile; fileRef = 6120721109CC5C4B007FE0F6 /* SUAutomaticUpdateAlert.m */; }; - 61299A2F09CA2DAB00B7442F /* SUDSAVerifier.h in Headers */ = {isa = PBXBuildFile; fileRef = 61299A2D09CA2DAB00B7442F /* SUDSAVerifier.h */; settings = {ATTRIBUTES = (); }; }; - 61299A3009CA2DAB00B7442F /* SUDSAVerifier.m in Sources */ = {isa = PBXBuildFile; fileRef = 61299A2E09CA2DAB00B7442F /* SUDSAVerifier.m */; settings = {COMPILER_FLAGS = "-Wno-deprecated-declarations"; }; }; + 61299A2F09CA2DAB00B7442F /* SUSignatureVerifier.h in Headers */ = {isa = PBXBuildFile; fileRef = 61299A2D09CA2DAB00B7442F /* SUSignatureVerifier.h */; settings = {ATTRIBUTES = (); }; }; + 61299A3009CA2DAB00B7442F /* SUSignatureVerifier.m in Sources */ = {isa = PBXBuildFile; fileRef = 61299A2E09CA2DAB00B7442F /* SUSignatureVerifier.m */; settings = {COMPILER_FLAGS = "-Wno-deprecated-declarations"; }; }; 61299A5C09CA6D4500B7442F /* SUConstants.h in Headers */ = {isa = PBXBuildFile; fileRef = 61299A5B09CA6D4500B7442F /* SUConstants.h */; settings = {ATTRIBUTES = (); }; }; 61299A6009CA6EB100B7442F /* SUConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 61299A5F09CA6EB100B7442F /* SUConstants.m */; }; 61299A8D09CA790200B7442F /* SUUnarchiver.h in Headers */ = {isa = PBXBuildFile; fileRef = 61299A8B09CA790200B7442F /* SUUnarchiver.h */; settings = {ATTRIBUTES = (Private, ); }; }; @@ -209,12 +215,8 @@ 720B16451C66433D006985FB /* SUTestApplicationTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 720B16431C66433D006985FB /* SUTestApplicationTest.swift */; }; 7210C7681B9A9A1500EB90AC /* SUUnarchiverTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7210C7671B9A9A1500EB90AC /* SUUnarchiverTest.swift */; }; 721BC2111D1DFF05002BC71E /* SUFileOperationConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 722954C31D04E66F00ECF9CA /* SUFileOperationConstants.m */; }; - 721CF1A71AD7643600D9AC09 /* bsdiff.c in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8DB0FD68CB9005AE3F6 /* bsdiff.c */; }; - 721CF1A81AD7644100D9AC09 /* bspatch.c in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8DC0FD68CB9005AE3F6 /* bspatch.c */; }; - 721CF1A91AD7644C00D9AC09 /* sais.c in Sources */ = {isa = PBXBuildFile; fileRef = 7223E7611AD1AEFF008E3161 /* sais.c */; }; 721CF1AA1AD7647000D9AC09 /* libxar.1.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D1AF5890FD7678C0065DB48 /* libxar.1.dylib */; }; 721CF1AB1AD764EB00D9AC09 /* libbz2.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D06E8FB0FD68D61005AE3F6 /* libbz2.dylib */; }; - 7223E7631AD1AEFF008E3161 /* sais.c in Sources */ = {isa = PBXBuildFile; fileRef = 7223E7611AD1AEFF008E3161 /* sais.c */; }; 722589D71E0AD86B005EA0B9 /* SUUnarchiverProtocol.h in Headers */ = {isa = PBXBuildFile; fileRef = 722589D61E0AD86B005EA0B9 /* SUUnarchiverProtocol.h */; }; 722589DA1E0B19F4005EA0B9 /* SUUnarchiverNotifier.h in Headers */ = {isa = PBXBuildFile; fileRef = 722589D81E0B19F4005EA0B9 /* SUUnarchiverNotifier.h */; }; 722589DB1E0B19F4005EA0B9 /* SUUnarchiverNotifier.m in Sources */ = {isa = PBXBuildFile; fileRef = 722589D91E0B19F4005EA0B9 /* SUUnarchiverNotifier.m */; }; @@ -241,9 +243,6 @@ 72316BE41E0E1C7F0039EFD9 /* SUSystemUpdateInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = 72316BE21E0E1C7F0039EFD9 /* SUSystemUpdateInfo.m */; }; 72316BE61E1087060039EFD9 /* SUUpdaterDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 72316BE51E1087060039EFD9 /* SUUpdaterDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; }; 723A920E1D722438004A9DED /* SUSpotlightImporterTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 723A920D1D722438004A9DED /* SUSpotlightImporterTest.swift */; }; - 723B252D1CEAB3A600909873 /* bscommon.c in Sources */ = {isa = PBXBuildFile; fileRef = 723B252B1CEAB3A600909873 /* bscommon.c */; }; - 723B252E1CEAB3A600909873 /* bscommon.c in Sources */ = {isa = PBXBuildFile; fileRef = 723B252B1CEAB3A600909873 /* bscommon.c */; }; - 723B252F1CEAB3A600909873 /* bscommon.c in Sources */ = {isa = PBXBuildFile; fileRef = 723B252B1CEAB3A600909873 /* bscommon.c */; }; 723B25301CEAB3A600909873 /* bscommon.h in Headers */ = {isa = PBXBuildFile; fileRef = 723B252C1CEAB3A600909873 /* bscommon.h */; }; 72464F7D1E213ED400FB341C /* SUOperatingSystem.m in Sources */ = {isa = PBXBuildFile; fileRef = 726F2CE41BC9C33D001971A4 /* SUOperatingSystem.m */; }; 72544FFC1D0991A4000CFB2C /* SUFileOperationConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 722954C31D04E66F00ECF9CA /* SUFileOperationConstants.m */; }; @@ -271,8 +270,6 @@ 72E45CF71B640DAE005C701A /* SUUpdateSettingsWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 72E45CF51B640DAE005C701A /* SUUpdateSettingsWindowController.m */; }; 72E45CF81B640DAE005C701A /* SUUpdateSettingsWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 72E45CF61B640DAE005C701A /* SUUpdateSettingsWindowController.xib */; }; 72E45CFC1B641961005C701A /* sparkletestcast.xml in Resources */ = {isa = PBXBuildFile; fileRef = 72E45CFB1B641961005C701A /* sparkletestcast.xml */; }; - 72E45CFE1B641D0D005C701A /* test_app_only_dsa_priv_dont_ever_do_this_for_real.pem in Resources */ = {isa = PBXBuildFile; fileRef = 72E45CFD1B641D0D005C701A /* test_app_only_dsa_priv_dont_ever_do_this_for_real.pem */; }; - 72E45DDD1B65C3BD005C701A /* sign_update in Resources */ = {isa = PBXBuildFile; fileRef = 72E45DDC1B65C3BD005C701A /* sign_update */; }; 72E641801D08D754000404CA /* fileop in Resources */ = {isa = PBXBuildFile; fileRef = 722954B41D04ADAF00ECF9CA /* fileop */; }; 767B61AC1972D488004E0C3C /* SUGuidedPackageInstaller.h in Headers */ = {isa = PBXBuildFile; fileRef = 767B61AA1972D488004E0C3C /* SUGuidedPackageInstaller.h */; }; 767B61AD1972D488004E0C3C /* SUGuidedPackageInstaller.m in Sources */ = {isa = PBXBuildFile; fileRef = 767B61AB1972D488004E0C3C /* SUGuidedPackageInstaller.m */; }; @@ -281,7 +278,51 @@ C23E885B1BE7B24F0050BB73 /* SparkleTestCodeSignApp.enc.dmg in Resources */ = {isa = PBXBuildFile; fileRef = C23E88591BE7AF890050BB73 /* SparkleTestCodeSignApp.enc.dmg */; }; E1545EC51E1D7E0200FAECE8 /* SUTouchBarButtonGroup.h in Headers */ = {isa = PBXBuildFile; fileRef = E1545EC31E1D7E0200FAECE8 /* SUTouchBarButtonGroup.h */; }; E1545EC61E1D7E0200FAECE8 /* SUTouchBarButtonGroup.m in Sources */ = {isa = PBXBuildFile; fileRef = E1545EC41E1D7E0200FAECE8 /* SUTouchBarButtonGroup.m */; }; + E1D4DDF921C1C5F8003D32E7 /* DarkAqua.css in Resources */ = {isa = PBXBuildFile; fileRef = E1D4DDF821C1C5F8003D32E7 /* DarkAqua.css */; }; E1EC2A301E21667000245715 /* SUTouchBarButtonGroup.m in Sources */ = {isa = PBXBuildFile; fileRef = E1545EC41E1D7E0200FAECE8 /* SUTouchBarButtonGroup.m */; }; + EA1E27F722B60B25004AA304 /* bscommon.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 723B252C1CEAB3A600909873 /* bscommon.h */; }; + EA1E27F822B60B25004AA304 /* bspatch.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 611142E810FB1BE5009810AA /* bspatch.h */; }; + EA1E27F922B60B25004AA304 /* sais.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 7223E7621AD1AEFF008E3161 /* sais.h */; }; + EA1E27FB22B60B72004AA304 /* ed25519.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 5AB8F174214D564B00A1187F /* ed25519.h */; }; + EA1E27FC22B60B72004AA304 /* fe.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 5AB8F173214D564B00A1187F /* fe.h */; }; + EA1E27FD22B60B72004AA304 /* fixedint.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 5AB8F179214D564B00A1187F /* fixedint.h */; }; + EA1E27FE22B60B72004AA304 /* ge.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 5AB8F17A214D564B00A1187F /* ge.h */; }; + EA1E27FF22B60B72004AA304 /* precomp_data.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 5AB8F176214D564B00A1187F /* precomp_data.h */; }; + EA1E280022B60B72004AA304 /* sc.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 5AB8F17E214D564B00A1187F /* sc.h */; }; + EA1E280122B60B72004AA304 /* sha512.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 5AB8F170214D564A00A1187F /* sha512.h */; }; + EA4311A5229D5FC600A5503D /* add_scalar.c in Sources */ = {isa = PBXBuildFile; fileRef = 5AB8F171214D564A00A1187F /* add_scalar.c */; }; + EA4311A6229D5FC600A5503D /* ed25519.h in Sources */ = {isa = PBXBuildFile; fileRef = 5AB8F174214D564B00A1187F /* ed25519.h */; }; + EA4311A7229D5FC600A5503D /* fe.c in Sources */ = {isa = PBXBuildFile; fileRef = 5AB8F17C214D564B00A1187F /* fe.c */; }; + EA4311A8229D5FC600A5503D /* fe.h in Sources */ = {isa = PBXBuildFile; fileRef = 5AB8F173214D564B00A1187F /* fe.h */; }; + EA4311A9229D5FC600A5503D /* fixedint.h in Sources */ = {isa = PBXBuildFile; fileRef = 5AB8F179214D564B00A1187F /* fixedint.h */; }; + EA4311AA229D5FC600A5503D /* ge.c in Sources */ = {isa = PBXBuildFile; fileRef = 5AB8F175214D564B00A1187F /* ge.c */; }; + EA4311AB229D5FC600A5503D /* ge.h in Sources */ = {isa = PBXBuildFile; fileRef = 5AB8F17A214D564B00A1187F /* ge.h */; }; + EA4311AC229D5FC600A5503D /* key_exchange.c in Sources */ = {isa = PBXBuildFile; fileRef = 5AB8F178214D564B00A1187F /* key_exchange.c */; }; + EA4311AD229D5FC600A5503D /* keypair.c in Sources */ = {isa = PBXBuildFile; fileRef = 5AB8F17F214D564C00A1187F /* keypair.c */; }; + EA4311AE229D5FC600A5503D /* precomp_data.h in Sources */ = {isa = PBXBuildFile; fileRef = 5AB8F176214D564B00A1187F /* precomp_data.h */; }; + EA4311AF229D5FC600A5503D /* sc.c in Sources */ = {isa = PBXBuildFile; fileRef = 5AB8F16F214D564A00A1187F /* sc.c */; }; + EA4311B0229D5FC600A5503D /* sc.h in Sources */ = {isa = PBXBuildFile; fileRef = 5AB8F17E214D564B00A1187F /* sc.h */; }; + EA4311B1229D5FC600A5503D /* seed.c in Sources */ = {isa = PBXBuildFile; fileRef = 5AB8F17B214D564B00A1187F /* seed.c */; }; + EA4311B2229D5FC600A5503D /* sha512.c in Sources */ = {isa = PBXBuildFile; fileRef = 5AB8F172214D564B00A1187F /* sha512.c */; }; + EA4311B3229D5FC600A5503D /* sha512.h in Sources */ = {isa = PBXBuildFile; fileRef = 5AB8F170214D564A00A1187F /* sha512.h */; }; + EA4311B4229D5FC600A5503D /* sign.c in Sources */ = {isa = PBXBuildFile; fileRef = 5AB8F17D214D564B00A1187F /* sign.c */; }; + EA4311B5229D5FC600A5503D /* verify.c in Sources */ = {isa = PBXBuildFile; fileRef = 5AB8F177214D564B00A1187F /* verify.c */; }; + EA4311BD229D5FF000A5503D /* libed25519.a in Frameworks */ = {isa = PBXBuildFile; fileRef = EA4311A0229D5FBC00A5503D /* libed25519.a */; }; + EA4311E2229D640400A5503D /* libed25519.a in Frameworks */ = {isa = PBXBuildFile; fileRef = EA4311A0229D5FBC00A5503D /* libed25519.a */; }; + EA4311E3229D641400A5503D /* libed25519.a in Frameworks */ = {isa = PBXBuildFile; fileRef = EA4311A0229D5FBC00A5503D /* libed25519.a */; }; + EA4311E4229D643300A5503D /* libed25519.a in Frameworks */ = {isa = PBXBuildFile; fileRef = EA4311A0229D5FBC00A5503D /* libed25519.a */; }; + EA4311E5229D644700A5503D /* libed25519.a in Frameworks */ = {isa = PBXBuildFile; fileRef = EA4311A0229D5FBC00A5503D /* libed25519.a */; }; + EA4311EF229D651F00A5503D /* bscommon.c in Sources */ = {isa = PBXBuildFile; fileRef = 723B252B1CEAB3A600909873 /* bscommon.c */; }; + EA4311F0229D651F00A5503D /* bscommon.h in Sources */ = {isa = PBXBuildFile; fileRef = 723B252C1CEAB3A600909873 /* bscommon.h */; }; + EA4311F1229D651F00A5503D /* bsdiff.c in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8DB0FD68CB9005AE3F6 /* bsdiff.c */; }; + EA4311F2229D651F00A5503D /* bspatch.c in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8DC0FD68CB9005AE3F6 /* bspatch.c */; }; + EA4311F3229D651F00A5503D /* bspatch.h in Sources */ = {isa = PBXBuildFile; fileRef = 611142E810FB1BE5009810AA /* bspatch.h */; }; + EA4311F4229D651F00A5503D /* sais.c in Sources */ = {isa = PBXBuildFile; fileRef = 7223E7611AD1AEFF008E3161 /* sais.c */; }; + EA4311F5229D651F00A5503D /* sais.h in Sources */ = {isa = PBXBuildFile; fileRef = 7223E7621AD1AEFF008E3161 /* sais.h */; }; + EA4311FC229D65E400A5503D /* libbsdiff.a in Frameworks */ = {isa = PBXBuildFile; fileRef = EA4311EA229D651300A5503D /* libbsdiff.a */; }; + EA4311FD229D65FC00A5503D /* libbsdiff.a in Frameworks */ = {isa = PBXBuildFile; fileRef = EA4311EA229D651300A5503D /* libbsdiff.a */; }; + EA4311FE229D660B00A5503D /* libbsdiff.a in Frameworks */ = {isa = PBXBuildFile; fileRef = EA4311EA229D651300A5503D /* libbsdiff.a */; }; + EA4311FF229D662600A5503D /* libbsdiff.a in Frameworks */ = {isa = PBXBuildFile; fileRef = EA4311EA229D651300A5503D /* libbsdiff.a */; }; F8761EB11ADC5068000C9034 /* SUCodeSigningVerifierTest.m in Sources */ = {isa = PBXBuildFile; fileRef = F8761EB01ADC5068000C9034 /* SUCodeSigningVerifierTest.m */; }; F8761EB31ADC50EB000C9034 /* SparkleTestCodeSignApp.zip in Resources */ = {isa = PBXBuildFile; fileRef = F8761EB21ADC50EB000C9034 /* SparkleTestCodeSignApp.zip */; }; F8761EB61ADC5E7A000C9034 /* SUCodeSigningVerifier.m in Sources */ = {isa = PBXBuildFile; fileRef = 61B078CD15A5FB6100600039 /* SUCodeSigningVerifier.m */; }; @@ -358,6 +399,34 @@ remoteGlobalIDString = 55C14BB6136EEF1500649790; remoteInfo = Autoupdate; }; + 5A5ADEE9214EE65A00DF0099 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 5AB8F19E214DA72000A1187F; + remoteInfo = generate_keys; + }; + 5A5ADEEB214EE65C00DF0099 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 5A5ADED6214EDE4900DF0099; + remoteInfo = sign_update; + }; + 5A5ADEED214EE66E00DF0099 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 5AB8F19E214DA72000A1187F; + remoteInfo = generate_keys; + }; + 5A5ADEEF214EE67100DF0099 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 5A5ADED6214EDE4900DF0099; + remoteInfo = sign_update; + }; 5AE13FA71E0D7E1C000D2C2C /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; @@ -442,15 +511,6 @@ name = "Copy Frameworks"; runOnlyForDeploymentPostprocessing = 0; }; - 722954B21D04ADAF00ECF9CA /* CopyFiles */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = /usr/share/man/man1/; - dstSubfolderSpec = 0; - files = ( - ); - runOnlyForDeploymentPostprocessing = 1; - }; 722954C01D04D9D600ECF9CA /* Copy fileop */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; @@ -462,6 +522,36 @@ name = "Copy fileop"; runOnlyForDeploymentPostprocessing = 0; }; + EA1E27F622B60AFA004AA304 /* Copy Headers */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = "include/$(PRODUCT_NAME)"; + dstSubfolderSpec = 16; + files = ( + EA1E27F722B60B25004AA304 /* bscommon.h in Copy Headers */, + EA1E27F822B60B25004AA304 /* bspatch.h in Copy Headers */, + EA1E27F922B60B25004AA304 /* sais.h in Copy Headers */, + ); + name = "Copy Headers"; + runOnlyForDeploymentPostprocessing = 0; + }; + EA1E27FA22B60B54004AA304 /* Copy Headers */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = "include/$(PRODUCT_NAME)"; + dstSubfolderSpec = 16; + files = ( + EA1E27FB22B60B72004AA304 /* ed25519.h in Copy Headers */, + EA1E27FC22B60B72004AA304 /* fe.h in Copy Headers */, + EA1E27FD22B60B72004AA304 /* fixedint.h in Copy Headers */, + EA1E27FE22B60B72004AA304 /* ge.h in Copy Headers */, + EA1E27FF22B60B72004AA304 /* precomp_data.h in Copy Headers */, + EA1E280022B60B72004AA304 /* sc.h in Copy Headers */, + EA1E280122B60B72004AA304 /* sha512.h in Copy Headers */, + ); + name = "Copy Headers"; + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ @@ -491,10 +581,7 @@ 14732BB91960EEEE00593899 /* SampleAppcast.xml */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = SampleAppcast.xml; sourceTree = ""; }; 14732BBA1960EF7100593899 /* CHANGELOG */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = CHANGELOG; sourceTree = SOURCE_ROOT; }; 14732BBC1960EFB500593899 /* README.markdown */ = {isa = PBXFileReference; lastKnownFileType = text; path = README.markdown; sourceTree = SOURCE_ROOT; }; - 14732BBF1960F0AC00593899 /* test_app_only_dsa_pub.pem */ = {isa = PBXFileReference; lastKnownFileType = text; path = test_app_only_dsa_pub.pem; sourceTree = ""; }; 14732BC11960F3B200593899 /* Makefile */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.make; path = Makefile; sourceTree = SOURCE_ROOT; usesTabs = 1; }; - 14732BC31960F3FF00593899 /* generate_keys */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = generate_keys; sourceTree = ""; }; - 14732BC41960F3FF00593899 /* sign_update */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = sign_update; sourceTree = ""; }; 14732BC91960F70A00593899 /* make-release-package.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = "make-release-package.sh"; sourceTree = ""; }; 14732BD219610A1800593899 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; 147D6D9E1B66DC3C006607AB /* CheckLocalizations.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = CheckLocalizations.swift; path = Sparkle/CheckLocalizations.swift; sourceTree = SOURCE_ROOT; }; @@ -539,6 +626,11 @@ 1A985A511C5C32BB0001163A /* uk */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = uk; path = uk.lproj/InfoPlist.strings; sourceTree = ""; }; 1A985A521C5C32BC0001163A /* ar */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ar; path = ar.lproj/InfoPlist.strings; sourceTree = ""; }; 1A985A531C5C32BD0001163A /* el */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = el; path = el.lproj/InfoPlist.strings; sourceTree = ""; }; + 26B1A4652195FFE900B09783 /* hr */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = hr; path = hr.lproj/Sparkle.strings; sourceTree = ""; }; + 26B1A4662195FFE900B09783 /* hr */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = hr; path = hr.lproj/SUAutomaticUpdateAlert.xib; sourceTree = ""; }; + 26B1A4672195FFE900B09783 /* hr */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = hr; path = hr.lproj/SUUpdateAlert.xib; sourceTree = ""; }; + 26B1A4682195FFE900B09783 /* hr */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = hr; path = hr.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; + 26B1A4692195FFE900B09783 /* hr */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = hr; path = hr.lproj/InfoPlist.strings; sourceTree = ""; }; 34074B8C1FEABD08001CB3A5 /* SPUDownloader.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUDownloader.m; sourceTree = ""; }; 34074B8D1FEABD08001CB3A5 /* SPUDownloader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUDownloader.h; sourceTree = ""; }; 34074B8E1FEABD08001CB3A5 /* SPUDownloaderDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUDownloaderDelegate.h; sourceTree = ""; }; @@ -565,6 +657,9 @@ 555CF29B196C523E0000B31E /* el */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = el; path = el.lproj/SUAutomaticUpdateAlert.xib; sourceTree = ""; }; 555CF29C196C52460000B31E /* el */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = el; path = el.lproj/SUUpdateAlert.xib; sourceTree = ""; }; 555CF29D196C524C0000B31E /* el */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = el; path = el.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; + 55BACC1820AF2C5B00ECEBB6 /* fi */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = fi; path = fi.lproj/SUUpdateAlert.xib; sourceTree = ""; }; + 55BACC1920AF2C6D00ECEBB6 /* fi */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = fi; path = fi.lproj/SUAutomaticUpdateAlert.xib; sourceTree = ""; }; + 55BACC1A20AF2C7D00ECEBB6 /* fi */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = fi; path = fi.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; 55C14BB7136EEF1500649790 /* Autoupdate.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Autoupdate.app; sourceTree = BUILT_PRODUCTS_DIR; }; 55C14BB9136EEF1500649790 /* Autoupdate-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Autoupdate-Info.plist"; sourceTree = ""; }; 55C14BD3136EEFCE00649790 /* Autoupdate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Autoupdate.m; sourceTree = ""; }; @@ -629,18 +724,45 @@ 55E6F33219EC9F6C00005E76 /* SUErrors.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUErrors.h; sourceTree = ""; }; 5A5AC5351E0C6CA300998119 /* Unarchive.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Unarchive.swift; sourceTree = ""; }; 5A5AC5371E0C6D3000998119 /* FeedXML.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FeedXML.swift; sourceTree = ""; }; + 5A5ADED7214EDE4900DF0099 /* sign_update */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = sign_update; sourceTree = BUILT_PRODUCTS_DIR; }; + 5A5ADED9214EDE4900DF0099 /* main.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = main.swift; sourceTree = ""; }; 5AA4DCD01C73E5510078F128 /* SUAppcastTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SUAppcastTest.swift; sourceTree = ""; }; 5AA96C571E0AE0DB00CA4346 /* main.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = main.swift; sourceTree = ""; }; 5AA96C5D1E0AE0F900CA4346 /* Appcast-Bridging-Header.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "Appcast-Bridging-Header.h"; sourceTree = ""; }; 5AAD00511E0BE6BE00AF411E /* ArchiveItem.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ArchiveItem.swift; sourceTree = ""; }; 5AAD006B1E0C2DBF00AF411E /* libxar.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libxar.tbd; path = usr/lib/libxar.tbd; sourceTree = SDKROOT; }; + 5AB8F16F214D564A00A1187F /* sc.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = sc.c; path = Vendor/ed25519/src/sc.c; sourceTree = SOURCE_ROOT; }; + 5AB8F170214D564A00A1187F /* sha512.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = sha512.h; path = Vendor/ed25519/src/sha512.h; sourceTree = SOURCE_ROOT; }; + 5AB8F171214D564A00A1187F /* add_scalar.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = add_scalar.c; path = Vendor/ed25519/src/add_scalar.c; sourceTree = SOURCE_ROOT; }; + 5AB8F172214D564B00A1187F /* sha512.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = sha512.c; path = Vendor/ed25519/src/sha512.c; sourceTree = SOURCE_ROOT; }; + 5AB8F173214D564B00A1187F /* fe.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = fe.h; path = Vendor/ed25519/src/fe.h; sourceTree = SOURCE_ROOT; }; + 5AB8F174214D564B00A1187F /* ed25519.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ed25519.h; path = Vendor/ed25519/src/ed25519.h; sourceTree = SOURCE_ROOT; }; + 5AB8F175214D564B00A1187F /* ge.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = ge.c; path = Vendor/ed25519/src/ge.c; sourceTree = SOURCE_ROOT; }; + 5AB8F176214D564B00A1187F /* precomp_data.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = precomp_data.h; path = Vendor/ed25519/src/precomp_data.h; sourceTree = SOURCE_ROOT; }; + 5AB8F177214D564B00A1187F /* verify.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = verify.c; path = Vendor/ed25519/src/verify.c; sourceTree = SOURCE_ROOT; }; + 5AB8F178214D564B00A1187F /* key_exchange.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = key_exchange.c; path = Vendor/ed25519/src/key_exchange.c; sourceTree = SOURCE_ROOT; }; + 5AB8F179214D564B00A1187F /* fixedint.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = fixedint.h; path = Vendor/ed25519/src/fixedint.h; sourceTree = SOURCE_ROOT; }; + 5AB8F17A214D564B00A1187F /* ge.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ge.h; path = Vendor/ed25519/src/ge.h; sourceTree = SOURCE_ROOT; }; + 5AB8F17B214D564B00A1187F /* seed.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = seed.c; path = Vendor/ed25519/src/seed.c; sourceTree = SOURCE_ROOT; }; + 5AB8F17C214D564B00A1187F /* fe.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = fe.c; path = Vendor/ed25519/src/fe.c; sourceTree = SOURCE_ROOT; }; + 5AB8F17D214D564B00A1187F /* sign.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = sign.c; path = Vendor/ed25519/src/sign.c; sourceTree = SOURCE_ROOT; }; + 5AB8F17E214D564B00A1187F /* sc.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = sc.h; path = Vendor/ed25519/src/sc.h; sourceTree = SOURCE_ROOT; }; + 5AB8F17F214D564C00A1187F /* keypair.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = keypair.c; path = Vendor/ed25519/src/keypair.c; sourceTree = SOURCE_ROOT; }; + 5AB8F19F214DA72000A1187F /* generate_keys */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = generate_keys; sourceTree = BUILT_PRODUCTS_DIR; }; + 5AB8F1A1214DA72000A1187F /* main.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = main.swift; sourceTree = ""; }; + 5AB8F1A8214DA85900A1187F /* ConfigGenerateKeys.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ConfigGenerateKeys.xcconfig; sourceTree = ""; }; + 5AB8F1A9214DA85900A1187F /* ConfigGenerateKeysRelease.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ConfigGenerateKeysRelease.xcconfig; sourceTree = ""; }; + 5AB8F1AA214DA85900A1187F /* ConfigGenerateKeysDebug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ConfigGenerateKeysDebug.xcconfig; sourceTree = ""; }; + 5AB8F1AB214DA8F200A1187F /* Bridging-Header.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "Bridging-Header.h"; sourceTree = ""; }; 5AD0FA7E1C73F2E2004BCEFF /* testappcast.xml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = testappcast.xml; sourceTree = ""; }; - 5AE13F771E0C9B12000D2C2C /* DSASignature.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DSASignature.swift; sourceTree = ""; }; + 5AE13F771E0C9B12000D2C2C /* Signatures.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Signatures.swift; sourceTree = ""; }; 5AE13F9F1E0D4F65000D2C2C /* Appcast.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Appcast.swift; sourceTree = ""; }; 5AE13FB31E0D9E07000D2C2C /* generate_appcast */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = generate_appcast; sourceTree = BUILT_PRODUCTS_DIR; }; 5AE13FBC1E0DA39B000D2C2C /* libbz2.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libbz2.tbd; path = usr/lib/libbz2.tbd; sourceTree = SDKROOT; }; 5AE7E10E1DC81ACA009C2C12 /* AppIcon.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; path = AppIcon.icns; sourceTree = ""; }; 5AEF45D9189D1CC90030D7DC /* tr */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = tr; path = tr.lproj/Sparkle.strings; sourceTree = ""; }; + 5AF04875214D2E5F00B5789F /* SUSignatures.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SUSignatures.h; sourceTree = ""; }; + 5AF04876214D2E5F00B5789F /* SUSignatures.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SUSignatures.m; sourceTree = ""; }; 5AF6C74C1AEA40760014A3AB /* SUInstallerTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUInstallerTest.m; sourceTree = ""; }; 5AF6C74E1AEA46D10014A3AB /* test.pkg */ = {isa = PBXFileReference; lastKnownFileType = file; path = test.pkg; sourceTree = ""; }; 5AF9DC3B1981DBEE001EA135 /* SUDSAVerifierTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUDSAVerifierTest.m; sourceTree = ""; }; @@ -662,6 +784,8 @@ 5D1AF58F0FD767AD0065DB48 /* libxml2.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libxml2.dylib; path = usr/lib/libxml2.dylib; sourceTree = SDKROOT; }; 5D1AF5990FD767E50065DB48 /* libz.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libz.dylib; path = usr/lib/libz.dylib; sourceTree = SDKROOT; }; 5F1510A11C96E591006E1629 /* testnamespaces.xml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = testnamespaces.xml; sourceTree = ""; }; + 5FA8757822C7A12C00FC6A2F /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + 5FA8757922C7A12C00FC6A2F /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/MainMenu.xib; sourceTree = ""; }; 610134710DD250470049ACDF /* SUUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUUpdateDriver.h; sourceTree = ""; }; 610134720DD250470049ACDF /* SUUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUUpdateDriver.m; sourceTree = ""; }; 610134790DD2541A0049ACDF /* SUProbingUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUProbingUpdateDriver.h; sourceTree = ""; }; @@ -681,8 +805,8 @@ 612279D90DB5470200AB99EA /* Sparkle Unit Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Sparkle Unit Tests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 612279DA0DB5470200AB99EA /* SparkleTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "SparkleTests-Info.plist"; sourceTree = ""; }; 61227A150DB548B800AB99EA /* SUVersionComparisonTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUVersionComparisonTest.m; sourceTree = ""; }; - 61299A2D09CA2DAB00B7442F /* SUDSAVerifier.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUDSAVerifier.h; sourceTree = ""; }; - 61299A2E09CA2DAB00B7442F /* SUDSAVerifier.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUDSAVerifier.m; sourceTree = ""; }; + 61299A2D09CA2DAB00B7442F /* SUSignatureVerifier.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUSignatureVerifier.h; sourceTree = ""; }; + 61299A2E09CA2DAB00B7442F /* SUSignatureVerifier.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUSignatureVerifier.m; sourceTree = ""; }; 61299A5B09CA6D4500B7442F /* SUConstants.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUConstants.h; sourceTree = ""; }; 61299A5F09CA6EB100B7442F /* SUConstants.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUConstants.m; sourceTree = ""; }; 61299A8B09CA790200B7442F /* SUUnarchiver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUUnarchiver.h; sourceTree = ""; }; @@ -736,8 +860,6 @@ 61B5F90209C4CEE200B25A18 /* Sparkle Test App.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Sparkle Test App.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 61B5F90409C4CEE200B25A18 /* TestApplication-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "TestApplication-Info.plist"; sourceTree = ""; }; 61B5F92409C4CFC900B25A18 /* main.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; - 61B5F92B09C4CFD800B25A18 /* English */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = ""; }; - 61B5F92D09C4CFD800B25A18 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/MainMenu.xib; sourceTree = ""; }; 61B5FB9409C4F04600B25A18 /* SUAppcast.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUAppcast.h; sourceTree = ""; }; 61B5FB9509C4F04600B25A18 /* SUAppcast.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUAppcast.m; sourceTree = ""; }; 61B5FC3F09C4FD4000B25A18 /* WebKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WebKit.framework; path = System/Library/Frameworks/WebKit.framework; sourceTree = SDKROOT; }; @@ -828,8 +950,6 @@ 72E45CF51B640DAE005C701A /* SUUpdateSettingsWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUUpdateSettingsWindowController.m; sourceTree = ""; }; 72E45CF61B640DAE005C701A /* SUUpdateSettingsWindowController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = SUUpdateSettingsWindowController.xib; sourceTree = ""; }; 72E45CFB1B641961005C701A /* sparkletestcast.xml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = sparkletestcast.xml; sourceTree = ""; }; - 72E45CFD1B641D0D005C701A /* test_app_only_dsa_priv_dont_ever_do_this_for_real.pem */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = test_app_only_dsa_priv_dont_ever_do_this_for_real.pem; sourceTree = ""; }; - 72E45DDC1B65C3BD005C701A /* sign_update */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; name = sign_update; path = bin/sign_update; sourceTree = SOURCE_ROOT; }; 767B61AA1972D488004E0C3C /* SUGuidedPackageInstaller.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUGuidedPackageInstaller.h; sourceTree = ""; }; 767B61AB1972D488004E0C3C /* SUGuidedPackageInstaller.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUGuidedPackageInstaller.m; sourceTree = ""; }; 8DC2EF5A0486A6940098B216 /* Sparkle-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "Sparkle-Info.plist"; sourceTree = ""; }; @@ -840,6 +960,15 @@ E1545EC31E1D7E0200FAECE8 /* SUTouchBarButtonGroup.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUTouchBarButtonGroup.h; sourceTree = ""; }; E1545EC41E1D7E0200FAECE8 /* SUTouchBarButtonGroup.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUTouchBarButtonGroup.m; sourceTree = ""; }; E19CA4901E2E7E4D009D4D18 /* SUTouchBarForwardDeclarations.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SUTouchBarForwardDeclarations.h; sourceTree = ""; }; + E1D4DDF821C1C5F8003D32E7 /* DarkAqua.css */ = {isa = PBXFileReference; lastKnownFileType = text.css; path = DarkAqua.css; sourceTree = ""; }; + EA4311A0229D5FBC00A5503D /* libed25519.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libed25519.a; sourceTree = BUILT_PRODUCTS_DIR; }; + EA4311C7229D612A00A5503D /* ed25519-Shared.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "ed25519-Shared.xcconfig"; sourceTree = ""; }; + EA4311C8229D613B00A5503D /* ed25519-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "ed25519-Release.xcconfig"; sourceTree = ""; }; + EA4311C9229D614300A5503D /* ed25519-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "ed25519-Debug.xcconfig"; sourceTree = ""; }; + EA4311EA229D651300A5503D /* libbsdiff.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libbsdiff.a; sourceTree = BUILT_PRODUCTS_DIR; }; + EA4311F9229D655E00A5503D /* bsdiff-Shared.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "bsdiff-Shared.xcconfig"; sourceTree = ""; }; + EA4311FA229D656700A5503D /* bsdiff-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "bsdiff-Debug.xcconfig"; sourceTree = ""; }; + EA4311FB229D657A00A5503D /* bsdiff-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "bsdiff-Release.xcconfig"; sourceTree = ""; }; F8761EB01ADC5068000C9034 /* SUCodeSigningVerifierTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUCodeSigningVerifierTest.m; sourceTree = ""; }; F8761EB21ADC50EB000C9034 /* SparkleTestCodeSignApp.zip */ = {isa = PBXFileReference; lastKnownFileType = archive.zip; path = SparkleTestCodeSignApp.zip; sourceTree = ""; }; FA1941CA0D94A70100DD942E /* ConfigFrameworkDebug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ConfigFrameworkDebug.xcconfig; sourceTree = ""; }; @@ -872,20 +1001,39 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 5A5ADED4214EDE4900DF0099 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + EA4311E3229D641400A5503D /* libed25519.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 5AA96C521E0AE0DB00CA4346 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + EA4311FC229D65E400A5503D /* libbsdiff.a in Frameworks */, 5AE13FBD1E0DA39B000D2C2C /* libbz2.tbd in Frameworks */, + EA4311BD229D5FF000A5503D /* libed25519.a in Frameworks */, 5AAD006C1E0C2DBF00AF411E /* libxar.tbd in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; + 5AB8F19C214DA72000A1187F /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + EA4311E2229D640400A5503D /* libed25519.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 5D06E8CE0FD68C7C005AE3F6 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 5D06E9050FD68D7D005AE3F6 /* Foundation.framework in Frameworks */, + EA4311FD229D65FC00A5503D /* libbsdiff.a in Frameworks */, 5D06E8FF0FD68D6D005AE3F6 /* libbz2.dylib in Frameworks */, 5D1AF58B0FD7678C0065DB48 /* libxar.1.dylib in Frameworks */, 5D1AF5900FD767AD0065DB48 /* libxml2.dylib in Frameworks */, @@ -899,6 +1047,7 @@ files = ( 14732BD119610A1200593899 /* AppKit.framework in Frameworks */, 14732BD019610A0D00593899 /* Foundation.framework in Frameworks */, + EA4311FE229D660B00A5503D /* libbsdiff.a in Frameworks */, 721CF1AB1AD764EB00D9AC09 /* libbz2.dylib in Frameworks */, 721CF1AA1AD7647000D9AC09 /* libxar.1.dylib in Frameworks */, 14652F8019A9740F00959E44 /* Security.framework in Frameworks */, @@ -913,6 +1062,7 @@ files = ( 14950073195FCE4E00BC5B5B /* AppKit.framework in Frameworks */, 14950072195FCE4B00BC5B5B /* Foundation.framework in Frameworks */, + EA4311E5229D644700A5503D /* libed25519.a in Frameworks */, 61B5F90F09C4CF3A00B25A18 /* Sparkle.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; @@ -941,7 +1091,9 @@ 1495006E195FCE1100BC5B5B /* AppKit.framework in Frameworks */, 1495006F195FCE1800BC5B5B /* Foundation.framework in Frameworks */, 61177A1F0D1112E900749C97 /* IOKit.framework in Frameworks */, + EA4311FF229D662600A5503D /* libbsdiff.a in Frameworks */, 5D06E8FD0FD68D6B005AE3F6 /* libbz2.dylib in Frameworks */, + EA4311E4229D643300A5503D /* libed25519.a in Frameworks */, 5D1AF58A0FD7678C0065DB48 /* libxar.1.dylib in Frameworks */, 5D1AF82B0FD768180065DB48 /* libz.dylib in Frameworks */, 61B5F8F709C4CEB300B25A18 /* Security.framework in Frameworks */, @@ -950,6 +1102,20 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + EA43119E229D5FBC00A5503D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + EA4311E8229D651300A5503D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ @@ -959,7 +1125,11 @@ 5D06E8D00FD68C7C005AE3F6 /* BinaryDelta */, 722954B41D04ADAF00ECF9CA /* fileop */, 5AE13FB31E0D9E07000D2C2C /* generate_appcast */, + 5AB8F19F214DA72000A1187F /* generate_keys */, + 5A5ADED7214EDE4900DF0099 /* sign_update */, 55C14BB7136EEF1500649790 /* Autoupdate.app */, + EA4311EA229D651300A5503D /* libbsdiff.a */, + EA4311A0229D5FBC00A5503D /* libed25519.a */, 61B5F90209C4CEE200B25A18 /* Sparkle Test App.app */, 612279D90DB5470200AB99EA /* Sparkle Unit Tests.xctest */, 8DC2EF5B0486A6940098B216 /* Sparkle.framework */, @@ -976,10 +1146,12 @@ 14732BB81960EEB600593899 /* Resources */, 61227A100DB5484000AB99EA /* Tests */, 61B5F91D09C4CF7F00B25A18 /* Test Application */, - 14732BB51960ECBA00593899 /* Third Party */, + 14732BB51960ECBA00593899 /* Vendor */, 1420DE391962322200203BB0 /* Documentation */, FA1941C40D94A6EA00DD942E /* Configurations */, - 726B2B5E1C645FC900388755 /* UI Tests */, + 726B2B5E1C645FC900388755 /* UITests */, + 5AB8F1A0214DA72000A1187F /* generate_keys */, + 5A5ADED8214EDE4900DF0099 /* sign_update */, 0867D69AFE84028FC02AAC07 /* Frameworks */, 034768DFFF38A50411DB9C8B /* Products */, ); @@ -1011,6 +1183,7 @@ 089C1665FE841158C02AAC07 /* Framework Resources */ = { isa = PBXGroup; children = ( + E1D4DDF821C1C5F8003D32E7 /* DarkAqua.css */, 8DC2EF5A0486A6940098B216 /* Sparkle-Info.plist */, 61AAE8220A321A7F00D8810D /* Sparkle.strings */, 55C14BDA136EF20D00649790 /* SUAutomaticUpdateAlert.xib */, @@ -1030,12 +1203,12 @@ path = Documentation; sourceTree = ""; }; - 14732BB51960ECBA00593899 /* Third Party */ = { + 14732BB51960ECBA00593899 /* Vendor */ = { isa = PBXGroup; children = ( 14732BB61960ECE800593899 /* bsdiff */, + 5AB8F16E214D560700A1187F /* ed25519 */, ); - name = "Third Party"; path = Vendor; sourceTree = ""; }; @@ -1056,7 +1229,6 @@ 14732BB81960EEB600593899 /* Resources */ = { isa = PBXGroup; children = ( - 14732BC21960F3FF00593899 /* bin */, 14732BBA1960EF7100593899 /* CHANGELOG */, 61C268090E2DB5D000175E6C /* LICENSE */, 14732BC11960F3B200593899 /* Makefile */, @@ -1070,15 +1242,6 @@ path = Resources; sourceTree = ""; }; - 14732BC21960F3FF00593899 /* bin */ = { - isa = PBXGroup; - children = ( - 14732BC31960F3FF00593899 /* generate_keys */, - 14732BC41960F3FF00593899 /* sign_update */, - ); - path = bin; - sourceTree = SOURCE_ROOT; - }; 1495006D195FBBBD00BC5B5B /* Sparkle */ = { isa = PBXGroup; children = ( @@ -1088,6 +1251,7 @@ 089C1665FE841158C02AAC07 /* Framework Resources */, 618FA6DB0DB485440026945C /* Installation */, 61B5F8F309C4CE5900B25A18 /* Other Sources */, + 5AF04874214D2E2800B5789F /* Signatures */, 6101354A0DD25B7F0049ACDF /* Unarchiving */, 61F83F6E0DBFE07A006FDD30 /* Update Control */, 61299B3A09CB056100B7442F /* User Interface */, @@ -1123,12 +1287,12 @@ 34074B8D1FEABD08001CB3A5 /* SPUDownloader.h */, 34074B8C1FEABD08001CB3A5 /* SPUDownloader.m */, 34074BA41FEAC0BC001CB3A5 /* SPUDownloader_Private.h */, + 34074B8E1FEABD08001CB3A5 /* SPUDownloaderDelegate.h */, 34074BA51FEAC417001CB3A5 /* SPUDownloaderDeprecated.h */, 34074BA61FEAC417001CB3A5 /* SPUDownloaderDeprecated.m */, + 34074B8F1FEABD08001CB3A5 /* SPUDownloaderProtocol.h */, 34074BA01FEABFD2001CB3A5 /* SPUDownloaderSession.h */, 34074BA11FEABFD2001CB3A5 /* SPUDownloaderSession.m */, - 34074B8E1FEABD08001CB3A5 /* SPUDownloaderDelegate.h */, - 34074B8F1FEABD08001CB3A5 /* SPUDownloaderProtocol.h */, 34074B941FEABD23001CB3A5 /* SPULocalCacheDirectory.h */, 34074B951FEABD23001CB3A5 /* SPULocalCacheDirectory.m */, 34074B991FEABD49001CB3A5 /* SPUURLRequest.h */, @@ -1149,20 +1313,71 @@ path = Autoupdate; sourceTree = ""; }; + 5A5ADED8214EDE4900DF0099 /* sign_update */ = { + isa = PBXGroup; + children = ( + 5A5ADED9214EDE4900DF0099 /* main.swift */, + ); + path = sign_update; + sourceTree = ""; + }; 5AA96C561E0AE0DB00CA4346 /* generate_appcast */ = { isa = PBXGroup; children = ( 5AA96C5D1E0AE0F900CA4346 /* Appcast-Bridging-Header.h */, 5AE13F9F1E0D4F65000D2C2C /* Appcast.swift */, 5AAD00511E0BE6BE00AF411E /* ArchiveItem.swift */, - 5AE13F771E0C9B12000D2C2C /* DSASignature.swift */, 5A5AC5371E0C6D3000998119 /* FeedXML.swift */, 5AA96C571E0AE0DB00CA4346 /* main.swift */, + 5AE13F771E0C9B12000D2C2C /* Signatures.swift */, 5A5AC5351E0C6CA300998119 /* Unarchive.swift */, ); path = generate_appcast; sourceTree = ""; }; + 5AB8F16E214D560700A1187F /* ed25519 */ = { + isa = PBXGroup; + children = ( + 5AB8F171214D564A00A1187F /* add_scalar.c */, + 5AB8F174214D564B00A1187F /* ed25519.h */, + 5AB8F17C214D564B00A1187F /* fe.c */, + 5AB8F173214D564B00A1187F /* fe.h */, + 5AB8F179214D564B00A1187F /* fixedint.h */, + 5AB8F175214D564B00A1187F /* ge.c */, + 5AB8F17A214D564B00A1187F /* ge.h */, + 5AB8F178214D564B00A1187F /* key_exchange.c */, + 5AB8F17F214D564C00A1187F /* keypair.c */, + 5AB8F176214D564B00A1187F /* precomp_data.h */, + 5AB8F16F214D564A00A1187F /* sc.c */, + 5AB8F17E214D564B00A1187F /* sc.h */, + 5AB8F17B214D564B00A1187F /* seed.c */, + 5AB8F172214D564B00A1187F /* sha512.c */, + 5AB8F170214D564A00A1187F /* sha512.h */, + 5AB8F17D214D564B00A1187F /* sign.c */, + 5AB8F177214D564B00A1187F /* verify.c */, + ); + name = ed25519; + path = ed25519/src; + sourceTree = ""; + }; + 5AB8F1A0214DA72000A1187F /* generate_keys */ = { + isa = PBXGroup; + children = ( + 5AB8F1AB214DA8F200A1187F /* Bridging-Header.h */, + 5AB8F1A1214DA72000A1187F /* main.swift */, + ); + path = generate_keys; + sourceTree = ""; + }; + 5AF04874214D2E2800B5789F /* Signatures */ = { + isa = PBXGroup; + children = ( + 5AF04875214D2E5F00B5789F /* SUSignatures.h */, + 5AF04876214D2E5F00B5789F /* SUSignatures.m */, + ); + name = Signatures; + sourceTree = ""; + }; 5D06E8D90FD68C95005AE3F6 /* Binary Delta */ = { isa = PBXGroup; children = ( @@ -1301,7 +1516,6 @@ 61B5F91D09C4CF7F00B25A18 /* Test Application */ = { isa = PBXGroup; children = ( - 72E45DDC1B65C3BD005C701A /* sign_update */, 61B5F92A09C4CFD800B25A18 /* InfoPlist.strings */, 61B5F92409C4CFC900B25A18 /* main.m */, 61B5F92C09C4CFD800B25A18 /* MainMenu.xib */, @@ -1313,8 +1527,6 @@ 72E45CF41B640DAE005C701A /* SUUpdateSettingsWindowController.h */, 72E45CF51B640DAE005C701A /* SUUpdateSettingsWindowController.m */, 72E45CF61B640DAE005C701A /* SUUpdateSettingsWindowController.xib */, - 72E45CFD1B641D0D005C701A /* test_app_only_dsa_priv_dont_ever_do_this_for_real.pem */, - 14732BBF1960F0AC00593899 /* test_app_only_dsa_pub.pem */, 61B5F90409C4CEE200B25A18 /* TestApplication-Info.plist */, ); name = "Test Application"; @@ -1326,8 +1538,8 @@ children = ( 61B078CC15A5FB6100600039 /* SUCodeSigningVerifier.h */, 61B078CD15A5FB6100600039 /* SUCodeSigningVerifier.m */, - 61299A2D09CA2DAB00B7442F /* SUDSAVerifier.h */, - 61299A2E09CA2DAB00B7442F /* SUDSAVerifier.m */, + 61299A2D09CA2DAB00B7442F /* SUSignatureVerifier.h */, + 61299A2E09CA2DAB00B7442F /* SUSignatureVerifier.m */, 729924711DF3478A00DBCDF5 /* SUUpdateValidator.h */, 729924721DF3478A00DBCDF5 /* SUUpdateValidator.m */, ); @@ -1379,19 +1591,22 @@ path = ../../fileop; sourceTree = ""; }; - 726B2B5E1C645FC900388755 /* UI Tests */ = { + 726B2B5E1C645FC900388755 /* UITests */ = { isa = PBXGroup; children = ( 720B16431C66433D006985FB /* SUTestApplicationTest.swift */, 720B16421C66433D006985FB /* UITests-Info.plist */, ); - path = "UI Tests"; + path = UITests; sourceTree = ""; }; FA1941C40D94A6EA00DD942E /* Configurations */ = { isa = PBXGroup; children = ( 14732BB1195FF6B700593899 /* .clang-format */, + EA4311FA229D656700A5503D /* bsdiff-Debug.xcconfig */, + EA4311FB229D657A00A5503D /* bsdiff-Release.xcconfig */, + EA4311F9229D655E00A5503D /* bsdiff-Shared.xcconfig */, 5D06E8F10FD68D21005AE3F6 /* ConfigBinaryDelta.xcconfig */, 5D06E8F20FD68D21005AE3F6 /* ConfigBinaryDeltaDebug.xcconfig */, 5D06E8F30FD68D21005AE3F6 /* ConfigBinaryDeltaRelease.xcconfig */, @@ -1406,6 +1621,9 @@ 7205C4331E12C23C00E370AE /* ConfigGenerateAppcast.xcconfig */, 7205C4351E12CA7000E370AE /* ConfigGenerateAppcastDebug.xcconfig */, 7205C4341E12C66D00E370AE /* ConfigGenerateAppcastRelease.xcconfig */, + 5AB8F1A8214DA85900A1187F /* ConfigGenerateKeys.xcconfig */, + 5AB8F1AA214DA85900A1187F /* ConfigGenerateKeysDebug.xcconfig */, + 5AB8F1A9214DA85900A1187F /* ConfigGenerateKeysRelease.xcconfig */, FA1941CE0D94A70100DD942E /* ConfigRelaunch.xcconfig */, FA1941D30D94A70100DD942E /* ConfigRelaunchDebug.xcconfig */, FA1941D40D94A70100DD942E /* ConfigRelaunchRelease.xcconfig */, @@ -1423,6 +1641,9 @@ 149B78641B7D3A4800D7D62C /* ConfigUnitTestCoverage.xcconfig */, FA3AAF3A1050B273004B3130 /* ConfigUnitTestDebug.xcconfig */, FA3AAF391050B273004B3130 /* ConfigUnitTestRelease.xcconfig */, + EA4311C9229D614300A5503D /* ed25519-Debug.xcconfig */, + EA4311C8229D613B00A5503D /* ed25519-Release.xcconfig */, + EA4311C7229D612A00A5503D /* ed25519-Shared.xcconfig */, 14732BC91960F70A00593899 /* make-release-package.sh */, 14652F7919A93E5F00959E44 /* set-git-version-info.sh */, 146EC84E19A68CF8004A50C5 /* Sparkle.podspec */, @@ -1439,27 +1660,36 @@ files = ( 723B25301CEAB3A600909873 /* bscommon.h in Headers */, 611142E910FB1BE5009810AA /* bspatch.h in Headers */, + 5AB8F185214D564C00A1187F /* ed25519.h in Headers */, + 5AB8F184214D564C00A1187F /* fe.h in Headers */, + 5AB8F18A214D564C00A1187F /* fixedint.h in Headers */, + 5AB8F18B214D564C00A1187F /* ge.h in Headers */, + 5AB8F187214D564C00A1187F /* precomp_data.h in Headers */, + 5AB8F18F214D564C00A1187F /* sc.h in Headers */, + 5AB8F181214D564C00A1187F /* sha512.h in Headers */, 61299B3609CB04E000B7442F /* Sparkle.h in Headers */, + 34074B9F1FEABD5A001CB3A5 /* SPUDownloadData.h in Headers */, + 34074B911FEABD08001CB3A5 /* SPUDownloader.h in Headers */, + 34074B921FEABD08001CB3A5 /* SPUDownloaderDelegate.h in Headers */, + 34074BA71FEAC417001CB3A5 /* SPUDownloaderDeprecated.h in Headers */, + 34074B931FEABD08001CB3A5 /* SPUDownloaderProtocol.h in Headers */, + 34074BA21FEABFD2001CB3A5 /* SPUDownloaderSession.h in Headers */, + 34074B961FEABD24001CB3A5 /* SPULocalCacheDirectory.h in Headers */, + 34074B9B1FEABD49001CB3A5 /* SPUURLRequest.h in Headers */, 61B5FC0D09C4FC8200B25A18 /* SUAppcast.h in Headers */, 61B5FC7009C51F4A00B25A18 /* SUAppcastItem.h in Headers */, - 34074BA71FEAC417001CB3A5 /* SPUDownloaderDeprecated.h in Headers */, 72316BDE1E0E17910039EFD9 /* SUApplicationInfo.h in Headers */, 6120721209CC5C4B007FE0F6 /* SUAutomaticUpdateAlert.h in Headers */, - 34074B921FEABD08001CB3A5 /* SPUDownloaderDelegate.h in Headers */, - 34074B961FEABD24001CB3A5 /* SPULocalCacheDirectory.h in Headers */, 61B93B270DD0FDD300DCD2F8 /* SUAutomaticUpdateDriver.h in Headers */, 61F83F740DBFE141006FDD30 /* SUBasicUpdateDriver.h in Headers */, 5D06E9390FD69271005AE3F6 /* SUBinaryDeltaUnarchiver.h in Headers */, 72316BD91E0E17180039EFD9 /* SUBundleIcon.h in Headers */, + 61B078CE15A5FB6100600039 /* SUCodeSigningVerifier.h in Headers */, 61299A5C09CA6D4500B7442F /* SUConstants.h in Headers */, 6102FE4A0E07803800F85D09 /* SUDiskImageUnarchiver.h in Headers */, - 61B078CE15A5FB6100600039 /* SUCodeSigningVerifier.h in Headers */, - 61299A2F09CA2DAB00B7442F /* SUDSAVerifier.h in Headers */, - 34074B9F1FEABD5A001CB3A5 /* SPUDownloadData.h in Headers */, 55E6F33319EC9F6C00005E76 /* SUErrors.h in Headers */, 14652F8419A978C200959E44 /* SUExport.h in Headers */, 7275F9C11B5F1F2900B1D19E /* SUFileManager.h in Headers */, - 34074B911FEABD08001CB3A5 /* SPUDownloader.h in Headers */, 722954C41D04E66F00ECF9CA /* SUFileOperationConstants.h in Headers */, 767B61AC1972D488004E0C3C /* SUGuidedPackageInstaller.h in Headers */, 61EF67590E25C5B400F754E0 /* SUHost.h in Headers */, @@ -1472,18 +1702,18 @@ 618FA5050DAE8AB80026945C /* SUPlainInstaller.h in Headers */, 6101347B0DD2541A0049ACDF /* SUProbingUpdateDriver.h in Headers */, 61B93C090DD112FF00DCD2F8 /* SUScheduledUpdateDriver.h in Headers */, + 5AF04877214D2E5F00B5789F /* SUSignatures.h in Headers */, + 61299A2F09CA2DAB00B7442F /* SUSignatureVerifier.h in Headers */, 61A225A40D1C4AC000430CCD /* SUStandardVersionComparator.h in Headers */, 6196CFF909C72148000DC222 /* SUStatusController.h in Headers */, 61A2279C0D1CEE7600430CCD /* SUSystemProfiler.h in Headers */, 72316BE31E0E1C7F0039EFD9 /* SUSystemUpdateInfo.h in Headers */, E1545EC51E1D7E0200FAECE8 /* SUTouchBarButtonGroup.h in Headers */, 61B93A3C0DD02D7000DCD2F8 /* SUUIBasedUpdateDriver.h in Headers */, - 34074B931FEABD08001CB3A5 /* SPUDownloaderProtocol.h in Headers */, 61299A8D09CA790200B7442F /* SUUnarchiver.h in Headers */, 722589DA1E0B19F4005EA0B9 /* SUUnarchiverNotifier.h in Headers */, 722589D71E0AD86B005EA0B9 /* SUUnarchiverProtocol.h in Headers */, 61B5FCDF09C52A9F00B25A18 /* SUUpdateAlert.h in Headers */, - 34074B9B1FEABD49001CB3A5 /* SPUURLRequest.h in Headers */, 610134730DD250470049ACDF /* SUUpdateDriver.h in Headers */, 612DCBAF0D488BC60015DBEA /* SUUpdatePermissionPrompt.h in Headers */, 7205C4311E1215AD00E370AE /* SUUpdatePermissionResponse.h in Headers */, @@ -1494,7 +1724,6 @@ 61A354550DF113C70076ECB1 /* SUUserInitiatedUpdateDriver.h in Headers */, 61A2259E0D1C495D00430CCD /* SUVersionComparisonProtocol.h in Headers */, 3772FEA913DE0B6B00F79537 /* SUVersionDisplayProtocol.h in Headers */, - 34074BA21FEABFD2001CB3A5 /* SPUDownloaderSession.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1524,6 +1753,8 @@ buildToolPath = bash; buildWorkingDirectory = ""; dependencies = ( + 5A5ADEEC214EE65C00DF0099 /* PBXTargetDependency */, + 5A5ADEEA214EE65A00DF0099 /* PBXTargetDependency */, 5AE13FA81E0D7E1C000D2C2C /* PBXTargetDependency */, 14732BCB1960F73500593899 /* PBXTargetDependency */, 1454BA1619637EDB00344E57 /* PBXTargetDependency */, @@ -1557,6 +1788,22 @@ productReference = 55C14BB7136EEF1500649790 /* Autoupdate.app */; productType = "com.apple.product-type.application"; }; + 5A5ADED6214EDE4900DF0099 /* sign_update */ = { + isa = PBXNativeTarget; + buildConfigurationList = 5A5ADEDB214EDE4900DF0099 /* Build configuration list for PBXNativeTarget "sign_update" */; + buildPhases = ( + 5A5ADED3214EDE4900DF0099 /* Sources */, + 5A5ADED4214EDE4900DF0099 /* Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = sign_update; + productName = sign_update; + productReference = 5A5ADED7214EDE4900DF0099 /* sign_update */; + productType = "com.apple.product-type.tool"; + }; 5AA96C541E0AE0DB00CA4346 /* generate_appcast */ = { isa = PBXNativeTarget; buildConfigurationList = 5AA96C5C1E0AE0DC00CA4346 /* Build configuration list for PBXNativeTarget "generate_appcast" */; @@ -1573,6 +1820,22 @@ productReference = 5AE13FB31E0D9E07000D2C2C /* generate_appcast */; productType = "com.apple.product-type.tool"; }; + 5AB8F19E214DA72000A1187F /* generate_keys */ = { + isa = PBXNativeTarget; + buildConfigurationList = 5AB8F1A3214DA72000A1187F /* Build configuration list for PBXNativeTarget "generate_keys" */; + buildPhases = ( + 5AB8F19B214DA72000A1187F /* Sources */, + 5AB8F19C214DA72000A1187F /* Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = generate_keys; + productName = generate_keys; + productReference = 5AB8F19F214DA72000A1187F /* generate_keys */; + productType = "com.apple.product-type.tool"; + }; 5D06E8CF0FD68C7C005AE3F6 /* BinaryDelta */ = { isa = PBXNativeTarget; buildConfigurationList = 5D06E8DA0FD68C95005AE3F6 /* Build configuration list for PBXNativeTarget "BinaryDelta" */; @@ -1634,7 +1897,6 @@ buildPhases = ( 722954B01D04ADAF00ECF9CA /* Sources */, 722954B11D04ADAF00ECF9CA /* Frameworks */, - 722954B21D04ADAF00ECF9CA /* CopyFiles */, ); buildRules = ( ); @@ -1687,6 +1949,40 @@ productReference = 8DC2EF5B0486A6940098B216 /* Sparkle.framework */; productType = "com.apple.product-type.framework"; }; + EA43119F229D5FBC00A5503D /* ed25519 */ = { + isa = PBXNativeTarget; + buildConfigurationList = EA4311A1229D5FBC00A5503D /* Build configuration list for PBXNativeTarget "ed25519" */; + buildPhases = ( + EA43119D229D5FBC00A5503D /* Sources */, + EA43119E229D5FBC00A5503D /* Frameworks */, + EA1E27FA22B60B54004AA304 /* Copy Headers */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = ed25519; + productName = ed25519; + productReference = EA4311A0229D5FBC00A5503D /* libed25519.a */; + productType = "com.apple.product-type.library.static"; + }; + EA4311E9229D651300A5503D /* bsdiff */ = { + isa = PBXNativeTarget; + buildConfigurationList = EA4311EB229D651300A5503D /* Build configuration list for PBXNativeTarget "bsdiff" */; + buildPhases = ( + EA4311E7229D651300A5503D /* Sources */, + EA4311E8229D651300A5503D /* Frameworks */, + EA1E27F622B60AFA004AA304 /* Copy Headers */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = bsdiff; + productName = bsdiff; + productReference = EA4311EA229D651300A5503D /* libbsdiff.a */; + productType = "com.apple.product-type.library.static"; + }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ @@ -1694,15 +1990,22 @@ isa = PBXProject; attributes = { CLASSPREFIX = SU; - LastSwiftUpdateCheck = 0800; + LastSwiftUpdateCheck = 1000; LastUpgradeCheck = 0920; ORGANIZATIONNAME = "Sparkle Project"; TargetAttributes = { + 5A5ADED6214EDE4900DF0099 = { + CreatedOnToolsVersion = 10.0; + ProvisioningStyle = Automatic; + }; 5AA96C541E0AE0DB00CA4346 = { CreatedOnToolsVersion = 8.0; LastSwiftMigration = 0900; ProvisioningStyle = Automatic; }; + 5AB8F19E214DA72000A1187F = { + ProvisioningStyle = Automatic; + }; 612279D80DB5470200AB99EA = { LastSwiftMigration = 0900; TestTargetID = 8DC2EF4F0486A6940098B216; @@ -1718,18 +2021,19 @@ 8DC2EF4F0486A6940098B216 = { LastSwiftMigration = 0920; }; + EA43119F229D5FBC00A5503D = { + CreatedOnToolsVersion = 10.2.1; + }; + EA4311E9229D651300A5503D = { + CreatedOnToolsVersion = 10.2.1; + }; }; }; buildConfigurationList = 1DEB91B108733DA50010E9CD /* Build configuration list for PBXProject "Sparkle" */; compatibilityVersion = "Xcode 6.3"; - developmentRegion = English; + developmentRegion = en; hasScannedForEncodings = 1; knownRegions = ( - English, - Japanese, - French, - German, - Italian, zh_TW, en, ca, @@ -1771,6 +2075,7 @@ "fr-CA", "pt-PT", "pt-BR", + hr, ); mainGroup = 0867D691FE84028FC02AAC07 /* Sparkle */; productRefGroup = 034768DFFF38A50411DB9C8B /* Products */; @@ -1788,6 +2093,10 @@ 726B2B5C1C645FC900388755 /* UI Tests */, 722954B31D04ADAF00ECF9CA /* fileop */, 5AA96C541E0AE0DB00CA4346 /* generate_appcast */, + 5AB8F19E214DA72000A1187F /* generate_keys */, + 5A5ADED6214EDE4900DF0099 /* sign_update */, + EA4311E9229D651300A5503D /* bsdiff */, + EA43119F229D5FBC00A5503D /* ed25519 */, ); }; /* End PBXProject section */ @@ -1830,11 +2139,8 @@ 1420DF50196247F900203BB0 /* Images.xcassets in Resources */, 61B5F92E09C4CFD800B25A18 /* InfoPlist.strings in Resources */, 61B5F92F09C4CFD800B25A18 /* MainMenu.xib in Resources */, - 72E45DDD1B65C3BD005C701A /* sign_update in Resources */, 72E45CFC1B641961005C701A /* sparkletestcast.xml in Resources */, 72E45CF81B640DAE005C701A /* SUUpdateSettingsWindowController.xib in Resources */, - 72E45CFE1B641D0D005C701A /* test_app_only_dsa_priv_dont_ever_do_this_for_real.pem in Resources */, - 14732BC01960F2C200593899 /* test_app_only_dsa_pub.pem in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1849,6 +2155,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + E1D4DDF921C1C5F8003D32E7 /* DarkAqua.css in Resources */, 61AAE8280A321A7F00D8810D /* Sparkle.strings in Resources */, 55C14BEE136EF20D00649790 /* SUAutomaticUpdateAlert.xib in Resources */, 615AE3D00D64DC40001CA7BD /* SUModelTranslation.plist in Resources */, @@ -1867,6 +2174,7 @@ files = ( ); inputPaths = ( + $BUILT_PRODUCTS_DIR/$INFOPLIST_PATH, ); name = "Run Script: Set Git Version Info"; outputPaths = ( @@ -1882,6 +2190,7 @@ files = ( ); inputPaths = ( + $BUILT_PRODUCTS_DIR/$INFOPLIST_PATH, ); name = "Run Script: Set Git Version Info"; outputPaths = ( @@ -1946,6 +2255,7 @@ 726F2CE71BC9C3E2001971A4 /* SUOperatingSystem.m in Sources */, 55C14F24136EF86F00649790 /* SUPackageInstaller.m in Sources */, 55C14F21136EF84D00649790 /* SUPlainInstaller.m in Sources */, + 5AB8F169214D4AE300A1187F /* SUSignatures.m in Sources */, 55C14F22136EF86000649790 /* SUStandardVersionComparator.m in Sources */, 55C14F20136EF84300649790 /* SUStatusController.m in Sources */, 55C14F23136EF86700649790 /* SUSystemProfiler.m in Sources */, @@ -1954,19 +2264,23 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 5A5ADED3214EDE4900DF0099 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 5A5ADEDA214EDE4900DF0099 /* main.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 5AA96C511E0AE0DB00CA4346 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 5AE13FA01E0D4F65000D2C2C /* Appcast.swift in Sources */, 5AAD00521E0BE6BE00AF411E /* ArchiveItem.swift in Sources */, - 5AAD00681E0C2DAB00AF411E /* bscommon.c in Sources */, - 5AAD00691E0C2DAB00AF411E /* bsdiff.c in Sources */, - 5AE13FBB1E0DA391000D2C2C /* bspatch.c in Sources */, - 5AE13F781E0C9B12000D2C2C /* DSASignature.swift in Sources */, 5A5AC5381E0C6D3000998119 /* FeedXML.swift in Sources */, 5AA96C581E0AE0DB00CA4346 /* main.swift in Sources */, - 5AAD006A1E0C2DB500AF411E /* sais.c in Sources */, + 5AE13F781E0C9B12000D2C2C /* Signatures.swift in Sources */, 5AE13FBA1E0DA389000D2C2C /* SUBinaryDeltaApply.m in Sources */, 5AAD00661E0C2D9B00AF411E /* SUBinaryDeltaCommon.m in Sources */, 5AAD00671E0C2D9B00AF411E /* SUBinaryDeltaCreate.m in Sources */, @@ -1985,14 +2299,18 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 5AB8F19B214DA72000A1187F /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 5AB8F1A2214DA72000A1187F /* main.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 5D06E8CD0FD68C7C005AE3F6 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 723B252F1CEAB3A600909873 /* bscommon.c in Sources */, - 5D06E8E90FD68CDB005AE3F6 /* bsdiff.c in Sources */, - 14652F7E19A9728A00959E44 /* bspatch.c in Sources */, - 7223E7631AD1AEFF008E3161 /* sais.c in Sources */, 14652F7D19A9726700959E44 /* SUBinaryDeltaApply.m in Sources */, 14652F7C19A9725300959E44 /* SUBinaryDeltaCommon.m in Sources */, 7268AC631AD634C200C3E0C1 /* SUBinaryDeltaCreate.m in Sources */, @@ -2008,12 +2326,8 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 723B252E1CEAB3A600909873 /* bscommon.c in Sources */, - 721CF1A71AD7643600D9AC09 /* bsdiff.c in Sources */, - 721CF1A81AD7644100D9AC09 /* bspatch.c in Sources */, - 721CF1A91AD7644C00D9AC09 /* sais.c in Sources */, - 5A4094481C74EA5200983BE0 /* SUAppcastTest.swift in Sources */, 342731481FF58E5B00285FBD /* SPUDownloaderTest.swift in Sources */, + 5A4094481C74EA5200983BE0 /* SUAppcastTest.swift in Sources */, 72D4DAA11AD7632900B211E2 /* SUBinaryDeltaCreate.m in Sources */, 142E0E0919A83AAC00E4312B /* SUBinaryDeltaTest.m in Sources */, F8761EB11ADC5068000C9034 /* SUCodeSigningVerifierTest.m in Sources */, @@ -2067,9 +2381,12 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 723B252D1CEAB3A600909873 /* bscommon.c in Sources */, 34074B9E1FEABD5A001CB3A5 /* SPUDownloadData.m in Sources */, - 5D06E8EB0FD68CE4005AE3F6 /* bspatch.c in Sources */, + 34074B901FEABD08001CB3A5 /* SPUDownloader.m in Sources */, + 34074BA81FEAC417001CB3A5 /* SPUDownloaderDeprecated.m in Sources */, + 34074BA31FEABFD2001CB3A5 /* SPUDownloaderSession.m in Sources */, + 34074B971FEABD24001CB3A5 /* SPULocalCacheDirectory.m in Sources */, + 34074B9A1FEABD49001CB3A5 /* SPUURLRequest.m in Sources */, 61B5FBB709C4FAFF00B25A18 /* SUAppcast.m in Sources */, 61B5FC6F09C51F4900B25A18 /* SUAppcastItem.m in Sources */, 72316BDF1E0E17910039EFD9 /* SUApplicationInfo.m in Sources */, @@ -2077,21 +2394,17 @@ 61B93B280DD0FDD300DCD2F8 /* SUAutomaticUpdateDriver.m in Sources */, 61F83F720DBFE140006FDD30 /* SUBasicUpdateDriver.m in Sources */, 5D06E8EC0FD68CE4005AE3F6 /* SUBinaryDeltaApply.m in Sources */, - 34074B971FEABD24001CB3A5 /* SPULocalCacheDirectory.m in Sources */, 5D06E8ED0FD68CE4005AE3F6 /* SUBinaryDeltaCommon.m in Sources */, - 34074BA31FEABFD2001CB3A5 /* SPUDownloaderSession.m in Sources */, 5D06E93A0FD69271005AE3F6 /* SUBinaryDeltaUnarchiver.m in Sources */, 72316BDA1E0E17180039EFD9 /* SUBundleIcon.m in Sources */, 61B078CF15A5FB6100600039 /* SUCodeSigningVerifier.m in Sources */, 61299A6009CA6EB100B7442F /* SUConstants.m in Sources */, 6102FE4B0E07803800F85D09 /* SUDiskImageUnarchiver.m in Sources */, - 61299A3009CA2DAB00B7442F /* SUDSAVerifier.m in Sources */, 7275F9C21B5F1F2900B1D19E /* SUFileManager.m in Sources */, 722954C51D04E66F00ECF9CA /* SUFileOperationConstants.m in Sources */, 767B61AD1972D488004E0C3C /* SUGuidedPackageInstaller.m in Sources */, 61EF67560E25B58D00F754E0 /* SUHost.m in Sources */, 618FA5020DAE88B40026945C /* SUInstaller.m in Sources */, - 34074B901FEABD08001CB3A5 /* SPUDownloader.m in Sources */, 55C14F07136EF6DB00649790 /* SULog.m in Sources */, 726F2CE61BC9C33D001971A4 /* SUOperatingSystem.m in Sources */, 618FA5230DAE8E8A0026945C /* SUPackageInstaller.m in Sources */, @@ -2099,12 +2412,12 @@ 618FA5060DAE8AB80026945C /* SUPlainInstaller.m in Sources */, 6101347C0DD2541A0049ACDF /* SUProbingUpdateDriver.m in Sources */, 61B93C0A0DD112FF00DCD2F8 /* SUScheduledUpdateDriver.m in Sources */, - 34074BA81FEAC417001CB3A5 /* SPUDownloaderDeprecated.m in Sources */, + 5AF04878214D2E5F00B5789F /* SUSignatures.m in Sources */, + 61299A3009CA2DAB00B7442F /* SUSignatureVerifier.m in Sources */, 61A225A50D1C4AC000430CCD /* SUStandardVersionComparator.m in Sources */, 6196CFFA09C72149000DC222 /* SUStatusController.m in Sources */, 61A2279D0D1CEE7600430CCD /* SUSystemProfiler.m in Sources */, 72316BE41E0E1C7F0039EFD9 /* SUSystemUpdateInfo.m in Sources */, - 34074B9A1FEABD49001CB3A5 /* SPUURLRequest.m in Sources */, E1545EC61E1D7E0200FAECE8 /* SUTouchBarButtonGroup.m in Sources */, 61B93A3D0DD02D7000DCD2F8 /* SUUIBasedUpdateDriver.m in Sources */, 61299A8E09CA790200B7442F /* SUUnarchiver.m in Sources */, @@ -2119,6 +2432,44 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + EA43119D229D5FBC00A5503D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + EA4311A5229D5FC600A5503D /* add_scalar.c in Sources */, + EA4311A6229D5FC600A5503D /* ed25519.h in Sources */, + EA4311A7229D5FC600A5503D /* fe.c in Sources */, + EA4311A8229D5FC600A5503D /* fe.h in Sources */, + EA4311A9229D5FC600A5503D /* fixedint.h in Sources */, + EA4311AA229D5FC600A5503D /* ge.c in Sources */, + EA4311AB229D5FC600A5503D /* ge.h in Sources */, + EA4311AC229D5FC600A5503D /* key_exchange.c in Sources */, + EA4311AD229D5FC600A5503D /* keypair.c in Sources */, + EA4311AE229D5FC600A5503D /* precomp_data.h in Sources */, + EA4311AF229D5FC600A5503D /* sc.c in Sources */, + EA4311B0229D5FC600A5503D /* sc.h in Sources */, + EA4311B1229D5FC600A5503D /* seed.c in Sources */, + EA4311B2229D5FC600A5503D /* sha512.c in Sources */, + EA4311B3229D5FC600A5503D /* sha512.h in Sources */, + EA4311B4229D5FC600A5503D /* sign.c in Sources */, + EA4311B5229D5FC600A5503D /* verify.c in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + EA4311E7229D651300A5503D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + EA4311EF229D651F00A5503D /* bscommon.c in Sources */, + EA4311F0229D651F00A5503D /* bscommon.h in Sources */, + EA4311F1229D651F00A5503D /* bsdiff.c in Sources */, + EA4311F2229D651F00A5503D /* bspatch.c in Sources */, + EA4311F3229D651F00A5503D /* bspatch.h in Sources */, + EA4311F4229D651F00A5503D /* sais.c in Sources */, + EA4311F5229D651F00A5503D /* sais.h in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ @@ -2172,6 +2523,26 @@ target = 55C14BB6136EEF1500649790 /* Autoupdate */; targetProxy = 55C14F96136F044100649790 /* PBXContainerItemProxy */; }; + 5A5ADEEA214EE65A00DF0099 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 5AB8F19E214DA72000A1187F /* generate_keys */; + targetProxy = 5A5ADEE9214EE65A00DF0099 /* PBXContainerItemProxy */; + }; + 5A5ADEEC214EE65C00DF0099 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 5A5ADED6214EDE4900DF0099 /* sign_update */; + targetProxy = 5A5ADEEB214EE65C00DF0099 /* PBXContainerItemProxy */; + }; + 5A5ADEEE214EE66E00DF0099 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 5AB8F19E214DA72000A1187F /* generate_keys */; + targetProxy = 5A5ADEED214EE66E00DF0099 /* PBXContainerItemProxy */; + }; + 5A5ADEF0214EE67100DF0099 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 5A5ADED6214EDE4900DF0099 /* sign_update */; + targetProxy = 5A5ADEEF214EE67100DF0099 /* PBXContainerItemProxy */; + }; 5AE13FA81E0D7E1C000D2C2C /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 5AA96C541E0AE0DB00CA4346 /* generate_appcast */; @@ -2220,7 +2591,10 @@ 555CF29B196C523E0000B31E /* el */, 55C14BDE136EF20D00649790 /* en */, 55C14BDF136EF20D00649790 /* es */, + 55BACC1920AF2C6D00ECEBB6 /* fi */, 55C14BE0136EF20D00649790 /* fr */, + 26B1A4662195FFE900B09783 /* hr */, + 0A8DAD74207FA6F300FFD934 /* hu */, 55C14BE1136EF20D00649790 /* is */, 55C14BE2136EF20D00649790 /* it */, 55C14BE3136EF20D00649790 /* ja */, @@ -2240,7 +2614,6 @@ 0263187514FEBB42005EBF43 /* uk */, 55C14BEC136EF20D00649790 /* zh_CN */, 55C14BED136EF20D00649790 /* zh_TW */, - 0A8DAD74207FA6F300FFD934 /* hu */, ); name = SUAutomaticUpdateAlert.xib; sourceTree = ""; @@ -2255,7 +2628,10 @@ 555CF29C196C52460000B31E /* el */, 55C14BF4136EF26100649790 /* en */, 55C14BF5136EF26100649790 /* es */, + 55BACC1820AF2C5B00ECEBB6 /* fi */, 55C14BF6136EF26100649790 /* fr */, + 26B1A4672195FFE900B09783 /* hr */, + 0A8DAD75207FA6F300FFD934 /* hu */, 55C14BF7136EF26100649790 /* is */, 55C14BF8136EF26100649790 /* it */, 55C14BF9136EF26100649790 /* ja */, @@ -2275,7 +2651,6 @@ 0263187614FEBB42005EBF43 /* uk */, 55C14C02136EF26100649790 /* zh_CN */, 55C14C03136EF26100649790 /* zh_TW */, - 0A8DAD75207FA6F300FFD934 /* hu */, ); name = SUUpdateAlert.xib; sourceTree = ""; @@ -2290,7 +2665,10 @@ 555CF29D196C524C0000B31E /* el */, 55C14C09136EF2C700649790 /* en */, 55C14C0A136EF2C700649790 /* es */, + 55BACC1A20AF2C7D00ECEBB6 /* fi */, 55C14C0B136EF2C700649790 /* fr */, + 26B1A4682195FFE900B09783 /* hr */, + 0A8DAD76207FA6F400FFD934 /* hu */, 55C14C0C136EF2C700649790 /* is */, 55C14C0D136EF2C700649790 /* it */, 55C14C0E136EF2C700649790 /* ja */, @@ -2310,7 +2688,6 @@ 0263187714FEBB42005EBF43 /* uk */, 55C14C17136EF2C700649790 /* zh_CN */, 55C14C18136EF2C700649790 /* zh_TW */, - 0A8DAD76207FA6F400FFD934 /* hu */, ); name = SUUpdatePermissionPrompt.xib; sourceTree = ""; @@ -2329,6 +2706,8 @@ 147D6DA91B66EC22006607AB /* fi */, 61AAE8590A321B0400D8810D /* fr */, 147D6DAA1B66EC25006607AB /* he */, + 26B1A4652195FFE900B09783 /* hr */, + 0A8DAD73207FA6F300FFD934 /* hu */, 613151B20FB4946A000DCD59 /* is */, 61F614540E24A12D009F47E7 /* it */, 611A904610240DF700CC659E /* ja */, @@ -2348,7 +2727,6 @@ 0263187214FEBB31005EBF43 /* uk */, 61131A090F846D0A00E97AF6 /* zh_CN */, 61131A0A0F846D1100E97AF6 /* zh_TW */, - 0A8DAD73207FA6F300FFD934 /* hu */, ); name = Sparkle.strings; sourceTree = ""; @@ -2363,12 +2741,14 @@ 1A985A3A1C5C32A50001163A /* da */, 1A985A341C5C329E0001163A /* de */, 1A985A531C5C32BD0001163A /* el */, - 61B5F92B09C4CFD800B25A18 /* English */, + 5FA8757822C7A12C00FC6A2F /* en */, 1A985A3B1C5C32A60001163A /* es */, 1A985A3C1C5C32A70001163A /* fi */, 1A985A331C5C329D0001163A /* fr */, 1A985A4B1C5C32B60001163A /* fr-CA */, 1A985A3D1C5C32A80001163A /* he */, + 26B1A4692195FFE900B09783 /* hr */, + 0A8DAD77207FA6F400FFD934 /* hu */, 1A985A3F1C5C32AA0001163A /* id */, 1A985A401C5C32AA0001163A /* is */, 1A985A361C5C32A20001163A /* it */, @@ -2390,7 +2770,6 @@ 1A985A511C5C32BB0001163A /* uk */, 1A985A4A1C5C32B50001163A /* zh-Hans */, 1A985A351C5C329E0001163A /* zh-Hant */, - 0A8DAD77207FA6F400FFD934 /* hu */, ); name = InfoPlist.strings; sourceTree = ""; @@ -2398,7 +2777,7 @@ 61B5F92C09C4CFD800B25A18 /* MainMenu.xib */ = { isa = PBXVariantGroup; children = ( - 61B5F92D09C4CFD800B25A18 /* English */, + 5FA8757922C7A12C00FC6A2F /* en */, ); name = MainMenu.xib; sourceTree = ""; @@ -2559,10 +2938,42 @@ }; name = Release; }; + 5A5ADEDC214EDE4900DF0099 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 5AB8F1AA214DA85900A1187F /* ConfigGenerateKeysDebug.xcconfig */; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 4.2; + }; + name = Debug; + }; + 5A5ADEDD214EDE4900DF0099 /* Coverage */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 5AB8F1AA214DA85900A1187F /* ConfigGenerateKeysDebug.xcconfig */; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.2; + }; + name = Coverage; + }; + 5A5ADEDE214EDE4900DF0099 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 5AB8F1A9214DA85900A1187F /* ConfigGenerateKeysRelease.xcconfig */; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.2; + }; + name = Release; + }; 5AA96C591E0AE0DC00CA4346 /* Debug */ = { isa = XCBuildConfiguration; baseConfigurationReference = 7205C4351E12CA7000E370AE /* ConfigGenerateAppcastDebug.xcconfig */; buildSettings = { + CODE_SIGN_STYLE = Automatic; }; name = Debug; }; @@ -2570,6 +2981,7 @@ isa = XCBuildConfiguration; baseConfigurationReference = 7205C4351E12CA7000E370AE /* ConfigGenerateAppcastDebug.xcconfig */; buildSettings = { + CODE_SIGN_STYLE = Automatic; }; name = Coverage; }; @@ -2577,6 +2989,40 @@ isa = XCBuildConfiguration; baseConfigurationReference = 7205C4341E12C66D00E370AE /* ConfigGenerateAppcastRelease.xcconfig */; buildSettings = { + CODE_SIGN_STYLE = Automatic; + }; + name = Release; + }; + 5AB8F1A4214DA72000A1187F /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 5AB8F1AA214DA85900A1187F /* ConfigGenerateKeysDebug.xcconfig */; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = macosx; + SWIFT_VERSION = 4.2; + }; + name = Debug; + }; + 5AB8F1A5214DA72000A1187F /* Coverage */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 5AB8F1AA214DA85900A1187F /* ConfigGenerateKeysDebug.xcconfig */; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = macosx; + SWIFT_VERSION = 4.2; + }; + name = Coverage; + }; + 5AB8F1A6214DA72000A1187F /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 5AB8F1A9214DA85900A1187F /* ConfigGenerateKeysRelease.xcconfig */; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = macosx; + SWIFT_VERSION = 4.2; }; name = Release; }; @@ -2670,6 +3116,48 @@ }; name = Release; }; + EA4311A2229D5FBC00A5503D /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = EA4311C9229D614300A5503D /* ed25519-Debug.xcconfig */; + buildSettings = { + }; + name = Debug; + }; + EA4311A3229D5FBC00A5503D /* Coverage */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = EA4311C9229D614300A5503D /* ed25519-Debug.xcconfig */; + buildSettings = { + }; + name = Coverage; + }; + EA4311A4229D5FBC00A5503D /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = EA4311C8229D613B00A5503D /* ed25519-Release.xcconfig */; + buildSettings = { + }; + name = Release; + }; + EA4311EC229D651300A5503D /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = EA4311FA229D656700A5503D /* bsdiff-Debug.xcconfig */; + buildSettings = { + }; + name = Debug; + }; + EA4311ED229D651300A5503D /* Coverage */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = EA4311FA229D656700A5503D /* bsdiff-Debug.xcconfig */; + buildSettings = { + }; + name = Coverage; + }; + EA4311EE229D651300A5503D /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = EA4311FB229D657A00A5503D /* bsdiff-Release.xcconfig */; + buildSettings = { + }; + name = Release; + }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ @@ -2733,6 +3221,16 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; + 5A5ADEDB214EDE4900DF0099 /* Build configuration list for PBXNativeTarget "sign_update" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 5A5ADEDC214EDE4900DF0099 /* Debug */, + 5A5ADEDD214EDE4900DF0099 /* Coverage */, + 5A5ADEDE214EDE4900DF0099 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; 5AA96C5C1E0AE0DC00CA4346 /* Build configuration list for PBXNativeTarget "generate_appcast" */ = { isa = XCConfigurationList; buildConfigurations = ( @@ -2743,6 +3241,16 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; + 5AB8F1A3214DA72000A1187F /* Build configuration list for PBXNativeTarget "generate_keys" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 5AB8F1A4214DA72000A1187F /* Debug */, + 5AB8F1A5214DA72000A1187F /* Coverage */, + 5AB8F1A6214DA72000A1187F /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; 5D06E8DA0FD68C95005AE3F6 /* Build configuration list for PBXNativeTarget "BinaryDelta" */ = { isa = XCConfigurationList; buildConfigurations = ( @@ -2793,6 +3301,26 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; + EA4311A1229D5FBC00A5503D /* Build configuration list for PBXNativeTarget "ed25519" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + EA4311A2229D5FBC00A5503D /* Debug */, + EA4311A3229D5FBC00A5503D /* Coverage */, + EA4311A4229D5FBC00A5503D /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + EA4311EB229D651300A5503D /* Build configuration list for PBXNativeTarget "bsdiff" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + EA4311EC229D651300A5503D /* Debug */, + EA4311ED229D651300A5503D /* Coverage */, + EA4311EE229D651300A5503D /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; /* End XCConfigurationList section */ }; rootObject = 0867D690FE84028FC02AAC07 /* Project object */; diff --git a/Sparkle/Autoupdate/Autoupdate.m b/Sparkle/Autoupdate/Autoupdate.m index 44cf3a59..ea4083f8 100644 --- a/Sparkle/Autoupdate/Autoupdate.m +++ b/Sparkle/Autoupdate/Autoupdate.m @@ -232,7 +232,7 @@ int main(int __unused argc, const char __unused *argv[]) { @autoreleasepool { - NSArray *args = [[NSProcessInfo processInfo] arguments]; + NSArray *args = [[NSProcessInfo processInfo] arguments]; if (args.count < 5 || args.count > 7) { return EXIT_FAILURE; } diff --git a/Sparkle/DarkAqua.css b/Sparkle/DarkAqua.css new file mode 100644 index 00000000..a41e0f28 --- /dev/null +++ b/Sparkle/DarkAqua.css @@ -0,0 +1,9 @@ +html { + color: #FFFFFFD8; +} +:link { + color: #419CFF; +} +:link:active { + color: #FF1919; +} diff --git a/Sparkle/SPUDownloadData.m b/Sparkle/SPUDownloadData.m index e769dd50..ecef8338 100644 --- a/Sparkle/SPUDownloadData.m +++ b/Sparkle/SPUDownloadData.m @@ -8,6 +8,7 @@ #import "SPUDownloadData.h" +#import "SUOperatingSystem.h" #include "AppKitPrevention.h" @@ -52,7 +53,9 @@ static NSString *SPUDownloadMIMETypeKey = @"SPUDownloadMIMEType"; - (nullable instancetype)initWithCoder:(NSCoder *)decoder { - if (@available(macOS 10.8, *)) { + if (SUAVAILABLE(10, 8)) { +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunguarded-availability" NSData *data = [decoder decodeObjectOfClass:[NSData class] forKey:SPUDownloadDataKey]; if (data == nil) { return nil; @@ -61,6 +64,7 @@ static NSString *SPUDownloadMIMETypeKey = @"SPUDownloadMIMEType"; NSString *textEncodingName = [decoder decodeObjectOfClass:[NSString class] forKey:SPUDownloadTextEncodingKey]; NSString *MIMEType = [decoder decodeObjectOfClass:[NSString class] forKey:SPUDownloadMIMETypeKey]; +#pragma clang diagnostic pop return [self initWithData:data textEncodingName:textEncodingName MIMEType:MIMEType]; } else { diff --git a/Sparkle/SPUDownloaderDeprecated.m b/Sparkle/SPUDownloaderDeprecated.m index ae2a065c..94d23a50 100644 --- a/Sparkle/SPUDownloaderDeprecated.m +++ b/Sparkle/SPUDownloaderDeprecated.m @@ -117,6 +117,7 @@ - (void)downloadDidFinish:(NSURLDownload *)__unused d { [self downloadDidFinish]; + [self cleanup]; } - (void)download:(NSURLDownload *)__unused download didFailWithError:(NSError *)error diff --git a/Sparkle/SPUDownloaderSession.m b/Sparkle/SPUDownloaderSession.m index 219c4b22..4cc2331e 100644 --- a/Sparkle/SPUDownloaderSession.m +++ b/Sparkle/SPUDownloaderSession.m @@ -150,6 +150,7 @@ -(void)cleanup { [self.download cancel]; + [self.downloadSession invalidateAndCancel]; self.download = nil; self.downloadSession = nil; [super cleanup]; diff --git a/Sparkle/SPUURLRequest.m b/Sparkle/SPUURLRequest.m index fad9fcd5..b4866797 100644 --- a/Sparkle/SPUURLRequest.m +++ b/Sparkle/SPUURLRequest.m @@ -8,6 +8,7 @@ #import "SPUURLRequest.h" +#import "SUOperatingSystem.h" #include "AppKitPrevention.h" @@ -50,7 +51,7 @@ static NSString *SPUURLRequestNetworkServiceTypeKey = @"SPUURLRequestNetworkServ + (instancetype)URLRequestWithRequest:(NSURLRequest *)request { - return [[[self class] alloc] initWithURL:request.URL cachePolicy:request.cachePolicy timeoutInterval:request.timeoutInterval httpHeaderFields:request.allHTTPHeaderFields networkServiceType:request.networkServiceType]; + return [(SPUURLRequest *)[[self class] alloc] initWithURL:request.URL cachePolicy:request.cachePolicy timeoutInterval:request.timeoutInterval httpHeaderFields:request.allHTTPHeaderFields networkServiceType:request.networkServiceType]; } + (BOOL)supportsSecureCoding @@ -72,11 +73,14 @@ static NSString *SPUURLRequestNetworkServiceTypeKey = @"SPUURLRequestNetworkServ - (instancetype)initWithCoder:(NSCoder *)decoder { - if (@available(macOS 10.8, *)) { + if (SUAVAILABLE(10, 8)) { +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunguarded-availability" NSURL *url = [decoder decodeObjectOfClass:[NSURL class] forKey:SPUURLRequestURLKey]; NSURLRequestCachePolicy cachePolicy = (NSURLRequestCachePolicy)[decoder decodeIntegerForKey:SPUURLRequestCachePolicyKey]; NSTimeInterval timeoutInterval = [decoder decodeDoubleForKey:SPUURLRequestTimeoutIntervalKey]; NSDictionary *httpHeaderFields = [decoder decodeObjectOfClasses:[NSSet setWithArray:@[[NSDictionary class], [NSString class]]] forKey:SPUURLRequestHttpHeaderFieldsKey]; +#pragma clang diagnostic pop NSURLRequestNetworkServiceType networkServiceType = (NSURLRequestNetworkServiceType)[decoder decodeIntegerForKey:SPUURLRequestNetworkServiceTypeKey]; return [self initWithURL:url cachePolicy:cachePolicy timeoutInterval:timeoutInterval httpHeaderFields:httpHeaderFields networkServiceType:networkServiceType]; diff --git a/Sparkle/SUAppcast.h b/Sparkle/SUAppcast.h index f2f43389..34276b7d 100644 --- a/Sparkle/SUAppcast.h +++ b/Sparkle/SUAppcast.h @@ -22,12 +22,7 @@ NS_ASSUME_NONNULL_BEGIN SU_EXPORT @interface SUAppcast : NSObject @property (copy, nullable) NSString *userAgentString; - -#if __has_feature(objc_generics) @property (copy, nullable) NSDictionary *httpHeaders; -#else -@property (copy, nullable) NSDictionary *httpHeaders; -#endif - (void)fetchAppcastFromURL:(NSURL *)url inBackground:(BOOL)bg completionBlock:(void (^)(NSError *_Nullable))err; - (SUAppcast *)copyWithoutDeltaUpdates; diff --git a/Sparkle/SUAppcast.m b/Sparkle/SUAppcast.m index d63a023c..14aa3729 100644 --- a/Sparkle/SUAppcast.m +++ b/Sparkle/SUAppcast.m @@ -86,7 +86,7 @@ [request setValue:@"application/rss+xml,*/*;q=0.1" forHTTPHeaderField:@"Accept"]; - if ([SUOperatingSystem isOperatingSystemAtLeastVersion:(NSOperatingSystemVersion){10, 9, 0}]) { + if (SUAVAILABLE(10, 9)) { #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wunguarded-availability" self.download = [[SPUDownloaderSession alloc] initWithDelegate:self]; diff --git a/Sparkle/SUAppcastItem.h b/Sparkle/SUAppcastItem.h index 5c861ddd..1d8b1d01 100644 --- a/Sparkle/SUAppcastItem.h +++ b/Sparkle/SUAppcastItem.h @@ -15,13 +15,15 @@ #import #endif #import "SUExport.h" +@class SUSignatures; SU_EXPORT @interface SUAppcastItem : NSObject @property (copy, readonly) NSString *title; @property (copy, readonly) NSString *dateString; +@property (copy, readonly) NSDate *date; @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; @@ -31,6 +33,7 @@ SU_EXPORT @interface SUAppcastItem : NSObject @property (copy, readonly) NSString *displayVersionString; @property (copy, readonly) NSDictionary *deltaUpdates; @property (strong, readonly) NSURL *infoURL; +@property (copy, readonly) NSNumber* phasedRolloutInterval; // Initializes with data from a dictionary provided by the RSS class. - (instancetype)initWithDictionary:(NSDictionary *)dict; diff --git a/Sparkle/SUAppcastItem.m b/Sparkle/SUAppcastItem.m index c4293034..11b1043e 100644 --- a/Sparkle/SUAppcastItem.m +++ b/Sparkle/SUAppcastItem.m @@ -9,7 +9,7 @@ #import "SUAppcastItem.h" #import "SULog.h" #import "SUConstants.h" - +#import "SUSignatures.h" #include "AppKitPrevention.h" @@ -18,7 +18,7 @@ @property (copy, readwrite) NSString *dateString; @property (copy, readwrite) NSString *itemDescription; @property (strong, readwrite) NSURL *releaseNotesURL; -@property (copy, readwrite) NSString *DSASignature; +@property (strong, readwrite) SUSignatures *signatures; @property (copy, readwrite) NSString *minimumSystemVersion; @property (copy, readwrite) NSString *maximumSystemVersion; @property (strong, readwrite) NSURL *fileURL; @@ -28,13 +28,14 @@ @property (copy, readwrite) NSDictionary *deltaUpdates; @property (strong, readwrite) NSURL *infoURL; @property (readwrite, copy) NSDictionary *propertiesDictionary; +@property (copy, readwrite) NSNumber* phasedRolloutInterval; @end @implementation SUAppcastItem @synthesize dateString; @synthesize deltaUpdates; @synthesize displayVersionString; -@synthesize DSASignature; +@synthesize signatures; @synthesize fileURL; @synthesize contentLength = _contentLength; @synthesize infoURL; @@ -46,6 +47,7 @@ @synthesize versionString; @synthesize osString; @synthesize propertiesDictionary; +@synthesize phasedRolloutInterval; - (BOOL)isDeltaUpdate { @@ -55,7 +57,7 @@ - (BOOL)isCriticalUpdate { - return [[self.propertiesDictionary objectForKey:SUAppcastElementTags] containsObject:SUAppcastElementCriticalUpdate]; + return [(NSArray *)[self.propertiesDictionary objectForKey:SUAppcastElementTags] containsObject:SUAppcastElementCriticalUpdate]; } - (BOOL)isMacOsUpdate @@ -63,6 +65,18 @@ return self.osString == nil || [self.osString isEqualToString:SUAppcastAttributeValueMacOS]; } +- (NSDate*)date { + if(self.dateString == nil) { + return nil; + } + + NSDateFormatter* dateFormatter = [[NSDateFormatter alloc] init]; + dateFormatter.locale = [[NSLocale alloc] initWithLocaleIdentifier:@"en_US"]; + dateFormatter.dateFormat = @"E, dd MMM yyyy HH:mm:ss Z"; + + return [dateFormatter dateFromString:self.dateString]; +} + - (BOOL)isInformationOnlyUpdate { return self.infoURL && !self.fileURL; @@ -97,7 +111,7 @@ // Separate the url by underscores and take the last component, as that'll be closest to the end, // then we remove the extension. Hopefully, this will be the version. - NSArray *fileComponents = [[enclosure objectForKey:SURSSAttributeURL] componentsSeparatedByString:@"_"]; + NSArray *fileComponents = [(NSString *)[enclosure objectForKey:SURSSAttributeURL] componentsSeparatedByString:@"_"]; if ([fileComponents count] > 1) { newVersion = [[fileComponents lastObject] stringByDeletingPathExtension]; } @@ -156,10 +170,10 @@ self.fileURL = [NSURL URLWithString:fileURLString]; } if (enclosure) { - self.DSASignature = [enclosure objectForKey:SUAppcastAttributeDSASignature]; + self.signatures = [[SUSignatures alloc] initWithDsa:[enclosure objectForKey:SUAppcastAttributeDSASignature] ed:[enclosure objectForKey:SUAppcastAttributeEDSignature]]; self.osString = [enclosure objectForKey:SUAppcastAttributeOsType]; } - + self.versionString = newVersion; self.minimumSystemVersion = [dict objectForKey:SUAppcastElementMinimumSystemVersion]; self.maximumSystemVersion = [dict objectForKey:SUAppcastElementMaximumSystemVersion]; @@ -175,6 +189,11 @@ self.displayVersionString = self.versionString; } + NSString* enclosureRolloutIntervalString = [enclosure objectForKey:SUAppcastAttributePhasedRolloutInterval]; + if(enclosureRolloutIntervalString) { + self.phasedRolloutInterval = @(enclosureRolloutIntervalString.integerValue); + } + // Find the appropriate release notes URL. NSString *releaseNotesString = [dict objectForKey:SUAppcastElementReleaseNotesLink]; if (releaseNotesString) { diff --git a/Sparkle/SUAutomaticUpdateAlert.m b/Sparkle/SUAutomaticUpdateAlert.m index f0e7fea9..6ecc20b1 100644 --- a/Sparkle/SUAutomaticUpdateAlert.m +++ b/Sparkle/SUAutomaticUpdateAlert.m @@ -110,7 +110,7 @@ static NSString *const SUAutomaticUpdateAlertTouchBarIndentifier = @"" SPARKLE_B - (NSTouchBar *)makeTouchBar { - NSTouchBar *touchBar = [[NSClassFromString(@"NSTouchBar") alloc] init]; + NSTouchBar *touchBar = [(NSTouchBar *)[NSClassFromString(@"NSTouchBar") alloc] init]; touchBar.defaultItemIdentifiers = @[SUAutomaticUpdateAlertTouchBarIndentifier,]; touchBar.principalItemIdentifier = SUAutomaticUpdateAlertTouchBarIndentifier; touchBar.delegate = self; diff --git a/Sparkle/SUAutomaticUpdateDriver.m b/Sparkle/SUAutomaticUpdateDriver.m index c88aaeaf..5f5fffcb 100644 --- a/Sparkle/SUAutomaticUpdateDriver.m +++ b/Sparkle/SUAutomaticUpdateDriver.m @@ -96,6 +96,12 @@ static const NSTimeInterval SUAutomaticUpdatePromptImpatienceTimer = 60 * 60 * 2 [updaterDelegate updater:self.updater willInstallUpdateOnQuit:self.updateItem immediateInstallationInvocation:invocation]; } + else if ([updaterDelegate respondsToSelector:@selector(updater:willInstallUpdateOnQuit:immediateInstallationBlock:)]) + { + [updaterDelegate updater:self.updater willInstallUpdateOnQuit:self.updateItem immediateInstallationBlock:^{ + [self installWithToolAndRelaunch:YES displayingUserInterface:NO]; + }]; + } // If this is marked as a critical update, we'll prompt the user to install it right away. if ([self.updateItem isCriticalUpdate]) diff --git a/Sparkle/SUBasicUpdateDriver.h b/Sparkle/SUBasicUpdateDriver.h index 26660c33..47999f6c 100644 --- a/Sparkle/SUBasicUpdateDriver.h +++ b/Sparkle/SUBasicUpdateDriver.h @@ -17,13 +17,15 @@ @interface SUBasicUpdateDriver : SUUpdateDriver @property (strong, readonly) SUAppcastItem *updateItem; +@property (strong, readonly) SUAppcastItem *latestAppcastItem; +@property (assign, readonly) NSComparisonResult latestAppcastItemComparisonResult; @property (strong, readonly) SPUDownloader *download; @property (copy, readonly) NSString *downloadPath; - (void)checkForUpdatesAtURL:(NSURL *)URL host:(SUHost *)host; - (BOOL)isItemNewer:(SUAppcastItem *)ui; -+ (BOOL)hostSupportsItem:(SUAppcastItem *)ui; +- (BOOL)hostSupportsItem:(SUAppcastItem *)ui; - (BOOL)itemContainsSkippedVersion:(SUAppcastItem *)ui; - (BOOL)itemContainsValidUpdate:(SUAppcastItem *)ui; - (void)appcastDidFinishLoading:(SUAppcast *)ac; diff --git a/Sparkle/SUBasicUpdateDriver.m b/Sparkle/SUBasicUpdateDriver.m index fe8c05dc..02e39e36 100644 --- a/Sparkle/SUBasicUpdateDriver.m +++ b/Sparkle/SUBasicUpdateDriver.m @@ -22,6 +22,7 @@ #import "SUUpdateValidator.h" #import "SULocalizations.h" #import "SUErrors.h" +#import "SUUpdater.h" #import "SUAppcast.h" #import "SUAppcastItem.h" @@ -32,6 +33,8 @@ @interface SUBasicUpdateDriver () @property (strong) SUAppcastItem *updateItem; +@property (strong) SUAppcastItem *latestAppcastItem; +@property (assign) NSComparisonResult latestAppcastItemComparisonResult; @property (strong) SPUDownloader *download; @property (copy) NSString *downloadPath; @@ -46,6 +49,8 @@ @implementation SUBasicUpdateDriver @synthesize updateItem; +@synthesize latestAppcastItem; +@synthesize latestAppcastItemComparisonResult; @synthesize download; @synthesize downloadPath; @@ -60,7 +65,14 @@ [super checkForUpdatesAtURL:URL host:aHost]; if ([aHost isRunningOnReadOnlyVolume]) { - [self abortUpdateWithError:[NSError errorWithDomain:SUSparkleErrorDomain code:SURunningFromDiskImageError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:SULocalizedString(@"%1$@ can't be updated, because it was opened from a read-only or a temporary location. Use Finder to copy %1$@ to the Applications folder, relaunch it from there, and try again.", nil), [aHost name]] }]]; + if ([aHost isRunningTranslocated]) + { + [self abortUpdateWithError:[NSError errorWithDomain:SUSparkleErrorDomain code:SURunningTranslocated userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:SULocalizedString(@"Quit %1$@, move it into your Applications folder, relaunch it from there and try again. %2$@ can’t be updated if it’s running from the location it was downloaded to.", nil), [aHost name], [aHost name]] }]]; + } + else + { + [self abortUpdateWithError:[NSError errorWithDomain:SUSparkleErrorDomain code:SURunningFromDiskImageError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:SULocalizedString(@"%1$@ can't be updated, because it was opened from a read-only or a temporary location. Use Finder to copy %1$@ to the Applications folder, relaunch it from there, and try again.", nil), [aHost name]] }]]; + } return; } @@ -82,7 +94,7 @@ { id comparator = nil; id updater = self.updater; - + // Give the delegate a chance to provide a custom version comparator if ([[updater delegate] respondsToSelector:@selector(versionComparatorForUpdater:)]) { comparator = [[updater delegate] versionComparatorForUpdater:self.updater]; @@ -96,28 +108,34 @@ return comparator; } -+ (SUAppcastItem *)bestItemFromAppcastItems:(NSArray *)appcastItems getDeltaItem:(SUAppcastItem * __autoreleasing *)deltaItem withHostVersion:(NSString *)hostVersion comparator:(id)comparator +// This method is only used for testing ++ (SUAppcastItem *)bestItemFromAppcastItems:(NSArray *)appcastItems getDeltaItem:(SUAppcastItem *_Nullable __autoreleasing *_Nullable)deltaItem withHostVersion:(NSString *)hostVersion comparator:(id)comparator { + SUBasicUpdateDriver* basicUpdateDriver = [[SUBasicUpdateDriver alloc] initWithUpdater:(id)[SUUpdater sharedUpdater]]; + return [basicUpdateDriver bestItemFromAppcastItems:appcastItems getDeltaItem:deltaItem withHostVersion:hostVersion comparator:comparator]; +} + +- (SUAppcastItem *)bestItemFromAppcastItems:(NSArray *)appcastItems getDeltaItem:(SUAppcastItem * __autoreleasing *)deltaItem withHostVersion:(NSString *)hostVersion comparator:(id)comparator { SUAppcastItem *item = nil; for(SUAppcastItem *candidate in appcastItems) { - if ([[self class] hostSupportsItem:candidate]) { + if ([self hostSupportsItem:candidate]) { if (!item || [comparator compareVersion:item.versionString toVersion:candidate.versionString] == NSOrderedAscending) { item = candidate; } } } - + if (item && deltaItem) { SUAppcastItem *deltaUpdateItem = [[item deltaUpdates] objectForKey:hostVersion]; - if (deltaUpdateItem && [[self class] hostSupportsItem:deltaUpdateItem]) { + if (deltaUpdateItem && [self hostSupportsItem:deltaUpdateItem]) { *deltaItem = deltaUpdateItem; } } - + return item; } -+ (BOOL)hostSupportsItem:(SUAppcastItem *)ui +- (BOOL)hostSupportsItem:(SUAppcastItem *)ui { BOOL osOK = [ui isMacOsUpdate]; if (([ui minimumSystemVersion] == nil || [[ui minimumSystemVersion] isEqualToString:@""]) && @@ -155,7 +173,7 @@ - (BOOL)itemContainsValidUpdate:(SUAppcastItem *)ui { - return ui && [[self class] hostSupportsItem:ui] && [self isItemNewer:ui] && ![self itemContainsSkippedVersion:ui]; + return ui && [self hostSupportsItem:ui] && [self isItemNewer:ui] && ![self itemContainsSkippedVersion:ui]; } - (void)appcastDidFinishLoading:(SUAppcast *)ac @@ -175,7 +193,7 @@ { item = [[updater delegate] bestValidUpdateInAppcast:ac forUpdater:self.updater]; } - + if (item != nil) // Does the delegate want to handle it? { if ([item isDeltaUpdate]) { @@ -186,14 +204,18 @@ { // Find the best supported update SUAppcastItem *deltaUpdateItem = nil; - item = [[self class] bestItemFromAppcastItems:ac.items getDeltaItem:&deltaUpdateItem withHostVersion:self.host.version comparator:[self versionComparator]]; - + item = [self bestItemFromAppcastItems:ac.items getDeltaItem:&deltaUpdateItem withHostVersion:self.host.version comparator:[self versionComparator]]; + if (item && deltaUpdateItem) { self.nonDeltaUpdateItem = item; item = deltaUpdateItem; } } + self.latestAppcastItem = item; + self.latestAppcastItemComparisonResult = [[self versionComparator] compareVersion:[self.host version] toVersion:[item versionString]]; + + if ([self itemContainsValidUpdate:item]) { self.updateItem = item; [self performSelectorOnMainThread:@selector(didFindValidUpdate) withObject:nil waitUntilDone:NO]; @@ -206,7 +228,7 @@ - (void)didFindValidUpdate { assert(self.updateItem); - + id updater = self.updater; if ([[updater delegate] respondsToSelector:@selector(updater:didFindValidUpdate:)]) { @@ -222,7 +244,7 @@ - (void)didNotFindUpdate { id updater = self.updater; - + if ([[updater delegate] respondsToSelector:@selector(updaterDidNotFindUpdate:)]) { [[updater delegate] updaterDidNotFindUpdate:self.updater]; } @@ -247,12 +269,12 @@ SULog(SULogLevelError, @"Failed to find user's cache directory! Using system default"); cachePath = NSTemporaryDirectory(); } - + NSString *name = [self.host.bundle bundleIdentifier]; if (!name) { name = [self.host name]; } - + cachePath = [cachePath stringByAppendingPathComponent:name]; cachePath = [cachePath stringByAppendingPathComponent:@SPARKLE_BUNDLE_IDENTIFIER]; return cachePath; @@ -262,7 +284,7 @@ { NSString *bundleIdentifier = self.host.bundle.bundleIdentifier; assert(bundleIdentifier != nil); - + // Clear cache directory so that downloads can't possibly accumulate inside NSString *appCachePath = [self appCachePath]; if ([[NSFileManager defaultManager] fileExistsAtPath:appCachePath]) { @@ -282,8 +304,8 @@ willDownloadUpdate:self.updateItem withRequest:request]; } - - if ([SUOperatingSystem isOperatingSystemAtLeastVersion:(NSOperatingSystemVersion){10, 9, 0}]) { + + if (SUAVAILABLE(10, 9)) { #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wunguarded-availability" self.download = [[SPUDownloaderSession alloc] initWithDelegate:self]; @@ -322,7 +344,7 @@ if ([[updater delegate] respondsToSelector:@selector(updater:didDownloadUpdate:)]) { [[updater delegate] updater:self.updater didDownloadUpdate:self.updateItem]; } - + [self extractUpdate]; } @@ -332,15 +354,15 @@ if (!failingUrl) { failingUrl = [self.updateItem fileURL]; } - + id updater = self.updater; - + if ([[updater delegate] respondsToSelector:@selector(updater:failedToDownloadUpdate:error:)]) { [[updater delegate] updater:self.updater failedToDownloadUpdate:self.updateItem error:error]; } - + NSMutableDictionary *userInfo = [NSMutableDictionary dictionaryWithDictionary:@{ NSLocalizedDescriptionKey: SULocalizedString(@"An error occurred while downloading the update. Please try again later.", nil), NSUnderlyingErrorKey: error, @@ -348,7 +370,7 @@ if (failingUrl) { [userInfo setObject:failingUrl forKey:NSURLErrorFailingURLErrorKey]; } - + [self abortUpdateWithError:[NSError errorWithDomain:SUSparkleErrorDomain code:SUDownloadError userInfo:userInfo]]; } @@ -356,21 +378,23 @@ { id updater = self.updater; id unarchiver = [SUUnarchiver unarchiverForPath:self.downloadPath updatingHostBundlePath:self.host.bundlePath decryptionPassword:updater.decryptionPassword]; - - BOOL success; + + BOOL success = NO; if (!unarchiver) { SULog(SULogLevelError, @"Error: No valid unarchiver for %@!", self.downloadPath); - - success = NO; } else { + self.updateValidator = [[SUUpdateValidator alloc] initWithDownloadPath:self.downloadPath signatures:self.updateItem.signatures host:self.host]; + // Currently unsafe archives are the only case where we can prevalidate before extraction, but that could change in the future - BOOL needsPrevalidation = [[unarchiver class] unsafeIfArchiveIsNotValidated]; - - self.updateValidator = [[SUUpdateValidator alloc] initWithDownloadPath:self.downloadPath dsaSignature:self.updateItem.DSASignature host:self.host performingPrevalidation:needsPrevalidation]; - - success = self.updateValidator.canValidate; + BOOL needsPrevalidation = [[unarchiver class] mustValidateBeforeExtraction]; + + if (needsPrevalidation) { + success = [self.updateValidator validateDownloadPath]; + } else { + success = YES; + } } - + if (!success) { NSError *reason = [NSError errorWithDomain:SUSparkleErrorDomain code:SUUnarchivingError userInfo:@{NSLocalizedDescriptionKey: @"Failed to extract update."}]; [self unarchiverDidFailWithError:reason]; @@ -378,7 +402,7 @@ if ([[updater delegate] respondsToSelector:@selector(updater:willExtractUpdate:)]) { [[updater delegate] updater:self.updater willExtractUpdate:self.updateItem]; } - + [unarchiver unarchiveWithCompletionBlock:^(NSError *err){ if (err) { [self unarchiverDidFailWithError:err]; @@ -387,7 +411,7 @@ if ([[updater delegate] respondsToSelector:@selector(updater:didExtractUpdate:)]) { [[updater delegate] updater:self.updater didExtractUpdate:self.updateItem]; } - + [self performSelectorOnMainThread:@selector(unarchiverDidFinish:) withObject:nil waitUntilDone:NO]; } progressBlock:^(double progress) { [self unarchiver:nil extractedProgress:progress]; @@ -413,7 +437,7 @@ - (void)unarchiverDidFinish:(id)__unused ua { assert(self.updateItem); - + [self installWithToolAndRelaunch:YES]; } @@ -421,12 +445,12 @@ { // No longer needed self.updateValidator = nil; - + if ([self.updateItem isDeltaUpdate]) { [self failedToApplyDeltaUpdate]; return; } - + [self abortUpdateWithError:err]; } @@ -471,7 +495,7 @@ { assert(self.updateItem); assert(self.updateValidator); - + BOOL validationCheckSuccess = [self.updateValidator validateWithUpdateDirectory:self.tempDir]; if (!validationCheckSuccess) { NSDictionary *userInfo = @{ @@ -492,19 +516,24 @@ id updater = self.updater; static BOOL postponedOnce = NO; id updaterDelegate = [updater delegate]; - if (!postponedOnce && [updaterDelegate respondsToSelector:@selector(updater:shouldPostponeRelaunchForUpdate:untilInvoking:)]) - { - NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:[[self class] instanceMethodSignatureForSelector:@selector(installWithToolAndRelaunch:)]]; - [invocation setSelector:@selector(installWithToolAndRelaunch:)]; - [invocation setArgument:&relaunch atIndex:2]; - [invocation setTarget:self]; - postponedOnce = YES; - if ([updaterDelegate updater:self.updater shouldPostponeRelaunchForUpdate:self.updateItem untilInvoking:invocation]) { - return; + if (!postponedOnce) { + if ([updaterDelegate respondsToSelector:@selector(updater:shouldPostponeRelaunchForUpdate:untilInvoking:)]) { + NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:[[self class] instanceMethodSignatureForSelector:@selector(installWithToolAndRelaunch:)]]; + [invocation setSelector:@selector(installWithToolAndRelaunch:)]; + [invocation setArgument:&relaunch atIndex:2]; + [invocation setTarget:self]; + postponedOnce = YES; + if ([updaterDelegate updater:self.updater shouldPostponeRelaunchForUpdate:self.updateItem untilInvoking:invocation]) { + return; + } + } else if ([updaterDelegate respondsToSelector:@selector(updater:shouldPostponeRelaunchForUpdate:)]) { + postponedOnce = YES; + if ([updaterDelegate updater:self.updater shouldPostponeRelaunchForUpdate:self.updateItem]) { + return; + } } } - if ([updaterDelegate respondsToSelector:@selector(updater:willInstallUpdate:)]) { [updaterDelegate updater:self.updater willInstallUpdate:self.updateItem]; } @@ -555,7 +584,7 @@ // Perhaps in a sandboxed environment this matters more. Note that this may not be a fatal error. NSError *quarantineError = nil; if (![fileManager releaseItemFromQuarantineAtRootURL:relaunchCopyTargetURL error:&quarantineError]) { - SULog(SULogLevelError, @"Failed to release quarantine on %@ with error %@", relaunchCopyTargetPath, quarantineError); + SULog(SULogLevelDefault, @"Warning: could not remove quarantine metadata from %@: %@. This may not be a problem, the update process will continue.", relaunchCopyTargetPath, quarantineError); } } } @@ -591,10 +620,10 @@ pathToRelaunch = delegateRelaunchPath; } } - + //Set relaunching flag. [self.host setBool:YES forUserDefaultsKey:SUUpdateRelaunchingMarkerKey]; - + [NSTask launchedTaskWithLaunchPath:relaunchToolPath arguments:@[[self.host bundlePath], pathToRelaunch, [NSString stringWithFormat:@"%d", [[NSProcessInfo processInfo] processIdentifier]], diff --git a/Sparkle/SUBinaryDeltaCommon.m b/Sparkle/SUBinaryDeltaCommon.m index b5731cbe..1ee65115 100644 --- a/Sparkle/SUBinaryDeltaCommon.m +++ b/Sparkle/SUBinaryDeltaCommon.m @@ -190,6 +190,11 @@ NSString *hashOfTreeWithVersion(NSString *path, uint16_t majorVersion) if (MAJOR_VERSION_IS_AT_LEAST(majorVersion, SUBeigeMajorVersion)) { uint16_t mode = ent->fts_statp->st_mode; + // permission of symlinks is irrelevant and can't be changed. + // hardcoding a value helps avoid differences between filesystems. + if (ent->fts_info == FTS_SL) { + mode = 0755; + } uint16_t type = ent->fts_info; uint16_t permissions = mode & PERMISSION_FLAGS; @@ -242,7 +247,7 @@ BOOL modifyPermissions(NSString *path, mode_t desiredPermissions) return NO; } mode_t newMode = ([permissions unsignedShortValue] & ~PERMISSION_FLAGS) | desiredPermissions; - int (*changeModeFunc)(const char *, mode_t) = [[attributes objectForKey:NSFileType] isEqualToString:NSFileTypeSymbolicLink] ? lchmod : chmod; + int (*changeModeFunc)(const char *, mode_t) = [(NSString *)[attributes objectForKey:NSFileType] isEqualToString:NSFileTypeSymbolicLink] ? lchmod : chmod; if (changeModeFunc([path fileSystemRepresentation], newMode) != 0) { return NO; } diff --git a/Sparkle/SUBinaryDeltaCreate.m b/Sparkle/SUBinaryDeltaCreate.m index 2f3b3fdf..44e2d501 100644 --- a/Sparkle/SUBinaryDeltaCreate.m +++ b/Sparkle/SUBinaryDeltaCreate.m @@ -90,6 +90,15 @@ static NSDictionary *infoForFile(FTSENT *ent) INFO_SIZE_KEY: @(size) }; } +static bool isSymLink(const FTSENT *ent) +{ + if (ent->fts_info == FTS_SL) + { + return (true); + } + return false; +} + static bool aclExists(const FTSENT *ent) { // macOS does not currently support ACLs for symlinks @@ -254,7 +263,7 @@ BOOL createBinaryDelta(NSString *source, NSString *destination, NSString *patchF if (verbose) { fprintf(stderr, "Creating version %u.%u patch...\n", majorVersion, minorVersion); - fprintf(stderr, "Processing %s...", [source fileSystemRepresentation]); + fprintf(stderr, "Processing source, %s...", [source fileSystemRepresentation]); } FTSENT *ent = 0; @@ -320,7 +329,7 @@ BOOL createBinaryDelta(NSString *source, NSString *destination, NSString *patchF } if (verbose) { - fprintf(stderr, "\nProcessing %s...", [destination fileSystemRepresentation]); + fprintf(stderr, "\nProcessing destination, %s...", [destination fileSystemRepresentation]); } pathBuffer[0] = 0; @@ -371,14 +380,11 @@ BOOL createBinaryDelta(NSString *source, NSString *destination, NSString *patchF // inside an application, and since we don't preserve extended attribitutes anyway mode_t permissions = [info[INFO_PERMISSIONS_KEY] unsignedShortValue]; - if (!IS_VALID_PERMISSIONS(permissions)) { + if (!isSymLink(ent) && !IS_VALID_PERMISSIONS(permissions)) { + permissions = 0755; if (verbose) { - fprintf(stderr, "\n"); + fprintf(stderr, "\nwarning: file permissions %o of '%s' won't be preserved in the delta update (only permissions with modes 0755 and 0644 are supported).\n", permissions & PERMISSION_FLAGS, ent->fts_path); } - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileReadUnknownError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Invalid file permissions after-tree on file %@ (only permissions with modes 0755 and 0644 are supported)", @(ent->fts_path)] }]; - } - return NO; } if (aclExists(ent)) { @@ -439,6 +445,9 @@ BOOL createBinaryDelta(NSString *source, NSString *destination, NSString *patchF } NSString *temporaryFile = temporaryPatchFile(patchFile); + if (verbose) { + fprintf(stderr, "\nWriting to temporary file %s...", [temporaryFile fileSystemRepresentation]); + } xar_t x = xar_open([temporaryFile fileSystemRepresentation], WRITE); if (!x) { if (verbose) { @@ -574,13 +583,19 @@ BOOL createBinaryDelta(NSString *source, NSString *destination, NSString *patchF xar_close(x); - unlink([patchFile fileSystemRepresentation]); - link([temporaryFile fileSystemRepresentation], [patchFile fileSystemRepresentation]); - unlink([temporaryFile fileSystemRepresentation]); + NSFileManager *filemgr; + filemgr = [NSFileManager defaultManager]; + [filemgr removeItemAtPath: patchFile error: NULL]; + if ([filemgr moveItemAtPath: temporaryFile toPath: patchFile error: NULL] != YES) + { + if (verbose) { + fprintf(stderr, "Failed to move temporary file, %s, to %s!\n", [temporaryFile fileSystemRepresentation], [patchFile fileSystemRepresentation]); + } + return NO; + } if (verbose) { fprintf(stderr, "\nDone!\n"); } - return YES; } diff --git a/Sparkle/SUBinaryDeltaUnarchiver.m b/Sparkle/SUBinaryDeltaUnarchiver.m index 7dfce787..e9db993a 100644 --- a/Sparkle/SUBinaryDeltaUnarchiver.m +++ b/Sparkle/SUBinaryDeltaUnarchiver.m @@ -33,7 +33,7 @@ return [[path pathExtension] isEqualToString:@"delta"]; } -+ (BOOL)unsafeIfArchiveIsNotValidated ++ (BOOL)mustValidateBeforeExtraction { return YES; } diff --git a/Sparkle/SUCodeSigningVerifier.h b/Sparkle/SUCodeSigningVerifier.h index f034cd20..3756a378 100644 --- a/Sparkle/SUCodeSigningVerifier.h +++ b/Sparkle/SUCodeSigningVerifier.h @@ -9,7 +9,11 @@ #ifndef SUCODESIGNINGVERIFIER_H #define SUCODESIGNINGVERIFIER_H +#if __has_feature(modules) +@import Foundation; +#else #import +#endif #import "SUExport.h" SU_EXPORT @interface SUCodeSigningVerifier : NSObject diff --git a/Sparkle/SUConstants.h b/Sparkle/SUConstants.h index 5ff8fb01..86e0b97f 100644 --- a/Sparkle/SUConstants.h +++ b/Sparkle/SUConstants.h @@ -41,6 +41,8 @@ extern NSString *const SUSkippedVersionKey; extern NSString *const SUScheduledCheckIntervalKey; extern NSString *const SULastCheckTimeKey; extern NSString *const SUExpectsDSASignatureKey; +extern NSString *const SUExpectsEDSignatureKey; +extern NSString *const SUPublicEDKeyKey; extern NSString *const SUPublicDSAKeyKey; extern NSString *const SUPublicDSAKeyFileKey; extern NSString *const SUAutomaticallyUpdateKey; @@ -48,6 +50,7 @@ extern NSString *const SUAllowsAutomaticUpdatesKey; extern NSString *const SUEnableAutomaticChecksKey; extern NSString *const SUEnableSystemProfilingKey; extern NSString *const SUSendProfileInfoKey; +extern NSString *const SUUpdateGroupIdentifierKey; extern NSString *const SULastProfileSubmitDateKey; extern NSString *const SUPromptUserOnFirstLaunchKey; extern NSString *const SUDefaultsDomainKey; @@ -64,11 +67,11 @@ extern NSString *const SURelaunchToolNameKey __attribute__((deprecated("This key extern NSString *const SUAppcastAttributeDeltaFrom; extern NSString *const SUAppcastAttributeDSASignature; +extern NSString *const SUAppcastAttributeEDSignature; extern NSString *const SUAppcastAttributeShortVersionString; extern NSString *const SUAppcastAttributeVersion; extern NSString *const SUAppcastAttributeOsType; - - +extern NSString *const SUAppcastAttributePhasedRolloutInterval; extern NSString *const SUAppcastElementCriticalUpdate; extern NSString *const SUAppcastElementDeltas; diff --git a/Sparkle/SUConstants.m b/Sparkle/SUConstants.m index fc4e8e67..2e5d9317 100644 --- a/Sparkle/SUConstants.m +++ b/Sparkle/SUConstants.m @@ -33,6 +33,8 @@ NSString *const SUSkippedVersionKey = @"SUSkippedVersion"; NSString *const SUScheduledCheckIntervalKey = @"SUScheduledCheckInterval"; NSString *const SULastCheckTimeKey = @"SULastCheckTime"; NSString *const SUExpectsDSASignatureKey = @"SUExpectsDSASignature"; +NSString *const SUExpectsEDSignatureKey = @"SUExpectsEDSignatureKey"; +NSString *const SUPublicEDKeyKey = @"SUPublicEDKey"; NSString *const SUPublicDSAKeyKey = @"SUPublicDSAKey"; NSString *const SUPublicDSAKeyFileKey = @"SUPublicDSAKeyFile"; NSString *const SUAutomaticallyUpdateKey = @"SUAutomaticallyUpdate"; @@ -40,6 +42,7 @@ NSString *const SUAllowsAutomaticUpdatesKey = @"SUAllowsAutomaticUpdates"; NSString *const SUEnableSystemProfilingKey = @"SUEnableSystemProfiling"; NSString *const SUEnableAutomaticChecksKey = @"SUEnableAutomaticChecks"; NSString *const SUSendProfileInfoKey = @"SUSendProfileInfo"; +NSString *const SUUpdateGroupIdentifierKey = @"SUUpdateGroupIdentifier"; NSString *const SULastProfileSubmitDateKey = @"SULastProfileSubmissionDate"; NSString *const SUPromptUserOnFirstLaunchKey = @"SUPromptUserOnFirstLaunch"; NSString *const SUEnableJavaScriptKey = @"SUEnableJavaScript"; @@ -54,9 +57,11 @@ NSString *const SURelaunchToolNameKey = @"SURelaunchToolName"; NSString *const SUAppcastAttributeDeltaFrom = @"sparkle:deltaFrom"; NSString *const SUAppcastAttributeDSASignature = @"sparkle:dsaSignature"; +NSString *const SUAppcastAttributeEDSignature = @"sparkle:edSignature"; NSString *const SUAppcastAttributeShortVersionString = @"sparkle:shortVersionString"; NSString *const SUAppcastAttributeVersion = @"sparkle:version"; NSString *const SUAppcastAttributeOsType = @"sparkle:os"; +NSString *const SUAppcastAttributePhasedRolloutInterval = @"sparkle:phasedRolloutInterval"; NSString *const SUAppcastElementCriticalUpdate = @"sparkle:criticalUpdate"; NSString *const SUAppcastElementDeltas = @"sparkle:deltas"; diff --git a/Sparkle/SUDSAVerifier.h b/Sparkle/SUDSAVerifier.h deleted file mode 100644 index 1b4665b9..00000000 --- a/Sparkle/SUDSAVerifier.h +++ /dev/null @@ -1,37 +0,0 @@ -// -// SUDSAVerifier.h -// Sparkle -// -// Created by Andy Matuschak on 3/16/06. -// Copyright 2006 Andy Matuschak. All rights reserved. -// -// Includes code by Zach Waldowski on 10/18/13. -// Copyright 2014 Big Nerd Ranch. Licensed under MIT. -// -// Includes code from Plop by Mark Hamlin. -// Copyright 2011 Mark Hamlin. Licensed under BSD. -// - -#ifndef SUDSAVERIFIER_H -#define SUDSAVERIFIER_H - -#import - -#if __MAC_OS_X_VERSION_MAX_ALLOWED < 1090 -@interface NSData (SUDSAVerifier) -- (id)initWithBase64Encoding:(NSString *)base64String; -@end -#endif - -@interface SUDSAVerifier : NSObject - -+ (BOOL)validatePath:(NSString *)path withEncodedDSASignature:(NSString *)encodedSignature withPublicDSAKey:(NSString *)pkeyString; - -- (instancetype)initWithPublicKeyData:(NSData *)data; - -- (BOOL)verifyFileAtPath:(NSString *)path signature:(NSData *)signature; -- (BOOL)verifyStream:(NSInputStream *)stream signature:(NSData *)signature; - -@end - -#endif diff --git a/Sparkle/SUDiskImageUnarchiver.m b/Sparkle/SUDiskImageUnarchiver.m index 4c1672c6..dbb9cf14 100644 --- a/Sparkle/SUDiskImageUnarchiver.m +++ b/Sparkle/SUDiskImageUnarchiver.m @@ -30,7 +30,7 @@ return [[path pathExtension] isEqualToString:@"dmg"]; } -+ (BOOL)unsafeIfArchiveIsNotValidated ++ (BOOL)mustValidateBeforeExtraction { return NO; } diff --git a/Sparkle/SUErrors.h b/Sparkle/SUErrors.h index 7d2e73ae..4b160c4f 100644 --- a/Sparkle/SUErrors.h +++ b/Sparkle/SUErrors.h @@ -29,6 +29,7 @@ typedef NS_ENUM(OSStatus, SUError) { SUNoUpdateError = 1001, SUAppcastError = 1002, SURunningFromDiskImageError = 1003, + SURunningTranslocated = 1004, // Download phase errors. SUTemporaryDirectoryError = 2000, diff --git a/Sparkle/SUFileManager.m b/Sparkle/SUFileManager.m index 1ab95cbf..03fdaaa9 100644 --- a/Sparkle/SUFileManager.m +++ b/Sparkle/SUFileManager.m @@ -71,12 +71,12 @@ static BOOL SUMakeRefFromURL(NSURL *url, FSRef *ref, NSError **error) { + (instancetype)defaultManager { - return [[self alloc] initWithAuthorizationToolPath:nil]; + return [(SUFileManager *)[self alloc] initWithAuthorizationToolPath:nil]; } + (instancetype)fileManagerWithAuthorizationToolPath:(NSString *)authorizationToolPath { - return [[self alloc] initWithAuthorizationToolPath:authorizationToolPath]; + return [(SUFileManager *)[self alloc] initWithAuthorizationToolPath:authorizationToolPath]; } - (instancetype)fileManagerByPreservingAuthorizationRights @@ -269,7 +269,7 @@ static BOOL SUMakeRefFromURL(NSURL *url, FSRef *ref, NSError **error) { } if (isDirectory != NULL) { - *isDirectory = [[attributes objectForKey:NSFileType] isEqualToString:NSFileTypeDirectory]; + *isDirectory = [(NSString *)[attributes objectForKey:NSFileType] isEqualToString:NSFileTypeDirectory]; } return YES; @@ -304,7 +304,7 @@ static BOOL SUMakeRefFromURL(NSURL *url, FSRef *ref, NSError **error) { - (BOOL)_removeQuarantineWithAuthenticationAtRootURL:(NSURL *)rootURL error:(NSError *__autoreleasing *)error { // Because this is a system utility, it's fine to follow the symbolic link if one exists - if (![_fileManager fileExistsAtPath:@(XATTR_UTILITY_PATH)]) { + if (![_fileManager fileExistsAtPath:(NSString *)@(XATTR_UTILITY_PATH)]) { if (error != NULL) { *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileNoSuchFileError userInfo:@{ NSLocalizedDescriptionKey: @"xattr utility does not exist on this system." }]; } diff --git a/Sparkle/SUHost.h b/Sparkle/SUHost.h index aa3c72cf..747e7caf 100644 --- a/Sparkle/SUHost.h +++ b/Sparkle/SUHost.h @@ -7,6 +7,10 @@ #import +NS_ASSUME_NONNULL_BEGIN + +@class SUPublicKeys; + @interface SUHost : NSObject @property (strong, readonly) NSBundle *bundle; @@ -16,16 +20,20 @@ @property (readonly, copy) NSString *name; @property (readonly, copy) NSString *version; @property (readonly, copy) NSString *displayVersion; -@property (getter=isRunningOnReadOnlyVolume, readonly) BOOL runningOnReadOnlyVolume; -@property (readonly, copy) NSString *publicDSAKey; -@property (readonly, nonatomic, copy) NSString *publicDSAKeyFileKey; +@property (readonly) SUPublicKeys *publicKeys; -- (id)objectForInfoDictionaryKey:(NSString *)key; +@property (getter=isRunningOnReadOnlyVolume, readonly) BOOL runningOnReadOnlyVolume; +@property (getter=isRunningTranslocated, readonly) BOOL runningTranslocated; +@property (readonly, nonatomic, copy, nullable) NSString *publicDSAKeyFileKey; + +- (nullable id)objectForInfoDictionaryKey:(NSString *)key; - (BOOL)boolForInfoDictionaryKey:(NSString *)key; -- (id)objectForUserDefaultsKey:(NSString *)defaultName; -- (void)setObject:(id)value forUserDefaultsKey:(NSString *)defaultName; +- (nullable id)objectForUserDefaultsKey:(NSString *)defaultName; +- (void)setObject:(nullable id)value forUserDefaultsKey:(NSString *)defaultName; - (BOOL)boolForUserDefaultsKey:(NSString *)defaultName; - (void)setBool:(BOOL)value forUserDefaultsKey:(NSString *)defaultName; -- (id)objectForKey:(NSString *)key; +- (nullable id)objectForKey:(NSString *)key; - (BOOL)boolForKey:(NSString *)key; @end + +NS_ASSUME_NONNULL_END diff --git a/Sparkle/SUHost.m b/Sparkle/SUHost.m index fe7345cd..adea8253 100644 --- a/Sparkle/SUHost.m +++ b/Sparkle/SUHost.m @@ -10,10 +10,12 @@ #import "SUConstants.h" #include // For statfs for isRunningOnReadOnlyVolume #import "SULog.h" - +#import "SUSignatures.h" #include "AppKitPrevention.h" +NS_ASSUME_NONNULL_BEGIN + // This class should not rely on AppKit and should also be process independent // For example, it should not have code that tests writabilty to somewhere on disk, // as that may depend on the privileges of the process owner. Or code that depends on @@ -24,8 +26,9 @@ @property (strong, readwrite) NSBundle *bundle; @property (nonatomic, readonly) BOOL isMainBundle; -@property (copy) NSString *defaultsDomain; +@property (copy, nullable) NSString *defaultsDomain; @property (assign) BOOL usesStandardUserDefaults; +@property (readonly, copy, nullable) NSString *publicDSAKey; @end @@ -68,7 +71,7 @@ return [self.bundle bundlePath]; } -- (NSString *__nonnull)name +- (NSString *)name { NSString *name; @@ -85,7 +88,7 @@ return [[[NSFileManager defaultManager] displayNameAtPath:[self bundlePath]] stringByDeletingPathExtension]; } -- (NSString *__nonnull)version +- (NSString *)version { NSString *version = [self objectForInfoDictionaryKey:(__bridge NSString *)kCFBundleVersionKey]; if (!version || [version isEqualToString:@""]) @@ -93,7 +96,7 @@ return version; } -- (NSString *__nonnull)displayVersion +- (NSString *)displayVersion { NSString *shortVersionString = [self objectForInfoDictionaryKey:@"CFBundleShortVersionString"]; if (shortVersionString) @@ -109,6 +112,18 @@ return (statfs_info.f_flags & MNT_RDONLY) != 0; } +- (BOOL)isRunningTranslocated +{ + NSString *path = [self.bundle bundlePath]; + return [path rangeOfString:@"/AppTranslocation/"].location != NSNotFound; +} + + +- (NSString *__nullable)publicEDKey +{ + return [self objectForInfoDictionaryKey:SUPublicEDKeyKey]; +} + - (NSString *__nullable)publicDSAKey { // Maybe the key is just a string in the Info.plist. @@ -135,12 +150,17 @@ return key; } +- (SUPublicKeys *)publicKeys +{ + return [[SUPublicKeys alloc] initWithDsa:[self publicDSAKey] ed:[self publicEDKey]]; +} + - (NSString * __nullable)publicDSAKeyFileKey { return [self objectForInfoDictionaryKey:SUPublicDSAKeyFileKey]; } -- (id)objectForInfoDictionaryKey:(NSString *)key +- (nullable id)objectForInfoDictionaryKey:(NSString *)key { if (self.isMainBundle) { // Common fast path - if we're updating the main bundle, that means our updater and host bundle's lifetime is the same @@ -161,10 +181,10 @@ - (BOOL)boolForInfoDictionaryKey:(NSString *)key { - return [[self objectForInfoDictionaryKey:key] boolValue]; + return [(NSNumber *)[self objectForInfoDictionaryKey:key] boolValue]; } -- (id)objectForUserDefaultsKey:(NSString *)defaultName +- (nullable id)objectForUserDefaultsKey:(NSString *)defaultName { if (!defaultName || !self.defaultsDomain) { return nil; @@ -182,7 +202,7 @@ } // Note this handles nil being passed for defaultName, in which case the user default will be removed -- (void)setObject:(id)value forUserDefaultsKey:(NSString *)defaultName +- (void)setObject:(nullable id)value forUserDefaultsKey:(NSString *)defaultName { if (self.usesStandardUserDefaults) { @@ -227,7 +247,7 @@ } } -- (id)objectForKey:(NSString *)key { +- (nullable id)objectForKey:(NSString *)key { return [self objectForUserDefaultsKey:key] ? [self objectForUserDefaultsKey:key] : [self objectForInfoDictionaryKey:key]; } @@ -236,3 +256,5 @@ } @end + +NS_ASSUME_NONNULL_END diff --git a/Sparkle/SULog.m b/Sparkle/SULog.m index ab417b8f..6cde14c9 100644 --- a/Sparkle/SULog.m +++ b/Sparkle/SULog.m @@ -63,7 +63,7 @@ void SULog(SULogLevel level, NSString *format, ...) } NSString *displayName = [[NSFileManager defaultManager] displayNameAtPath:mainBundle.bundlePath]; - client = asl_open([displayName stringByAppendingString:@" [Sparkle]"].UTF8String, SPARKLE_BUNDLE_IDENTIFIER, options); + client = asl_open([displayName stringByAppendingString:@" [Sparkle " TO_STRING(SPARKLE_VERSION) "]"].UTF8String, SPARKLE_BUNDLE_IDENTIFIER, options); queue = dispatch_queue_create(NULL, DISPATCH_QUEUE_SERIAL); } }); diff --git a/Sparkle/SUOperatingSystem.h b/Sparkle/SUOperatingSystem.h index e4334d90..bdb87926 100644 --- a/Sparkle/SUOperatingSystem.h +++ b/Sparkle/SUOperatingSystem.h @@ -22,3 +22,9 @@ typedef struct { + (NSString *)systemVersionString; @end + +#if defined(__clang_major__) && __clang_major__ >= 9 +#define SUAVAILABLE(major, minor) @available(macOS major##.##minor, *) +#else +#define SUAVAILABLE(major, minor) [SUOperatingSystem isOperatingSystemAtLeastVersion:(NSOperatingSystemVersion){major, minor, 0}] +#endif diff --git a/Sparkle/SUOperatingSystem.m b/Sparkle/SUOperatingSystem.m index fada18c3..6cda6499 100644 --- a/Sparkle/SUOperatingSystem.m +++ b/Sparkle/SUOperatingSystem.m @@ -32,7 +32,7 @@ NSURL *url = [coreServices URLByAppendingPathComponent:@"SystemVersion.plist"]; assert(url != nil); NSDictionary *dictionary = [NSDictionary dictionaryWithContentsOfURL:url]; - NSArray *components = [ [dictionary objectForKey: @"ProductVersion"] componentsSeparatedByString:@"."]; + NSArray *components = [ (NSString *)[dictionary objectForKey: @"ProductVersion"] componentsSeparatedByString:@"."]; version.majorVersion = components.count > 0 ? [ [components objectAtIndex:0] integerValue] : 0; version.minorVersion = components.count > 1 ? [ [components objectAtIndex:1] integerValue] : 0; version.patchVersion = components.count > 2 ? [ [components objectAtIndex:2] integerValue] : 0; diff --git a/Sparkle/SUPipedUnarchiver.m b/Sparkle/SUPipedUnarchiver.m index 3c3e2005..75493679 100644 --- a/Sparkle/SUPipedUnarchiver.m +++ b/Sparkle/SUPipedUnarchiver.m @@ -58,7 +58,7 @@ return ([self commandAndArgumentsConformingToTypeOfPath:path] != nil); } -+ (BOOL)unsafeIfArchiveIsNotValidated ++ (BOOL)mustValidateBeforeExtraction { return NO; } @@ -100,48 +100,54 @@ // Get the file size. NSDictionary *attributes = [[NSFileManager defaultManager] attributesOfItemAtPath:self.archivePath error:nil]; - NSUInteger expectedLength = [[attributes objectForKey:NSFileSize] unsignedIntegerValue]; + NSUInteger expectedLength = [(NSNumber *)[attributes objectForKey:NSFileSize] unsignedIntegerValue]; if (expectedLength > 0) { NSFileHandle *archiveInput = [NSFileHandle fileHandleForReadingAtPath:self.archivePath]; NSPipe *pipe = [NSPipe pipe]; - NSFileHandle *archiveOutput = [pipe fileHandleForWriting]; - NSTask *task = [[NSTask alloc] init]; [task setStandardInput:[pipe fileHandleForReading]]; [task setStandardError:[NSFileHandle fileHandleWithStandardError]]; [task setStandardOutput:[NSFileHandle fileHandleWithStandardOutput]]; [task setLaunchPath:command]; [task setArguments:[args arrayByAddingObject:destination]]; - [task launch]; - - NSUInteger bytesRead = 0; - do { - NSData *data = [archiveInput readDataOfLength:256*1024]; - NSUInteger len = [data length]; - if (!len) { - break; - } - bytesRead += len; - [archiveOutput writeData:data]; - [notifier notifyProgress:(double)bytesRead / (double)expectedLength]; + @try { + [task launch]; + } + @catch (NSException *e) { + error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUUnarchivingError userInfo:@{ NSLocalizedDescriptionKey:[NSString stringWithFormat:@"Extraction failed, -[NSTask launch] threw exception '%@'", e.description]}]; } - while(bytesRead < expectedLength); - [archiveOutput closeFile]; - - [task waitUntilExit]; - - if ([task terminationStatus] == 0) { - if (bytesRead == expectedLength) { - [notifier notifySuccess]; - return; - } else { - error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUUnarchivingError userInfo:@{ NSLocalizedDescriptionKey:[NSString stringWithFormat:@"Extraction failed, command '%@' got only %ld of %ld bytes", command, (long)bytesRead, (long)expectedLength]}]; - + if (!error) { + NSFileHandle *archiveOutput = [pipe fileHandleForWriting]; + NSUInteger bytesRead = 0; + do { + NSData *data = [archiveInput readDataOfLength:256*1024]; + NSUInteger len = [data length]; + if (!len) { + break; + } + bytesRead += len; + [archiveOutput writeData:data]; + [notifier notifyProgress:(double)bytesRead / (double)expectedLength]; + } + while(bytesRead < expectedLength); + + [archiveOutput closeFile]; + + [task waitUntilExit]; + + if ([task terminationStatus] == 0) { + if (bytesRead == expectedLength) { + [notifier notifySuccess]; + return; + } else { + error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUUnarchivingError userInfo:@{ NSLocalizedDescriptionKey:[NSString stringWithFormat:@"Extraction failed, command '%@' got only %ld of %ld bytes", command, (long)bytesRead, (long)expectedLength]}]; + + } + } else { + error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUUnarchivingError userInfo:@{ NSLocalizedDescriptionKey:[NSString stringWithFormat:@"Extraction failed, command '%@' returned %d", command, [task terminationStatus]]}]; } - } else { - error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUUnarchivingError userInfo:@{ NSLocalizedDescriptionKey:[NSString stringWithFormat:@"Extraction failed, command '%@' returned %d", command, [task terminationStatus]]}]; } } else { error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUUnarchivingError userInfo:@{ NSLocalizedDescriptionKey:[NSString stringWithFormat:@"Extraction failed, archive '%@' is empty", self.archivePath]}]; diff --git a/Sparkle/SUScheduledUpdateDriver.m b/Sparkle/SUScheduledUpdateDriver.m index a7a840db..1c023f4b 100644 --- a/Sparkle/SUScheduledUpdateDriver.m +++ b/Sparkle/SUScheduledUpdateDriver.m @@ -10,8 +10,11 @@ #import "SUUpdaterPrivate.h" #import "SUUpdaterDelegate.h" -@interface SUScheduledUpdateDriver () +#import "SUSystemUpdateInfo.h" +#import "SUAppcastItem.h" +@interface SUScheduledUpdateDriver () +- (BOOL)isItemReadyForPhasedRollout:(SUAppcastItem *)ui; @end @implementation SUScheduledUpdateDriver @@ -24,6 +27,28 @@ return self; } +- (BOOL)hostSupportsItem:(SUAppcastItem *)ui { + return [super hostSupportsItem:ui] && [self isItemReadyForPhasedRollout:ui]; +} + +- (BOOL)isItemReadyForPhasedRollout:(SUAppcastItem *)ui { + if([ui isCriticalUpdate] || ![ui phasedRolloutInterval]) { + return YES; + } + + NSDate* itemReleaseDate = ui.date; + if(!itemReleaseDate) { + return YES; + } + + NSTimeInterval timeSinceRelease = [[NSDate date] timeIntervalSinceDate:itemReleaseDate]; + + NSTimeInterval phasedRolloutInterval = [[ui phasedRolloutInterval] doubleValue]; + NSTimeInterval timeToWaitForGroup = phasedRolloutInterval * [SUSystemUpdateInfo updateGroupForHost:self.host]; + + return timeSinceRelease >= timeToWaitForGroup; +} + - (void)didFindValidUpdate { self.showErrors = YES; // We only start showing errors after we present the UI for the first time. @@ -47,4 +72,20 @@ return YES; } +- (BOOL)shouldShowUpdateAlertForItem:(SUAppcastItem *)item { + id updater = self.updater; + id updaterDelegate = [updater delegate]; + + if ([updaterDelegate respondsToSelector:@selector(updaterShouldShowUpdateAlertForScheduledUpdate:forItem:)]) { + return [updaterDelegate updaterShouldShowUpdateAlertForScheduledUpdate:self.updater forItem:item]; + } + + return [super shouldShowUpdateAlertForItem:item]; +} + +- (void)downloaderDidFinishWithTemporaryDownloadData:(SPUDownloadData * _Nullable) downloadData { + [SUSystemUpdateInfo setNewUpdateGroupIdentifierForHost:self.host]; // use new update group next time + [super downloaderDidFinishWithTemporaryDownloadData:downloadData]; +} + @end diff --git a/Sparkle/SUSignatureVerifier.h b/Sparkle/SUSignatureVerifier.h new file mode 100644 index 00000000..e3643c7a --- /dev/null +++ b/Sparkle/SUSignatureVerifier.h @@ -0,0 +1,32 @@ +// +// SUDSAVerifier.h +// Sparkle +// +// Created by Andy Matuschak on 3/16/06. +// Copyright 2006 Andy Matuschak. All rights reserved. +// +// Includes code by Zach Waldowski on 10/18/13. +// Copyright 2014 Big Nerd Ranch. Licensed under MIT. +// +// Includes code from Plop by Mark Hamlin. +// Copyright 2011 Mark Hamlin. Licensed under BSD. +// + +#ifndef SUDSAVERIFIER_H +#define SUDSAVERIFIER_H + +#import +@class SUSignatures; +@class SUPublicKeys; + +@interface SUSignatureVerifier : NSObject + ++ (BOOL)validatePath:(NSString *)path withSignatures:(SUSignatures *)signatures withPublicKeys:(SUPublicKeys *)pkeys; + +- (instancetype)initWithPublicKeys:(SUPublicKeys *)pkeys; + +- (BOOL)verifyFileAtPath:(NSString *)path signatures:(SUSignatures *)signatures; + +@end + +#endif diff --git a/Sparkle/SUDSAVerifier.m b/Sparkle/SUSignatureVerifier.m similarity index 51% rename from Sparkle/SUDSAVerifier.m rename to Sparkle/SUSignatureVerifier.m index a0fa38a9..d0727e35 100644 --- a/Sparkle/SUDSAVerifier.m +++ b/Sparkle/SUSignatureVerifier.m @@ -12,43 +12,46 @@ // Copyright 2011 Mark Hamlin. Licensed under BSD. // -#import "SUDSAVerifier.h" +#import "SUSignatureVerifier.h" #import "SULog.h" +#import "SUSignatures.h" #include +#import "ed25519.h" // Run `git submodule update --init` if you get an error here #include "AppKitPrevention.h" -@implementation SUDSAVerifier { - SecKeyRef _secKey; +@interface SUSignatureVerifier () +@property (readonly) SUPublicKeys *pubKeys; +@end + +@implementation SUSignatureVerifier { } -+ (BOOL)validatePath:(NSString *)path withEncodedDSASignature:(NSString *)encodedSignature withPublicDSAKey:(NSString *)pkeyString +@synthesize pubKeys = _pubKeys; + ++ (BOOL)validatePath:(NSString *)path withSignatures:(SUSignatures *)signatures withPublicKeys:(SUPublicKeys *)pkeys { - if (!encodedSignature) { - SULog(SULogLevelError, @"There is no DSA signature to check"); - return NO; - } - - if (!path) { - return NO; - } - - SUDSAVerifier *verifier = [[self alloc] initWithPublicKeyData:[pkeyString dataUsingEncoding:NSUTF8StringEncoding]]; + SUSignatureVerifier *verifier = [(SUSignatureVerifier *)[self alloc] initWithPublicKeys:pkeys]; if (!verifier) { return NO; } - NSString *strippedSignature = [encodedSignature stringByTrimmingCharactersInSet:NSCharacterSet.whitespaceAndNewlineCharacterSet]; - NSData *signature = [[NSData alloc] initWithBase64Encoding:strippedSignature]; - return [verifier verifyFileAtPath:path signature:signature]; + return [verifier verifyFileAtPath:path signatures:signatures]; } -- (instancetype)initWithPublicKeyData:(NSData *)data +- (instancetype)initWithPublicKeys:(SUPublicKeys *)pubkeys { self = [super init]; + _pubKeys = pubkeys; + return self; +} + +- (SecKeyRef)dsaSecKeyRef { + + NSData *data = [self.pubKeys.dsaPubKey dataUsingEncoding:NSASCIIStringEncoding]; if (!self || !data.length) { SULog(SULogLevelError, @"Could not read public DSA key"); return nil; @@ -67,40 +70,85 @@ return nil; } + SecKeyRef dsaPubKeySecKey = nil; if (format == kSecFormatOpenSSL && itemType == kSecItemTypePublicKey && CFArrayGetCount(items) == 1) { // Seems silly, but we can't quiet the warning about dropping CFTypeRef's const qualifier through // any manner of casting I've tried, including interim explicit cast to void*. The -Wcast-qual // warning is on by default with -Weverything and apparently became more noisy as of Xcode 7. #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wcast-qual" - _secKey = (SecKeyRef)CFRetain(CFArrayGetValueAtIndex(items, 0)); + dsaPubKeySecKey = (SecKeyRef)CFRetain(CFArrayGetValueAtIndex(items, 0)); #pragma clang diagnostic pop } CFRelease(items); - - return self; + return dsaPubKeySecKey; } -- (void)dealloc +- (BOOL)verifyFileAtPath:(NSString *)path signatures:(SUSignatures *)signatures { - if (_secKey) { - CFRelease(_secKey); - } -} - -- (BOOL)verifyFileAtPath:(NSString *)path signature:(NSData *)signature -{ - if (!path.length) { + if (!path || !path.length) { return NO; } - NSInputStream *dataInputStream = [NSInputStream inputStreamWithFileAtPath:path]; - return [self verifyStream:dataInputStream signature:signature]; + + if (!signatures) { + SULog(SULogLevelDefault, @"No signatures given to verifyFileAtPath"); + return NO; + } + + NSData *dsaSignature = signatures.dsaSignature; + NSString *dsaPubKey = self.pubKeys.dsaPubKey; + + const unsigned char *edSignature = signatures.ed25519Signature; + const unsigned char *edPubKey = self.pubKeys.ed25519PubKey; + + if (edPubKey && !edSignature) { + SULog(SULogLevelDefault, @"There is no EdDSA signature in the update, but the app is capable of verifying them"); + } if (!edPubKey && edSignature) { + SULog(SULogLevelDefault, @"The update has an EdDSA signature, but it won't be used, because the old app doesn't have an EdDSA public key"); + } else if (edPubKey && edSignature) { + NSError *error = nil; + NSData *data = [NSData dataWithContentsOfFile:path options:NSDataReadingMappedAlways error:&error]; + if (!data || !data.length) { + SULog(SULogLevelError, @"Failed to load file %@: %@", path, error); + return NO; + } + if (ed25519_verify(edSignature, data.bytes, data.length, edPubKey)) { + SULog(SULogLevelDefault, @"OK: EdDSA signature is correct"); + if (!dsaPubKey) { + return YES; + } else { + SULog(SULogLevelDefault, @"This app has a DSA public key, so a DSA signature is required too"); + } + } else { + SULog(SULogLevelError, @"EdDSA signature does not match. Data of the update file being checked is different than data that has been signed, or the public key and the private key are not from the same set."); + if (dsaSignature) { + SULog(SULogLevelDefault, @"DSA signature won't be checked, because EdDSA verification has already failed"); + } + return NO; + } + } + + if (!dsaSignature) { + SULog(SULogLevelError, @"There is no DSA signature in the update"); + } else if (!dsaPubKey) { + SULog(SULogLevelDefault, @"The update has a DSA signature, but it can't be used, because the old app doesn't have a DSA public key"); + } else { + NSInputStream *dataInputStream = [NSInputStream inputStreamWithFileAtPath:path]; + return [self verifyDSASignatureOfStream:dataInputStream dsaSignature:dsaSignature]; + } + return NO; } -- (BOOL)verifyStream:(NSInputStream *)stream signature:(NSData *)signature +- (BOOL)verifyDSASignatureOfStream:(NSInputStream *)stream dsaSignature:(NSData *)dsaSignature { - if (!stream || !signature) { + if (!stream || !dsaSignature) { + SULog(SULogLevelError, @"Invalid arguments to verifyStream"); + return NO; + } + + SecKeyRef dsaPubKeySecKey = [self dsaSecKeyRef]; + if (!dsaPubKeySecKey) { return NO; } @@ -116,6 +164,7 @@ if (dataDigestTransform) CFRelease(dataDigestTransform); if (dataVerifyTransform) CFRelease(dataVerifyTransform); if (error) CFRelease(error); + if (dsaPubKeySecKey) CFRelease(dsaPubKeySecKey); return NO; }; @@ -132,10 +181,10 @@ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wdirect-ivar-access" - dataVerifyTransform = SecVerifyTransformCreate(_secKey, (__bridge CFDataRef)signature, &error); + dataVerifyTransform = SecVerifyTransformCreate(dsaPubKeySecKey, (__bridge CFDataRef)dsaSignature, &error); #pragma clang diagnostic pop if (!dataVerifyTransform || error) { - SULog(SULogLevelError, @"Could not understand format of the signature: %@; Signature data: %@", error, signature); + SULog(SULogLevelError, @"Could not understand format of the signature: %@; Signature data: %@", error, dsaSignature); return cleanup(); } diff --git a/Sparkle/SUSignatures.h b/Sparkle/SUSignatures.h new file mode 100644 index 00000000..5b3e40ca --- /dev/null +++ b/Sparkle/SUSignatures.h @@ -0,0 +1,40 @@ +// +// SUSignatures.h +// Sparkle +// +// Created by Kornel on 15/09/2018. +// Copyright © 2018 Sparkle Project. All rights reserved. +// + +#import + +#if __MAC_OS_X_VERSION_MAX_ALLOWED < 1090 +@interface NSData (SUDSAVerifier) +- (id)initWithBase64Encoding:(NSString *)base64String; +@end +#endif + +NS_ASSUME_NONNULL_BEGIN + +@interface SUSignatures : NSObject { + unsigned char ed25519_signature[64]; +} +@property (strong, readonly, nullable) NSData *dsaSignature; +@property (readonly, nullable, nonatomic) const unsigned char *ed25519Signature; + +- (instancetype)initWithDsa:(NSString * _Nullable)dsa ed:(NSString * _Nullable)ed; +@end + + +@interface SUPublicKeys : NSObject { + unsigned char ed25519_public_key[32]; +} +@property (strong, readonly, nullable) NSString *dsaPubKey; +@property (readonly, nullable, nonatomic) const unsigned char *ed25519PubKey; + +- (instancetype)initWithDsa:(NSString * _Nullable)dsa ed:(NSString * _Nullable)ed; +- (BOOL) isEqualToKey:(SUPublicKeys *)key; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Sparkle/SUSignatures.m b/Sparkle/SUSignatures.m new file mode 100644 index 00000000..8e07d7e7 --- /dev/null +++ b/Sparkle/SUSignatures.m @@ -0,0 +1,96 @@ +// +// SUSignatures.m +// Sparkle +// +// Created by Kornel on 15/09/2018. +// Copyright © 2018 Sparkle Project. All rights reserved. +// + +#import "SUSignatures.h" +#import +#import "SULog.h" + +@implementation SUSignatures +@synthesize dsaSignature = _dsaSignature; + +static NSData *decode(NSString *str) { + if (str == nil) { + return nil; + } + + NSString *stripped = [str stringByTrimmingCharactersInSet:NSCharacterSet.whitespaceAndNewlineCharacterSet]; + return [[NSData alloc] initWithBase64Encoding:stripped]; +} + +- (instancetype)initWithDsa:(NSString * _Nullable)maybeDsa ed:(NSString * _Nullable)maybeEd25519 +{ + self = [super init]; + if (self) { + if (maybeDsa != nil) { + _dsaSignature = decode(maybeDsa); + } + if (maybeEd25519 != nil) { + NSData *data = decode(maybeEd25519); + assert(64 == sizeof(self->ed25519_signature)); + [data getBytes:self->ed25519_signature length:sizeof(self->ed25519_signature)]; + } + } + return self; +} + +- (const unsigned char *)ed25519Signature { +// Xcode may enable this in pedantic mode +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdirect-ivar-access" + for(size_t i=0; i < sizeof(self->ed25519_signature); i++) { + if (self->ed25519_signature[i] != 0) { + return self->ed25519_signature; + } + } + return NULL; +#pragma clang diagnostic pop +} + +@end + +@implementation SUPublicKeys +@synthesize dsaPubKey = _dsaPubKey; + +- (instancetype)initWithDsa:(NSString * _Nullable)maybeDsa ed:(NSString * _Nullable)maybeEd25519 +{ + self = [super init]; + if (self) { + _dsaPubKey = maybeDsa; + if (maybeEd25519 != nil) { + NSData *ed = decode(maybeEd25519); + assert(32 == sizeof(self->ed25519_public_key)); + [ed getBytes:self->ed25519_public_key length:sizeof(self->ed25519_public_key)]; + } + } + return self; +} + +- (BOOL) isEqualToKey:(SUPublicKeys *)key { + NSString *thisKey = self.dsaPubKey; + NSString *thatKey = key.dsaPubKey; + if (thisKey == nil || thatKey == nil) { + return NO; + } + return NO; +} + + +- (const unsigned char *)ed25519PubKey { +// Xcode may enable this in pedantic mode +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdirect-ivar-access" + for(size_t i=0; i < sizeof(self->ed25519_public_key); i++) { + if (self->ed25519_public_key[i] != 0) { + return self->ed25519_public_key; + } + } + return NULL; +#pragma clang diagnostic pop +} + +@end diff --git a/Sparkle/SUStatusController.m b/Sparkle/SUStatusController.m index 79661065..b51fe7fe 100644 --- a/Sparkle/SUStatusController.m +++ b/Sparkle/SUStatusController.m @@ -57,7 +57,7 @@ static NSString *const SUStatusControllerTouchBarIndentifier = @"" SPARKLE_BUNDL [[self window] setFrameAutosaveName:@"SUStatusFrame"]; [self.progressBar setUsesThreadedAnimation:YES]; - if ([SUOperatingSystem isOperatingSystemAtLeastVersion:(NSOperatingSystemVersion){10, 11, 0}]) { + if (SUAVAILABLE(10, 11)) { #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wpartial-availability" [self.statusTextField setFont:[NSFont monospacedDigitSystemFontOfSize:0 weight:NSFontWeightRegular]]; @@ -136,7 +136,7 @@ static NSString *const SUStatusControllerTouchBarIndentifier = @"" SPARKLE_BUNDL - (NSTouchBar *)makeTouchBar { - NSTouchBar *touchBar = [[NSClassFromString(@"NSTouchBar") alloc] init]; + NSTouchBar *touchBar = [(NSTouchBar *)[NSClassFromString(@"NSTouchBar") alloc] init]; touchBar.defaultItemIdentifiers = @[ SUStatusControllerTouchBarIndentifier,]; touchBar.principalItemIdentifier = SUStatusControllerTouchBarIndentifier; touchBar.delegate = self; diff --git a/Sparkle/SUSystemUpdateInfo.h b/Sparkle/SUSystemUpdateInfo.h index 28f89978..7643caf8 100644 --- a/Sparkle/SUSystemUpdateInfo.h +++ b/Sparkle/SUSystemUpdateInfo.h @@ -16,6 +16,10 @@ NS_ASSUME_NONNULL_BEGIN + (BOOL)systemAllowsAutomaticUpdatesForHost:(SUHost *)host; ++ (NSUInteger)updateGroupForHost:(SUHost*)host; ++ (NSNumber*)updateGroupIdentifierForHost:(SUHost*)host; ++ (NSNumber*)setNewUpdateGroupIdentifierForHost:(SUHost*)host; + @end NS_ASSUME_NONNULL_END diff --git a/Sparkle/SUSystemUpdateInfo.m b/Sparkle/SUSystemUpdateInfo.m index 78325eae..aefb35a4 100644 --- a/Sparkle/SUSystemUpdateInfo.m +++ b/Sparkle/SUSystemUpdateInfo.m @@ -58,4 +58,28 @@ return changeOwnerAndGroupSuccess; } +#define NUM_UPDATE_GROUPS 7 ++ (NSUInteger)updateGroupForHost:(SUHost*)host { + NSNumber* updateGroupIdentifier = [self updateGroupIdentifierForHost:host]; + return ([updateGroupIdentifier unsignedIntValue] % NUM_UPDATE_GROUPS); +} + ++ (NSNumber*)updateGroupIdentifierForHost:(SUHost*)host { + NSNumber* updateGroupIdentifier = [host objectForInfoDictionaryKey:SUUpdateGroupIdentifierKey]; + if(updateGroupIdentifier == nil) { + updateGroupIdentifier = [self setNewUpdateGroupIdentifierForHost:host]; + } + + return updateGroupIdentifier; +} + ++ (NSNumber*)setNewUpdateGroupIdentifierForHost:(SUHost*)host { + unsigned int r = arc4random_uniform(UINT_MAX); + NSNumber* updateGroupIdentifier = @(r); + + [host setObject:updateGroupIdentifier forUserDefaultsKey:SUUpdateGroupIdentifierKey]; + + return updateGroupIdentifier; +} + @end diff --git a/Sparkle/SUUIBasedUpdateDriver.h b/Sparkle/SUUIBasedUpdateDriver.h index 0c9f3914..1b91132b 100644 --- a/Sparkle/SUUIBasedUpdateDriver.h +++ b/Sparkle/SUUIBasedUpdateDriver.h @@ -20,6 +20,7 @@ - (void)showAlert:(NSAlert *)alert; - (IBAction)cancelDownload:(id)sender; - (void)installAndRestart:(id)sender; +- (BOOL)shouldShowUpdateAlertForItem:(SUAppcastItem *)item; @end diff --git a/Sparkle/SUUIBasedUpdateDriver.m b/Sparkle/SUUIBasedUpdateDriver.m index 6b0092bc..6fa6e6b9 100644 --- a/Sparkle/SUUIBasedUpdateDriver.m +++ b/Sparkle/SUUIBasedUpdateDriver.m @@ -56,6 +56,10 @@ return self; } +- (BOOL)shouldShowUpdateAlertForItem:(SUAppcastItem *)__unused item { + return YES; +} + - (void)didFindValidUpdate { id updater = self.updater; @@ -64,12 +68,18 @@ } if (self.automaticallyInstallUpdates) { - [self updateAlertFinishedWithChoice:SUInstallUpdateChoice]; + [self updateAlertFinishedWithChoice:SUInstallUpdateChoice forItem:nil]; return; } - self.updateAlert = [[SUUpdateAlert alloc] initWithAppcastItem:self.updateItem host:self.host completionBlock:^(SUUpdateAlertChoice choice) { - [self updateAlertFinishedWithChoice:choice]; + SUAppcastItem *updateItem = self.updateItem; + if (![self shouldShowUpdateAlertForItem:updateItem]) { + [self abortUpdate]; + return; + } + + self.updateAlert = [[SUUpdateAlert alloc] initWithAppcastItem:updateItem host:self.host completionBlock:^(SUUpdateAlertChoice choice) { + [self updateAlertFinishedWithChoice:choice forItem:updateItem]; }]; id versDisp = nil; @@ -110,9 +120,25 @@ if (!self.automaticallyInstallUpdates) { NSAlert *alert = [[NSAlert alloc] init]; - alert.messageText = SULocalizedString(@"You're up-to-date!", "Status message shown when the user checks for updates but is already current or the feed doesn't contain any updates."); - alert.informativeText = [NSString stringWithFormat:SULocalizedString(@"%@ %@ is currently the newest version available.", nil), [self.host name], [self.host displayVersion]]; - [alert addButtonWithTitle:SULocalizedString(@"OK", nil)]; + + if (self.latestAppcastItem) // if the appcast was successfully loaded + { + alert.messageText = SULocalizedString(@"You're up-to-date!", "Status message shown when the user checks for updates but is already current or the feed doesn't contain any updates."); + + if (self.latestAppcastItemComparisonResult == NSOrderedDescending ) { // this means the user is a 'newer than latest' version. give a slight hint to the user instead of wrongly claiming this version is identical to the latest feed version. + alert.informativeText = [NSString stringWithFormat:SULocalizedString(@"%@ %@ is currently the newest version available.\n(You are currently running version %@.)", nil), [self.host name], self.latestAppcastItem.versionString, [self.host displayVersion]]; + } + else { + alert.informativeText = [NSString stringWithFormat:SULocalizedString(@"%@ %@ is currently the newest version available.", nil), [self.host name], [self.host displayVersion]]; + } + [alert addButtonWithTitle:SULocalizedString(@"OK", nil)]; + } + else { + alert.messageText = SULocalizedString(@"Update Error!", nil); + alert.informativeText = SULocalizedString(@"No valid update information could be loaded.", nil); + [alert addButtonWithTitle:SULocalizedString(@"Cancel Update", nil)]; + } + [self showAlert:alert]; } @@ -125,26 +151,40 @@ [[NSNotificationCenter defaultCenter] removeObserver:self name:NSApplicationDidBecomeActiveNotification object:NSApp]; } -- (void)updateAlertFinishedWithChoice:(SUUpdateAlertChoice)choice +- (void)didDismissAlertPermanently:(BOOL)permanently forItem:(SUAppcastItem *)item { + if (item == nil) { + return; + } + id updater = self.updater; + if ([updater.delegate respondsToSelector:@selector(updater:didDismissUpdateAlertPermanently:forItem:)]) { + [updater.delegate updater:self.updater didDismissUpdateAlertPermanently:permanently forItem:item]; + } +} + +- (void)updateAlertFinishedWithChoice:(SUUpdateAlertChoice)choice forItem:(SUAppcastItem *)item { self.updateAlert = nil; [self.host setObject:nil forUserDefaultsKey:SUSkippedVersionKey]; switch (choice) { case SUInstallUpdateChoice: + [self didDismissAlertPermanently:NO forItem:item]; [self downloadUpdate]; break; case SUOpenInfoURLChoice: + [self didDismissAlertPermanently:NO forItem:item]; [[NSWorkspace sharedWorkspace] openURL:[self.updateItem infoURL]]; [self abortUpdate]; break; case SUSkipThisVersionChoice: + [self didDismissAlertPermanently:YES forItem:item]; [self.host setObject:[self.updateItem versionString] forUserDefaultsKey:SUSkippedVersionKey]; [self abortUpdate]; break; case SURemindMeLaterChoice: + [self didDismissAlertPermanently:NO forItem:item]; [self abortUpdate]; break; } diff --git a/Sparkle/SUUnarchiverProtocol.h b/Sparkle/SUUnarchiverProtocol.h index 25a7797d..4be1ea49 100644 --- a/Sparkle/SUUnarchiverProtocol.h +++ b/Sparkle/SUUnarchiverProtocol.h @@ -14,7 +14,7 @@ NS_ASSUME_NONNULL_BEGIN + (BOOL)canUnarchivePath:(NSString *)path; -+ (BOOL)unsafeIfArchiveIsNotValidated; ++ (BOOL)mustValidateBeforeExtraction; - (void)unarchiveWithCompletionBlock:(void (^)(NSError * _Nullable))completionBlock progressBlock:(void (^ _Nullable)(double))progressBlock; diff --git a/Sparkle/SUUpdateAlert.m b/Sparkle/SUUpdateAlert.m index c635274f..59ddd32e 100644 --- a/Sparkle/SUUpdateAlert.m +++ b/Sparkle/SUUpdateAlert.m @@ -21,6 +21,7 @@ #import "SUAppcastItem.h" #import "SUApplicationInfo.h" #import "SUSystemUpdateInfo.h" +#import "SUOperatingSystem.h" #import "SUTouchBarForwardDeclarations.h" #import "SUTouchBarButtonGroup.h" @@ -33,9 +34,11 @@ static NSString *const SUUpdateAlertTouchBarIndentifier = @"" SPARKLE_BUNDLE_IDE @end @protocol WebPolicyDelegate @end +@protocol WebUIDelegate +@end #endif -@interface SUUpdateAlert () +@interface SUUpdateAlert () @property (strong) SUAppcastItem *updateItem; @property (strong) SUHost *host; @@ -43,6 +46,7 @@ static NSString *const SUUpdateAlertTouchBarIndentifier = @"" SPARKLE_BUNDLE_IDE @property (strong) NSProgressIndicator *releaseNotesSpinner; @property (assign) BOOL webViewFinishedLoading; +@property (assign) BOOL observingAppearance; @property (weak) IBOutlet WebView *releaseNotesView; @property (weak) IBOutlet NSView *releaseNotesContainerView; @@ -64,6 +68,7 @@ static NSString *const SUUpdateAlertTouchBarIndentifier = @"" SPARKLE_BUNDLE_IDE @synthesize releaseNotesSpinner; @synthesize webViewFinishedLoading; +@synthesize observingAppearance; @synthesize releaseNotesView; @synthesize releaseNotesContainerView; @@ -91,6 +96,23 @@ static NSString *const SUUpdateAlertTouchBarIndentifier = @"" SPARKLE_BUNDLE_IDE return self; } +- (void)dealloc { +#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 101400 + if (SUAVAILABLE(10, 14)) { + if (self.observingAppearance) { + [self.window removeObserver:self forKeyPath:@"effectiveAppearance"]; + self.observingAppearance = NO; + } + } +#endif +} + +- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(__attribute__((unused)) NSDictionary *)change context:(__attribute__((unused)) void *)context { + if (object == self.window && [keyPath isEqualToString:@"effectiveAppearance"]) { + [self adaptReleaseNotesAppearance]; + } +} + - (NSString *)description { return [NSString stringWithFormat:@"%@ <%@>", [self class], [self.host bundlePath]]; } - (void)disableKeyboardShortcutForInstallButton { @@ -100,8 +122,9 @@ static NSString *const SUUpdateAlertTouchBarIndentifier = @"" SPARKLE_BUNDLE_IDE - (void)endWithSelection:(SUUpdateAlertChoice)choice { [self.releaseNotesView stopLoading:self]; - [self.releaseNotesView setFrameLoadDelegate:nil]; - [self.releaseNotesView setPolicyDelegate:nil]; + self.releaseNotesView.frameLoadDelegate = nil; + self.releaseNotesView.policyDelegate = nil; + self.releaseNotesView.UIDelegate = nil; [self.releaseNotesView removeFromSuperview]; // Otherwise it gets sent Esc presses (why?!) and gets very confused. [self close]; self.completionBlock(choice); @@ -137,12 +160,32 @@ static NSString *const SUUpdateAlertTouchBarIndentifier = @"" SPARKLE_BUNDLE_IDE prefs.javaScriptEnabled = [self.host boolForInfoDictionaryKey:SUEnableJavaScriptKey]; self.releaseNotesView.frameLoadDelegate = self; self.releaseNotesView.policyDelegate = self; + self.releaseNotesView.UIDelegate = self; // Set the default font // "-apple-system-font" is a reference to the system UI font. "-apple-system" is the new recommended token, but for backward compatibility we can't use it. prefs.standardFontFamily = @"-apple-system-font"; prefs.defaultFontSize = (int)[NSFont systemFontSize]; +#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 101400 + if (SUAVAILABLE(10, 14)) + { + NSBox *darkBackgroundView = [[NSBox alloc] initWithFrame:self.releaseNotesView.frame]; + darkBackgroundView.boxType = NSBoxCustom; + darkBackgroundView.fillColor = [NSColor textBackgroundColor]; + darkBackgroundView.borderColor = [NSColor clearColor]; + // Using auto-resizing mask instead of contraints works well enough + darkBackgroundView.autoresizingMask = NSViewWidthSizable | NSViewHeightSizable; + [self.releaseNotesView.superview addSubview:darkBackgroundView positioned:NSWindowBelow relativeTo:self.releaseNotesView]; + self.releaseNotesView.drawsBackground = NO; + + prefs.userStyleSheetLocation = [[NSBundle bundleForClass:[self class]] URLForResource:@"DarkAqua" withExtension:@"css"]; + if (!self.observingAppearance) { + [self.window addObserver:self forKeyPath:@"effectiveAppearance" options:NSKeyValueObservingOptionInitial context:nil]; + self.observingAppearance = YES; + } + } +#endif // Stick a nice big spinner in the middle of the web view until the page is loaded. NSRect frame = [[self.releaseNotesView superview] frame]; self.releaseNotesSpinner = [[NSProgressIndicator alloc] initWithFrame:NSMakeRect(NSMidX(frame) - 16, NSMidY(frame) - 16, 32, 32)]; @@ -263,7 +306,22 @@ static NSString *const SUUpdateAlertTouchBarIndentifier = @"" SPARKLE_BUNDLE_IDE return finalString; } -- (void)webView:(WebView *)sender didFinishLoadForFrame:frame +- (void)adaptReleaseNotesAppearance +{ +#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 101400 + if (SUAVAILABLE(10, 14)) + { +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunguarded-availability" + NSAppearanceName bestAppearance = [self.window.effectiveAppearance bestMatchFromAppearancesWithNames:@[NSAppearanceNameAqua, NSAppearanceNameDarkAqua]]; + BOOL isDarkAqua = ([bestAppearance isEqualToString:NSAppearanceNameDarkAqua]); + self.releaseNotesView.preferences.userStyleSheetEnabled = isDarkAqua; +#pragma clang diagnostic pop + } +#endif +} + +- (void)webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *)frame { if ([frame parentFrame] == nil) { self.webViewFinishedLoading = YES; @@ -329,7 +387,7 @@ static NSString *const SUUpdateAlertTouchBarIndentifier = @"" SPARKLE_BUNDLE_IDE - (NSTouchBar *)makeTouchBar { - NSTouchBar *touchBar = [[NSClassFromString(@"NSTouchBar") alloc] init]; + NSTouchBar *touchBar = [(NSTouchBar *)[NSClassFromString(@"NSTouchBar") alloc] init]; touchBar.defaultItemIdentifiers = @[SUUpdateAlertTouchBarIndentifier,]; touchBar.principalItemIdentifier = SUUpdateAlertTouchBarIndentifier; touchBar.delegate = self; diff --git a/Sparkle/SUUpdatePermissionPrompt.h b/Sparkle/SUUpdatePermissionPrompt.h index 53f8b0da..7d1fdffd 100644 --- a/Sparkle/SUUpdatePermissionPrompt.h +++ b/Sparkle/SUUpdatePermissionPrompt.h @@ -24,7 +24,7 @@ typedef NS_ENUM(NSInteger, SUPermissionPromptResult) { + (void)promptWithHost:(SUHost *)host systemProfile:(NSArray *)profile reply:(void (^)(SUUpdatePermissionResponse *))reply; - (IBAction)toggleMoreInfo:(id)sender; -- (IBAction)finishPrompt:(id)sender; +- (IBAction)finishPrompt:(NSButton *)sender; @end #endif diff --git a/Sparkle/SUUpdatePermissionPrompt.m b/Sparkle/SUUpdatePermissionPrompt.m index 4000fd85..f038af2b 100644 --- a/Sparkle/SUUpdatePermissionPrompt.m +++ b/Sparkle/SUUpdatePermissionPrompt.m @@ -52,7 +52,7 @@ static NSString *const SUUpdatePermissionPromptTouchBarIndentifier = @"" SPARKLE - (BOOL)shouldAskAboutProfile { - return [[self.host objectForInfoDictionaryKey:SUEnableSystemProfilingKey] boolValue]; + return [(NSNumber *)[self.host objectForInfoDictionaryKey:SUEnableSystemProfilingKey] boolValue]; } - (instancetype)initWithHost:(SUHost *)aHost systemProfile:(NSArray *)profile reply:(void (^)(SUUpdatePermissionResponse *))reply @@ -80,7 +80,7 @@ static NSString *const SUUpdatePermissionPromptTouchBarIndentifier = @"" SPARKLE } if (![NSApp modalWindow]) { // do not prompt if there is is another modal window on screen - SUUpdatePermissionPrompt *prompt = [[[self class] alloc] initWithHost:host systemProfile:profile reply:reply]; + SUUpdatePermissionPrompt *prompt = [(SUUpdatePermissionPrompt *)[[self class] alloc] initWithHost:host systemProfile:profile reply:reply]; NSWindow *window = [prompt window]; if (window) { [NSApp runModalForWindow:window]; @@ -159,7 +159,7 @@ static NSString *const SUUpdatePermissionPromptTouchBarIndentifier = @"" SPARKLE [self.moreInfoView setHidden:!self.isShowingMoreInfo]; } -- (IBAction)finishPrompt:(id)sender +- (IBAction)finishPrompt:(NSButton *)sender { SUUpdatePermissionResponse *response = [[SUUpdatePermissionResponse alloc] initWithAutomaticUpdateChecks:([sender tag] == 1) sendSystemProfile:self.shouldSendProfile]; self.reply(response); @@ -170,7 +170,7 @@ static NSString *const SUUpdatePermissionPromptTouchBarIndentifier = @"" SPARKLE - (NSTouchBar *)makeTouchBar { - NSTouchBar *touchBar = [[NSClassFromString(@"NSTouchBar") alloc] init]; + NSTouchBar *touchBar = [(NSTouchBar *)[NSClassFromString(@"NSTouchBar") alloc] init]; touchBar.defaultItemIdentifiers = @[SUUpdatePermissionPromptTouchBarIndentifier,]; touchBar.principalItemIdentifier = SUUpdatePermissionPromptTouchBarIndentifier; touchBar.delegate = self; diff --git a/Sparkle/SUUpdateValidator.h b/Sparkle/SUUpdateValidator.h index 0a5f14c6..f1f0ec39 100644 --- a/Sparkle/SUUpdateValidator.h +++ b/Sparkle/SUUpdateValidator.h @@ -9,16 +9,15 @@ #import @class SUHost; +@class SUSignatures; @interface SUUpdateValidator : NSObject -// Pass YES to performingPrevalidation if archive validation must be done immediately, before extraction -- (instancetype)initWithDownloadPath:(NSString *)downloadPath dsaSignature:(NSString *)dsaSignature host:(SUHost *)host performingPrevalidation:(BOOL)performingPrevalidation; +- (instancetype)initWithDownloadPath:(NSString *)downloadPath signatures:(SUSignatures *)signatures host:(SUHost *)host; -// Indicates whether we can perform (post) validation later -@property (nonatomic, readonly) BOOL canValidate; +// This is "pre" validation, before the archive has been extracted +- (BOOL)validateDownloadPath; -// precondition: validation must be possible (see -canValidate) // This is "post" validation, after an archive has been extracted - (BOOL)validateWithUpdateDirectory:(NSString *)updateDirectory; diff --git a/Sparkle/SUUpdateValidator.m b/Sparkle/SUUpdateValidator.m index e00652ef..0bcdf784 100644 --- a/Sparkle/SUUpdateValidator.m +++ b/Sparkle/SUUpdateValidator.m @@ -7,20 +7,21 @@ // #import "SUUpdateValidator.h" -#import "SUDSAVerifier.h" +#import "SUSignatureVerifier.h" #import "SUCodeSigningVerifier.h" #import "SUInstaller.h" #import "SUHost.h" #import "SULog.h" - +#import "SUSignatures.h" #include "AppKitPrevention.h" @interface SUUpdateValidator () @property (nonatomic, readonly) SUHost *host; -@property (nonatomic, readonly) BOOL prevalidatedDsaSignature; -@property (nonatomic, readonly) NSString *dsaSignature; +@property (nonatomic) BOOL prevalidatedSignature; +@property (nonatomic) BOOL downloadPrevalidationFailed; +@property (strong, nonatomic, readonly) SUSignatures *signatures; @property (nonatomic, readonly) NSString *downloadPath; @end @@ -28,59 +29,50 @@ @implementation SUUpdateValidator @synthesize host = _host; -@synthesize canValidate = _canValidate; -@synthesize prevalidatedDsaSignature = _prevalidatedDsaSignature; -@synthesize dsaSignature = _dsaSignature; +@synthesize prevalidatedSignature = _prevalidatedSignature; +@synthesize signatures = _signatures; +@synthesize downloadPrevalidationFailed = _downloadPrevalidationFailed; @synthesize downloadPath = _downloadPath; -- (instancetype)initWithDownloadPath:(NSString *)downloadPath dsaSignature:(NSString *)dsaSignature host:(SUHost *)host performingPrevalidation:(BOOL)performingPrevalidation +- (instancetype)initWithDownloadPath:(NSString *)downloadPath signatures:(SUSignatures *)signatures host:(SUHost *)host { self = [super init]; if (self != nil) { - BOOL canValidate; - BOOL prevalidatedDsaSignature; - if (performingPrevalidation) { - NSString *publicDSAKey = host.publicDSAKey; - - if (publicDSAKey == nil) { - prevalidatedDsaSignature = NO; - SULog(SULogLevelError, @"Failed to validate update before unarchiving because no DSA key was found"); - } else if (dsaSignature == nil) { - prevalidatedDsaSignature = NO; - SULog(SULogLevelError, @"Failed to validate update before unarchiving because no DSA signature was found"); - } else { - prevalidatedDsaSignature = [SUDSAVerifier validatePath:downloadPath withEncodedDSASignature:dsaSignature withPublicDSAKey:publicDSAKey]; - if (!prevalidatedDsaSignature) { - SULog(SULogLevelError, @"DSA signature validation before unarchiving failed for update %@", downloadPath); - } - } - - canValidate = prevalidatedDsaSignature; - } else { - prevalidatedDsaSignature = NO; - canValidate = YES; - } - - _canValidate = canValidate; - _prevalidatedDsaSignature = prevalidatedDsaSignature; _downloadPath = [downloadPath copy]; - _dsaSignature = [dsaSignature copy]; + _signatures = signatures; _host = host; } return self; } +- (BOOL)validateDownloadPath { + SUPublicKeys *publicKeys = self.host.publicKeys; + SUSignatures *signatures = self.signatures; + + if (publicKeys.dsaPubKey == nil && publicKeys.ed25519PubKey == nil) { + SULog(SULogLevelError, @"Failed to validate update before unarchiving because no (Ed)DSA public key was found in the old app"); + } else { + if ([SUSignatureVerifier validatePath:self.downloadPath withSignatures:signatures withPublicKeys:publicKeys]) { + self.prevalidatedSignature = YES; + return YES; + } + SULog(SULogLevelError, @"(Ed)DSA signature validation before unarchiving failed for update %@", self.downloadPath); + } + self.downloadPrevalidationFailed = YES; + return NO; +} + - (BOOL)validateWithUpdateDirectory:(NSString *)updateDirectory { - assert(self.canValidate); + if (self.downloadPrevalidationFailed) { + return NO; + } - NSString *DSASignature = self.dsaSignature; - NSString *publicDSAKey = self.host.publicDSAKey; + SUSignatures *signatures = self.signatures; + SUPublicKeys *publicKeys = self.host.publicKeys; NSString *downloadPath = self.downloadPath; SUHost *host = self.host; - BOOL prevalidatedDsaSignature = self.prevalidatedDsaSignature; - BOOL isPackage = NO; // install source could point to a new bundle or a package @@ -92,18 +84,18 @@ NSURL *installSourceURL = [NSURL fileURLWithPath:installSource]; - if (!prevalidatedDsaSignature) { + if (!self.prevalidatedSignature) { // Check to see if we have a package or bundle to validate if (isPackage) { // For package type updates, all we do is check if the DSA signature is valid - BOOL validationCheckSuccess = [SUDSAVerifier validatePath:downloadPath withEncodedDSASignature:DSASignature withPublicDSAKey:publicDSAKey]; + BOOL validationCheckSuccess = [SUSignatureVerifier validatePath:downloadPath withSignatures:signatures withPublicKeys:publicKeys]; if (!validationCheckSuccess) { SULog(SULogLevelError, @"DSA signature validation of the package failed. The update contains an installer package, and valid DSA signatures are mandatory for all installer packages. The update will be rejected. Sign the installer with a valid DSA key or use an .app bundle update instead."); } return validationCheckSuccess; } else { // For application bundle updates, we check both the DSA and Apple code signing signatures - return [self validateUpdateForHost:host downloadedToPath:downloadPath newBundleURL:installSourceURL DSASignature:DSASignature]; + return [self validateUpdateForHost:host downloadedToPath:downloadPath newBundleURL:installSourceURL signatures:signatures]; } } else if (isPackage) { // We shouldn't get here because we don't validate packages before extracting them currently @@ -131,7 +123,7 @@ * * old and new Code Signing identity are the same and valid * */ -- (BOOL)validateUpdateForHost:(SUHost *)host downloadedToPath:(NSString *)downloadedPath newBundleURL:(NSURL *)newBundleURL DSASignature:(NSString *)DSASignature +- (BOOL)validateUpdateForHost:(SUHost *)host downloadedToPath:(NSString *)downloadedPath newBundleURL:(NSURL *)newBundleURL signatures:(SUSignatures *)signatures { NSBundle *newBundle = [NSBundle bundleWithURL:newBundleURL]; if (newBundle == nil) { @@ -139,55 +131,83 @@ return NO; } - NSString *publicDSAKey = host.publicDSAKey; + SUPublicKeys *publicKeys = host.publicKeys; SUHost *newHost = [[SUHost alloc] initWithBundle:newBundle]; - NSString *newPublicDSAKey = newHost.publicDSAKey; + SUPublicKeys *newPublicKeys = newHost.publicKeys; + BOOL oldHasLegacyDSAKey = publicKeys.dsaPubKey != nil; + BOOL oldHasEdDSAKey = publicKeys.ed25519PubKey != nil; + BOOL oldHasAnyDSAKey = oldHasLegacyDSAKey || oldHasEdDSAKey; + BOOL newHasLegacyDSAKey = newPublicKeys.dsaPubKey != nil; + BOOL newHasEdDSAKey = newPublicKeys.ed25519PubKey != nil; + BOOL newHasAnyDSAKey = newHasLegacyDSAKey || newHasEdDSAKey; + BOOL migratesDSAKeys = oldHasLegacyDSAKey && !oldHasEdDSAKey && newHasEdDSAKey && !newHasLegacyDSAKey; + BOOL updateIsCodeSigned = [SUCodeSigningVerifier bundleAtURLIsCodeSigned:newHost.bundle.bundleURL]; + BOOL hostIsCodeSigned = [SUCodeSigningVerifier bundleAtURLIsCodeSigned:host.bundle.bundleURL]; - // Downgrade in DSA security should not be possible - if (publicDSAKey != nil && newPublicDSAKey == nil) { - SULog(SULogLevelError, @"A public DSA key is found in the old bundle but no public DSA key is found in the new update. For security reasons, the update will be rejected."); + // This is not essential for security, only a policy + if (oldHasAnyDSAKey && !newHasAnyDSAKey) { + SULog(SULogLevelError, @"A public (Ed)DSA key was found in the old bundle but no public (Ed)DSA key was found in the new update. Sparkle only supports rotation, but not removal of (Ed)DSA keys. Please add an EdDSA key to the new app."); return NO; } - BOOL dsaKeysMatch = (publicDSAKey == nil || newPublicDSAKey == nil) ? NO : [publicDSAKey isEqualToString:newPublicDSAKey]; + // Security-critical part starts here + BOOL passedDSACheck = NO; + BOOL passedCodeSigning = NO; + + if (oldHasAnyDSAKey) { + // it's critical to check against the old public key, rather than the new key + passedDSACheck = [SUSignatureVerifier validatePath:downloadedPath withSignatures:signatures withPublicKeys:publicKeys]; + } + + if (hostIsCodeSigned) { + NSError *error = nil; + passedCodeSigning = [SUCodeSigningVerifier codeSignatureAtBundleURL:host.bundle.bundleURL matchesSignatureAtBundleURL:newHost.bundle.bundleURL error:&error]; + } + // End of security-critical part // If the new DSA key differs from the old, then this check is not a security measure, because the new key is not trusted. // In that case, the check ensures that the app author has correctly used DSA keys, so that the app will be updateable in the next version. - // However if the new and old DSA keys are the same, then this is a security measure. - if (newPublicDSAKey != nil) { - if (![SUDSAVerifier validatePath:downloadedPath withEncodedDSASignature:DSASignature withPublicDSAKey:newPublicDSAKey]) { - SULog(SULogLevelError, @"DSA signature validation failed. The update has a public DSA key and is signed with a DSA key, but the %@ doesn't match the signature. The update will be rejected.", - dsaKeysMatch ? @"public key" : @"new public key shipped with the update"); + if (!passedDSACheck && newHasAnyDSAKey) { + if (![SUSignatureVerifier validatePath:downloadedPath withSignatures:signatures withPublicKeys:newPublicKeys]) { + SULog(SULogLevelError, @"The update has a public (Ed)DSA key, but the public key shipped with the update doesn't match the signature. To prevent future problems, the update will be rejected."); return NO; } } - BOOL updateIsCodeSigned = [SUCodeSigningVerifier bundleAtURLIsCodeSigned:newHost.bundle.bundleURL]; - if (dsaKeysMatch) { - NSError *error = nil; - if (updateIsCodeSigned && ![SUCodeSigningVerifier codeSignatureIsValidAtBundleURL:newHost.bundle.bundleURL error:&error]) { - SULog(SULogLevelError, @"The update archive has a valid DSA signature, but the app is also signed with Code Signing, which is corrupted: %@. The update will be rejected.", error); - return NO; - } + NSError *error = nil; + if (passedDSACheck && updateIsCodeSigned && ![SUCodeSigningVerifier codeSignatureIsValidAtBundleURL:newHost.bundle.bundleURL error:&error]) { + SULog(SULogLevelError, @"The update archive has a valid (Ed)DSA signature, but the app is also signed with Code Signing, which is corrupted: %@. The update will be rejected.", error); + return NO; + } + + // Either DSA must be valid, or Apple Code Signing must be valid. + // We allow failure of one of them, because this allows key rotation without breaking chain of trust. + if (passedDSACheck || passedCodeSigning) { + return YES; + } + + // Now this just explains the failure + + NSString *dsaStatus; + if (migratesDSAKeys) { + dsaStatus = @"migrates to new EdDSA keys without keeping the old DSA key for transition"; + } else if (newHasAnyDSAKey) { + dsaStatus = @"has a new (Ed)DSA key that doesn't match the previous one"; + } else if (oldHasAnyDSAKey) { + dsaStatus = @"removes the (Ed)DSA key"; } else { - BOOL hostIsCodeSigned = [SUCodeSigningVerifier bundleAtURLIsCodeSigned:host.bundle.bundleURL]; - - NSString *dsaStatus = newPublicDSAKey ? @"has a new DSA key that doesn't match the previous one" : (publicDSAKey ? @"removes the DSA key" : @"isn't signed with a DSA key"); - if (!hostIsCodeSigned || !updateIsCodeSigned) { - NSString *acsStatus = !hostIsCodeSigned ? @"old app hasn't been signed with app Code Signing" : @"new app isn't signed with app Code Signing"; - SULog(SULogLevelError, @"The update archive %@, and the %@. At least one method of signature verification must be valid. The update will be rejected.", dsaStatus, acsStatus); - return NO; - } - - NSError *error = nil; - if (![SUCodeSigningVerifier codeSignatureAtBundleURL:host.bundle.bundleURL matchesSignatureAtBundleURL:newHost.bundle.bundleURL error:&error]) { - SULog(SULogLevelError, @"The update archive %@, and the app is signed with a new Code Signing identity that doesn't match code signing of the original app: %@. At least one method of signature verification must be valid. The update will be rejected.", dsaStatus, error); - return NO; - } + dsaStatus = @"isn't signed with an EdDSA key"; } - return YES; + if (!hostIsCodeSigned || !updateIsCodeSigned) { + NSString *acsStatus = !hostIsCodeSigned ? @"old app hasn't been signed with app Code Signing" : @"new app isn't signed with app Code Signing"; + SULog(SULogLevelError, @"The update archive %@, and the %@. At least one method of signature verification must be valid. The update will be rejected.", dsaStatus, acsStatus); + } else { + SULog(SULogLevelError, @"The update archive %@, and the app is signed with a new Code Signing identity that doesn't match code signing of the original app: %@. At least one method of signature verification must be valid. The update will be rejected.", dsaStatus, error); + } + + return NO; } @end diff --git a/Sparkle/SUUpdater.h b/Sparkle/SUUpdater.h index a4744755..d05270f2 100644 --- a/Sparkle/SUUpdater.h +++ b/Sparkle/SUUpdater.h @@ -160,11 +160,7 @@ SU_EXPORT @interface SUUpdater : NSObject The keys of this dictionary are HTTP header fields (NSString) and values are corresponding values (NSString) */ -#if __has_feature(objc_generics) @property (copy) NSDictionary *httpHeaders; -#else -@property (copy) NSDictionary *httpHeaders; -#endif /*! A property indicating whether or not the user's system profile information is sent when checking for updates. @@ -193,6 +189,8 @@ SU_EXPORT @interface SUUpdater : NSObject For UI-less/daemon apps that aren't usually quit, instead of this function, you can use the delegate method SUUpdaterDelegate::updater:willInstallUpdateOnQuit:immediateInstallationInvocation: + or + SUUpdaterDelegate::updater:willInstallUpdateOnQuit:immediateInstallationBlock: to immediately start installation when an update was found. A progress dialog is shown but the user will never be prompted to read the diff --git a/Sparkle/SUUpdater.m b/Sparkle/SUUpdater.m index 3c2815bc..e1c7b1f8 100644 --- a/Sparkle/SUUpdater.m +++ b/Sparkle/SUUpdater.m @@ -25,6 +25,8 @@ #include #import "SUSystemProfiler.h" #import "SUSystemUpdateInfo.h" +#import "SUSignatures.h" +#import "SUOperatingSystem.h" NSString *const SUUpdaterDidFinishLoadingAppCastNotification = @"SUUpdaterDidFinishLoadingAppCastNotification"; NSString *const SUUpdaterDidFindValidUpdateNotification = @"SUUpdaterDidFindValidUpdateNotification"; @@ -68,7 +70,8 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification static NSMutableDictionary *sharedUpdaters = nil; static NSString *const SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaultsObservationContext"; -#ifdef DEBUG +// Debug is not defined in released builds and pedantic mode can enable -Wundef +#if defined(DEBUG) && DEBUG + (void)load { // Debug builds have different configurations for update check intervals @@ -88,7 +91,7 @@ static NSString *const SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaults if (bundle == nil) bundle = [NSBundle mainBundle]; id updater = [sharedUpdaters objectForKey:[NSValue valueWithNonretainedObject:bundle]]; if (updater == nil) { - updater = [[[self class] alloc] initForBundle:bundle]; + updater = [(SUUpdater *)[[self class] alloc] initForBundle:bundle]; } return updater; } @@ -138,30 +141,24 @@ static NSString *const SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaults } -(void)checkIfConfiguredProperly { - BOOL hasPublicDSAKey = [self.host publicDSAKey] != nil; + BOOL hasPublicKey = self.host.publicKeys.dsaPubKey != nil || self.host.publicKeys.ed25519PubKey != nil; BOOL isMainBundle = [self.host.bundle isEqualTo:[NSBundle mainBundle]]; BOOL hostIsCodeSigned = [SUCodeSigningVerifier bundleAtURLIsCodeSigned:self.host.bundle.bundleURL]; NSURL *feedURL = [self feedURL]; BOOL servingOverHttps = [[[feedURL scheme] lowercaseString] isEqualToString:@"https"]; + NSString *name = self.host.name; - if (!hasPublicDSAKey) { - // If we failed to retrieve a DSA key but the bundle specifies a path to one, we should consider this a configuration failure - NSString *publicDSAKeyFileKey = [self.host publicDSAKeyFileKey]; - if (publicDSAKeyFileKey != nil) { - [self showAlertText:SULocalizedString(@"Insecure update error!", nil) - informativeText:[NSString stringWithFormat:SULocalizedString(@"For security reasons, the file (%@) indicated by the '%@' key needs to exist in the bundle's Resources.", nil), publicDSAKeyFileKey, SUPublicDSAKeyFileKey]]; + if (!hasPublicKey) { + if (!isMainBundle) { + [self showAlertText:SULocalizedString(@"Auto-update not configured", nil) + informativeText:[NSString stringWithFormat:SULocalizedString(@"For security reasons, updates to %@ need to be signed with an EdDSA key. See Sparkle's documentation for more information.", nil), name]]; } else { - if (!isMainBundle) { - [self showAlertText:SULocalizedString(@"Insecure update error!", nil) - informativeText:SULocalizedString(@"For security reasons, you need to sign your updates with a DSA key. See Sparkle's documentation for more information.", nil)]; - } else { - if (!hostIsCodeSigned) { - [self showAlertText:SULocalizedString(@"Insecure update error!", nil) - informativeText:SULocalizedString(@"For security reasons, you need to code sign your application or sign your updates with a DSA key. See https://sparkle-project.org/documentation/ for more information.", nil)]; - } else if (!servingOverHttps) { - [self showAlertText:SULocalizedString(@"Insecure update error!", nil) - informativeText:SULocalizedString(@"For security reasons, you need to serve your updates over HTTPS and/or sign your updates with a DSA key. See https://sparkle-project.org/documentation/ for more information.", nil)]; - } + if (!hostIsCodeSigned) { + [self showAlertText:SULocalizedString(@"Auto-update not configured", nil) + informativeText:[NSString stringWithFormat:SULocalizedString(@"For security reasons, %@ needs to be code-signed or its updates need to be signed with an EdDSA key. See https://sparkle-project.org/documentation/ for more information.", nil), name]]; + } else if (!servingOverHttps) { + [self showAlertText:SULocalizedString(@"Auto-update not configured", nil) + informativeText:[NSString stringWithFormat:SULocalizedString(@"For security reasons, updates to %@ need to be served over HTTPS and/or signed with an EdDSA key. See https://sparkle-project.org/documentation/ for more information.", nil), name]]; } } } @@ -302,8 +299,11 @@ static NSString *const SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaults BOOL automatic = [self automaticallyDownloadsUpdates]; if (!automatic) { - if (@available(macOS 10.9, *)) { + if (SUAVAILABLE(10, 9)) { +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunguarded-availability" NSUserDefaults *defaults = [[NSUserDefaults alloc] initWithSuiteName:@"com.apple.notificationcenterui"]; +#pragma clang diagnostic pop BOOL dnd = [defaults boolForKey:@"doNotDisturb"]; if (dnd) { SULog(SULogLevelDefault, @"Delayed update, because Do Not Disturb is on"); @@ -315,7 +315,7 @@ static NSString *const SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaults } // Do not use reachability for a preflight check. This can be deceptive and a bad idea. Apple does not recommend doing it. - SUUpdateDriver *theUpdateDriver = [[(automatic ? [SUAutomaticUpdateDriver class] : [SUScheduledUpdateDriver class])alloc] initWithUpdater:self]; + SUUpdateDriver *theUpdateDriver = [(SUBasicUpdateDriver *)[(automatic ? [SUAutomaticUpdateDriver class] : [SUScheduledUpdateDriver class])alloc] initWithUpdater:self]; [self checkForUpdatesWithDriver:theUpdateDriver]; } @@ -537,7 +537,7 @@ static NSString *escapeURLComponent(NSString *str) { const NSTimeInterval oneWeek = 60 * 60 * 24 * 7; sendingSystemProfile &= (-[lastSubmitDate timeIntervalSinceNow] >= oneWeek); - NSArray *parameters = @[]; + NSArray *> *parameters = @[]; if ([self.delegate respondsToSelector:@selector(feedParametersForUpdater:sendingSystemProfile:)]) { parameters = [parameters arrayByAddingObjectsFromArray:[self.delegate feedParametersForUpdater:self sendingSystemProfile:sendingSystemProfile]]; } @@ -550,7 +550,7 @@ static NSString *escapeURLComponent(NSString *str) { // Build up the parameterized URL. NSMutableArray *parameterStrings = [NSMutableArray array]; - for (NSDictionary *currentProfileInfo in parameters) { + for (NSDictionary *currentProfileInfo in parameters) { [parameterStrings addObject:[NSString stringWithFormat:@"%@=%@", escapeURLComponent([[currentProfileInfo objectForKey:@"key"] description]), escapeURLComponent([[currentProfileInfo objectForKey:@"value"] description])]]; } diff --git a/Sparkle/SUUpdaterDelegate.h b/Sparkle/SUUpdaterDelegate.h index ec5586f5..b86debe3 100644 --- a/Sparkle/SUUpdaterDelegate.h +++ b/Sparkle/SUUpdaterDelegate.h @@ -64,11 +64,7 @@ SU_EXPORT extern NSString *const SUUpdaterAppcastNotificationKey; \return An array of dictionaries with keys: "key", "value", "displayKey", "displayValue", the latter two being specifically for display to the user. */ -#if __has_feature(objc_generics) - (NSArray *> *)feedParametersForUpdater:(SUUpdater *)updater sendingSystemProfile:(BOOL)sendingProfile; -#else -- (NSArray *)feedParametersForUpdater:(SUUpdater *)updater sendingSystemProfile:(BOOL)sendingProfile; -#endif /*! Returns a custom appcast URL. @@ -121,6 +117,23 @@ SU_EXPORT extern NSString *const SUUpdaterAppcastNotificationKey; */ - (void)updater:(SUUpdater *)updater didFindValidUpdate:(SUAppcastItem *)item; +/*! + Called just before the scheduled update driver prompts the user to install an update. + + \param updater The SUUpdater instance. + + \return YES to allow the update prompt to be shown (the default behavior), or NO to suppress it. + */ +- (BOOL)updaterShouldShowUpdateAlertForScheduledUpdate:(SUUpdater *)updater forItem:(SUAppcastItem *)item; + +/*! + Called after the user dismisses the update alert. + + \param updater The SUUpdater instance. + \param permanently YES if the alert will not appear again for this update; NO if it may reappear. + */ +- (void)updater:(SUUpdater *)updater didDismissUpdateAlertPermanently:(BOOL)permanently forItem:(SUAppcastItem *)item; + /*! Called when a valid update is not found. @@ -199,6 +212,21 @@ SU_EXPORT extern NSString *const SUUpdaterAppcastNotificationKey; */ - (BOOL)updater:(SUUpdater *)updater shouldPostponeRelaunchForUpdate:(SUAppcastItem *)item untilInvoking:(NSInvocation *)invocation; +/*! + Returns whether the relaunch should be delayed in order to perform other tasks. + + This is not called if the user didn't relaunch on the previous update, + in that case it will immediately restart. + + This method acts as a simpler alternative to SUUpdaterDelegate::updater:shouldPostponeRelaunchForUpdate:untilInvoking: avoiding usage of NSInvocation, which is not available in Swift environments. + + \param updater The SUUpdater instance. + \param item The appcast item corresponding to the update that is proposed to be installed. + + \return \c YES to delay the relaunch. + */ +- (BOOL)updater:(SUUpdater *)updater shouldPostponeRelaunchForUpdate:(SUAppcastItem *)item; + /*! Returns whether the application should be relaunched at all. @@ -284,6 +312,18 @@ SU_EXPORT extern NSString *const SUUpdaterAppcastNotificationKey; */ - (void)updater:(SUUpdater *)updater willInstallUpdateOnQuit:(SUAppcastItem *)item immediateInstallationInvocation:(NSInvocation *)invocation; +/*! + Called when an update is scheduled to be silently installed on quit. + This is after an update has been automatically downloaded in the background. + (i.e. SUUpdater::automaticallyDownloadsUpdates is YES) + This method acts as a more modern alternative to SUUpdaterDelegate::updater:willInstallUpdateOnQuit:immediateInstallationInvocation: using a block instead of NSInvocation, which is not available in Swift environments. + + \param updater The SUUpdater instance. + \param item The appcast item corresponding to the update that is proposed to be installed. + \param installationBlock Can be used to trigger an immediate silent install and relaunch. + */ +- (void)updater:(SUUpdater *)updater willInstallUpdateOnQuit:(SUAppcastItem *)item immediateInstallationBlock:(void (^)(void))installationBlock; + /*! Calls after an update that was scheduled to be silently installed on quit has been canceled. diff --git a/Sparkle/SUUserInitiatedUpdateDriver.m b/Sparkle/SUUserInitiatedUpdateDriver.m index 0b209124..bf757e4b 100644 --- a/Sparkle/SUUserInitiatedUpdateDriver.m +++ b/Sparkle/SUUserInitiatedUpdateDriver.m @@ -93,7 +93,7 @@ - (BOOL)itemContainsValidUpdate:(SUAppcastItem *)ui { // We don't check to see if this update's been skipped, because the user explicitly *asked* if he had the latest version. - return [[self class] hostSupportsItem:ui] && [self isItemNewer:ui]; + return [self hostSupportsItem:ui] && [self isItemNewer:ui]; } @end diff --git a/Sparkle/ar.lproj/Sparkle.strings b/Sparkle/ar.lproj/Sparkle.strings index e163944d..c9954cd0 100644 --- a/Sparkle/ar.lproj/Sparkle.strings +++ b/Sparkle/ar.lproj/Sparkle.strings @@ -4,6 +4,8 @@ "%@ %@ is currently the newest version available." = "الإصدار %2$@ هو أحدث إصدار متوفر حاليًا لتطبيق %1$@"; +"%@ %@ is currently the newest version available.\n(You are currently running version %@.)" = "الإصدار %2$@ هو أحدث إصدار متوفر حاليًا لتطبيق %1$@\n(You are currently running version %@.)"; + /* Description text for SUUpdateAlert when the update is downloadable. */ "%@ %@ is now available--you have %@. Would you like to download it now?" = "لديك الإصدار %3$@ من تطبيق %1$@، هل ترغب بتزيل الإصدار %2$@ الآن"; diff --git a/Sparkle/ca.lproj/Sparkle.strings b/Sparkle/ca.lproj/Sparkle.strings index 23c3306b..8c4749f2 100644 --- a/Sparkle/ca.lproj/Sparkle.strings +++ b/Sparkle/ca.lproj/Sparkle.strings @@ -6,6 +6,8 @@ "%@ %@ is currently the newest version available." = "%@ %@ és la versió disponible més actual."; +"%@ %@ is currently the newest version available.\n(You are currently running version %@.)" = "%@ %@ és la versió disponible més actual.\n(You are currently running version %@.)"; + /* Description text for SUUpdateAlert when the update is downloadable. */ "%@ %@ is now available--you have %@. Would you like to download it now?" = "%@ %@ està disponible (ara teniu %@). Voleu actualitzar?"; diff --git a/Sparkle/cs.lproj/Sparkle.strings b/Sparkle/cs.lproj/Sparkle.strings index aef9bb98..b02c177f 100644 --- a/Sparkle/cs.lproj/Sparkle.strings +++ b/Sparkle/cs.lproj/Sparkle.strings @@ -1,16 +1,22 @@ -"%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?" = "%1$@ %2$@ byl instalován a je připraven k použití po příštím spuštění. Přejete si aplikaci %1$@ nyní nainstalovat a znovu spustit?"; +"%1$@ %2$@ has been downloaded and is ready to use! This is an important update; would you like to install it and relaunch %1$@ now?" = "Aplikace %1$@ %2$@ byla stažena a je připravena k použití po příštím spuštění! Toto je důležitá aktualizace; přejete si aplikaci %1$@ nyní nainstalovat a znovu spustit?"; -"%1$@ can't be updated, because it was opened from a read-only or a temporary location. Use Finder to copy %1$@ to the Applications folder, relaunch it from there, and try again." = "Aplikace %1$@ nemůže být aktualizována, protože je spuštěna z média na které nelze zapisovat. Může to být CD/DVD-ROM, obraz disku nebo jen nemáte právo zápisu na disk. Přesuňte aplikaci %1$@ do vaší složky Aplikace, spusťte ji z tohoto umístěni znovu."; +"%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?" = "Aplikace %1$@ %2$@ byla stažean a je připravena k použití po příštím spuštění! Přejete si aplikaci %1$@ nyní nainstalovat a znovu spustit?"; + +"%1$@ can't be updated, because it was opened from a read-only or a temporary location. Use Finder to copy %1$@ to the Applications folder, relaunch it from there, and try again." = "Aplikace %1$@ nemůže být aktualizována, protože je spuštěna z dočasného umístění nebo z umístění, na které nelze zapisovat. Přesuňte %1$@ do složky Aplikace a spusťte ji z tohoto umístění znovu."; + +"Quit %1$@, move it into your Applications folder, relaunch it from there and try again. %2$@ can’t be updated if it’s running from the location it was downloaded to." = "Ukončete %1$@, spusťte %1$@ ze složky Aplikace a spusťte aktualizaci znovu. Aplikace %2$@ nemůže být aktualizována pokud je spuštěna z umístění, ve kterém je stažena."; "%@ %@ is currently the newest version available." = "%1$@ %2$@ je nejnovější dostupná verze"; +"%@ %@ is currently the newest version available.\n(You are currently running version %@.)" = "%1$@ %2$@ je nejnovější dostupná verze.\n(You are currently running version %3$@.)"; + /* Description text for SUUpdateAlert when the update is downloadable. */ -"%@ %@ is now available--you have %@. Would you like to download it now?" = "Je k dispozici %1$@ %2$@ - máte %3$@. Přejete si nyní zkopírovat aktualizaci?"; +"%@ %@ is now available--you have %@. Would you like to download it now?" = "Je k dispozici %1$@ %2$@ - nainstalována je %3$@. Přejete si nyní stáhnout aktualizaci?"; /* Description text for SUUpdateAlert when the update informational with no download. */ -"%@ %@ is now available--you have %@. Would you like to learn more about this update on the web?" = "%1$@ %2$@ je nyní k dispozici – vy máte %3$@. Přejete si zobrazit o této aktualizaci další informace?"; +"%@ %@ is now available--you have %@. Would you like to learn more about this update on the web?" = "%1$@ %2$@ je nyní k dispozici – nainstalována je %3$@. Přejete si zobrazit o této aktualizaci další informace?"; -"%@ downloaded" = "zkopírováno %@"; +"%@ downloaded" = "staženo %@"; "%@ of %@" = "%1$@ z %2$@"; @@ -20,7 +26,7 @@ "An error occurred in retrieving update information. Please try again later." = "Při získávání údajů o aktualizaci se vyskytla chyba. Zkuste to prosím později."; -"An error occurred while downloading the update. Please try again later." = "Při kopírování souboru se vyskytla chyba. Zkuste to prosím později."; +"An error occurred while downloading the update. Please try again later." = "Při stahování souboru se vyskytla chyba. Zkuste to prosím později."; "An error occurred while extracting the archive. Please try again later." = "Při rozbalování archivu se vyskytla chyba. Zkuste to prosím později."; @@ -28,7 +34,9 @@ "An error occurred while parsing the update feed." = "Při zpracovávání údajů o aktualizaci se vyskytla chyba. Zkuste to prosím později."; -"An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@." = "Vyskytla se chyba při novém spouštění aplikace %1$@, ale nová verze bude dostupná při dalším spuštění %1$@."; +"An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@." = "Vyskytla se chyba při novém spouštění aplikace %1$@, nová verze bude dostupná při dalším spuštění %1$@."; + +"An important update to %@ is ready to install" = "Důležitá aktualizace %@ je připravena k instalaci"; /* the unit for bytes */ "B" = "B"; @@ -40,7 +48,7 @@ "Checking for updates..." = "Ověřuje se dostupnost aktualizací…"; /* Take care not to overflow the status window. */ -"Downloading update..." = "Kopíruje se aktualizace…"; +"Downloading update..." = "Stahuje se aktualizace…"; /* Take care not to overflow the status window. */ "Extracting update..." = "Rozbaluje se aktualizace…"; @@ -56,20 +64,30 @@ /* the unit for kilobytes */ "KB" = "KB"; +/* Alternative name for "Install" button if we have a paid update or other update + without a download but with a URL. */ +"Learn More..." = "Další informace…"; + /* the unit for megabytes */ "MB" = "MB"; -"OK" = "Budiž"; +/* OK button. */ +"OK" = "OK"; +/* Status message on progress window once download has finished. */ "Ready to Install" = "Připraveno k instalaci"; +/* Message that is optionally shown at startup to allow users to turn on/off update checks. */ "Should %1$@ automatically check for updates? You can always check for updates manually from the %1$@ menu." = "Přejete si, aby aplikace %1$@ automaticky ověřovala dostupnost aktualizací? Tuto volbu můžete kdykoliv změnit v nabídce %1$@."; +"The update is improperly signed." = "Tato aktualizace je nesprávně podepsána."; + "Update Error!" = "Chyba při aktualizaci!"; "Updating %@" = "Aktualizuje se %@"; +/* 'Error' message when the user checks for updates but is already current or the feed doesn't contain any updates. (not necessarily shown in UI) */ "You already have the newest version of %@." = "Máte nainstalovanou nejnovější verzi aplikace @."; +/* Status message shown when the user checks for updates but is already current or the feed doesn't contain any updates. */ "You're up-to-date!" = "Vaše verze je aktuální!"; - diff --git a/Sparkle/da.lproj/Sparkle.strings b/Sparkle/da.lproj/Sparkle.strings index 46ec942a..678f9722 100644 --- a/Sparkle/da.lproj/Sparkle.strings +++ b/Sparkle/da.lproj/Sparkle.strings @@ -4,6 +4,8 @@ "%@ %@ is currently the newest version available." = "%1$@ %2$@ er den aktuelle version."; +"%@ %@ is currently the newest version available.\n(You are currently running version %@.)" = "%1$@ %2$@ er den aktuelle version.\n(You are currently running version %3$@.)"; + /* Description text for SUUpdateAlert when the update is downloadable. */ "%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ er tilgængelig! Du har %3$@. Skal den hentes nu?"; diff --git a/Sparkle/de.lproj/Sparkle.strings b/Sparkle/de.lproj/Sparkle.strings index 046aaae5..846e65bb 100644 --- a/Sparkle/de.lproj/Sparkle.strings +++ b/Sparkle/de.lproj/Sparkle.strings @@ -4,8 +4,12 @@ "%1$@ can't be updated, because it was opened from a read-only or a temporary location. Use Finder to copy %1$@ to the Applications folder, relaunch it from there, and try again." = "%1$@ kann nicht aktualisiert werden, da es aus dem Downloads-Order, oder von einer DMG Datei oder Laufwerk ohne Schreibzugriff gestartet wurde. Kopiere %1$@ in den Programmeordner, starte es von dort aus und versuche es erneut zu aktualisieren."; +"Quit %1$@, move it into your Applications folder, relaunch it from there and try again. %2$@ can’t be updated if it’s running from the location it was downloaded to." = "Beenden Sie „%1$@“, bewegen Sie es in den Ordner „Programme“, starten Sie das Programm von dort erneut und versuchen Sie es noch einmal. „%2$@“ kann nicht aktualisiert werden, wenn das Programm von dem Ort ausgeführt wird, an den es heruntergeladen wurde."; + "%@ %@ is currently the newest version available." = "%1$@ %2$@ ist zurzeit die neueste verfügbare Version."; +"%@ %@ is currently the newest version available.\n(You are currently running version %@.)" = "%1$@ %2$@ ist zurzeit die neueste verfügbare Version.\n(Die derzeit installierte Version ist %3$@.)"; + /* Description text for SUUpdateAlert when the update is downloadable. */ "%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ ist verfügbar – du verwendest Version %3$@. Möchtest du die neue Version jetzt laden?"; diff --git a/Sparkle/el.lproj/Sparkle.strings b/Sparkle/el.lproj/Sparkle.strings index eb3b5ac0..05010aea 100644 --- a/Sparkle/el.lproj/Sparkle.strings +++ b/Sparkle/el.lproj/Sparkle.strings @@ -4,6 +4,8 @@ "%@ %@ is currently the newest version available." = "Το %1$@ %2$@ είναι η τελευταία διαθέσιμη έκδοση."; +"%@ %@ is currently the newest version available.\n(You are currently running version %@.)" = "Το %1$@ %2$@ είναι η τελευταία διαθέσιμη έκδοση.\n(Die derzeit installierte Version ist %3$@.)"; + /* Description text for SUUpdateAlert when the update is downloadable. */ "%@ %@ is now available--you have %@. Would you like to download it now?" = "Το %1$@ %2$@ είναι πλέον διαθέσιμο--έχετε το %3$@. Θέλετε να το κατεβάσετε τώρα;"; diff --git a/Sparkle/en.lproj/Sparkle.strings b/Sparkle/en.lproj/Sparkle.strings index ecd2a001..6fa3145d 100644 --- a/Sparkle/en.lproj/Sparkle.strings +++ b/Sparkle/en.lproj/Sparkle.strings @@ -4,8 +4,12 @@ "%1$@ can't be updated, because it was opened from a read-only or a temporary location. Use Finder to copy %1$@ to the Applications folder, relaunch it from there, and try again." = "%1$@ can't be updated, because it was opened from a read-only or a temporary location. Use Finder to copy %1$@ to the Applications folder, relaunch it from there, and try again."; +"Quit %1$@, move it into your Applications folder, relaunch it from there and try again. %2$@ can’t be updated if it’s running from the location it was downloaded to." = "Quit %1$@, move it into your Applications folder, relaunch it from there and try again. %2$@ can’t be updated if it’s running from the location it was downloaded to."; + "%@ %@ is currently the newest version available." = "%1$@ %2$@ is currently the newest version available."; +"%@ %@ is currently the newest version available.\n(You are currently running version %@.)" = "%1$@ %2$@ is currently the newest version available.\n(You are currently running version %3$@.)"; + /* Description text for SUUpdateAlert when the update is downloadable. */ "%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ is now available—you have %3$@. Would you like to download it now?"; diff --git a/Sparkle/es.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/es.lproj/SUUpdatePermissionPrompt.xib index dc280252..f1b96e38 100644 --- a/Sparkle/es.lproj/SUUpdatePermissionPrompt.xib +++ b/Sparkle/es.lproj/SUUpdatePermissionPrompt.xib @@ -146,9 +146,9 @@ Gw - La información de perfil de sistema anónimo se usa para ayudarnos a planear el trabajo de desarrollo futuro. Por favor, póngase en cantacto con nosotros si tiene preguntas sobre esto. + La información de perfil de sistema anónimo se usa para ayudarnos a planear el trabajo de desarrollo futuro. Por favor, póngase en contacto con nosotros si tiene preguntas sobre esto. -Esta es la información que se nos enviaría: +Esta es la información que nos enviaría: diff --git a/Sparkle/es.lproj/Sparkle.strings b/Sparkle/es.lproj/Sparkle.strings index 09293904..e7a1f491 100644 --- a/Sparkle/es.lproj/Sparkle.strings +++ b/Sparkle/es.lproj/Sparkle.strings @@ -1,43 +1,49 @@ -"%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?" = "%1$@ %2$@ se han descargado y están listos para utilizar. ¿Le gustaría instalar e iniciar %1$@ ahora?"; +"%1$@ %2$@ has been downloaded and is ready to use! This is an important update; would you like to install it and relaunch %1$@ now?" = "¡%1$@ %2$@ se ha descargado y está lista para usarse! Ésta es una actualización importante. ¿Te gustaría instalarla y volver a abrir %1$@ ahora?"; -"%1$@ can't be updated, because it was opened from a read-only or a temporary location. Use Finder to copy %1$@ to the Applications folder, relaunch it from there, and try again." = "%1$@ no se puede actualizar cuando se ejecuta desde un volumen de sólo lectura como imagen de disco o medio óptico. Mueva %1$@ a su carpeta de Aplicaciones y trate de iniciarlo desde allí."; +"%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?" = "¡%1$@ %2$@ se ha descargado y está lista para usarse! ¿Te gustaría instalarla y volver a abrir %1$@ ahora?"; -"%@ %@ is currently the newest version available." = "%1$@ %2$@ es la última versión disponible."; +"%1$@ can't be updated, because it was opened from a read-only or a temporary location. Use Finder to copy %1$@ to the Applications folder, relaunch it from there, and try again." = "%1$@ no se puede actualizar porque fue abierta desde una ubicación temporal o de solo lectura. Usa Finder para copiar %1$@ a la carpeta Aplicaciones, vuélvela a abrir desde ahí e inténtalo de nuevo."; + +"%@ %@ is currently the newest version available." = "%1$@ %2$@ es la versión más nueva disponible."; + +"%@ %@ is currently the newest version available.\n(You are currently running version %@.)" = "%1$@ %2$@ es la versión más nueva disponible.\n(You are currently running version %3$@.)"; /* Description text for SUUpdateAlert when the update is downloadable. */ -"%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ está disponible (usted tiene la %3$@). ¿Desea descargarla ahora?"; +"%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ ya está disponible (tienes la %3$@). ¿Quisieras descargarla ahora?"; /* Description text for SUUpdateAlert when the update informational with no download. */ -"%@ %@ is now available--you have %@. Would you like to learn more about this update on the web?" = "%1$@ %2$@ is now available--you have %3$@. Would you like to learn more about this update on the web?"; +"%@ %@ is now available--you have %@. Would you like to learn more about this update on the web?" = "%1$@ %2$@ ya está disponible--tú tienes la %3$@. ¿Quisieras aprender más acerca de esta actualización en la red?"; "%@ downloaded" = "%@ descargado"; "%@ of %@" = "%1$@ de %2$@"; -"A new version of %@ is available!" = "¡Hay una nueva versión de %@ !"; +"A new version of %@ is available!" = "¡Una nueva versión de %@ está disponible!"; -"A new version of %@ is ready to install!" = "¡Una versión nueva de %@ está lista para instalar!"; +"A new version of %@ is ready to install!" = "¡Una nueva versión de %@ está lista para instalarse!"; -"An error occurred in retrieving update information. Please try again later." = "Ocurrió un error al recopilar información sobre la actualización. Por favor, inténtelo de nuevo más tarde."; +"An error occurred in retrieving update information. Please try again later." = "Ocurrió un error al recopilar información sobre la actualización. Por favor inténtalo de nuevo más tarde."; -"An error occurred while downloading the update. Please try again later." = "Ocurrió un error mientras se descargaba la actualización. Por favor intente de nuevo más tarde."; +"An error occurred while downloading the update. Please try again later." = "Ocurrió un error al descargar la actualización. Por favor inténtalo de nuevo más tarde."; -"An error occurred while extracting the archive. Please try again later." = "Ocurrió un error al extraer el archivo. Por favor, inténtelo de nuevo más tarde."; +"An error occurred while extracting the archive. Please try again later." = "Ocurrió un error al extraer el archivo. Por favor inténtalo de nuevo más tarde."; -"An error occurred while installing the update. Please try again later." = "Ocurrió un error mientras se instalaba la actualización. Por favor intente de nuevo más tarde."; +"An error occurred while installing the update. Please try again later." = "Ocurrió un error al instalar la actualización. Por favor inténtalo de nuevo más tarde."; -"An error occurred while parsing the update feed." = "Ocurrió un error mientras se analizaba la entrada de la actualización."; +"An error occurred while parsing the update feed." = "Ocurrió un error al analizar la información de la actualización."; -"An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@." = "Ocurrió un error mientras se re-iniciaba %1$@, pero la nueva versión estará disponible la próxima vez que ejecute %1$@."; +"An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@." = "Ocurrió un error al volver a abrir %1$@, pero la nueva versión estará disponible la próxima vez que abras %1$@."; + +"An important update to %@ is ready to install" = "Una actualización importante para %@ está lista para instalarse"; /* the unit for bytes */ -"B" = "O"; +"B" = "B"; "Cancel" = "Cancelar"; "Cancel Update" = "Cancelar actualización"; -"Checking for updates..." = "Buscando actualizaciones …"; +"Checking for updates..." = "Buscando actualizaciones…"; /* Take care not to overflow the status window. */ "Downloading update..." = "Descargando actualización…"; @@ -46,34 +52,40 @@ "Extracting update..." = "Extrayendo actualización…"; /* the unit for gigabytes */ -"GB" = "GO"; +"GB" = "GB"; -"Install and Relaunch" = "Instalar y volver a arrancar"; +"Install and Relaunch" = "Instalar y volver a abrir"; /* Take care not to overflow the status window. */ "Installing update..." = "Instalando actualización…"; /* the unit for kilobytes */ -"KB" = "KO"; +"KB" = "KB"; + +/* Alternative name for "Install" button if we have a paid update or other update + without a download but with a URL. */ +"Learn More..." = "Más información…"; /* the unit for megabytes */ "MB" = "MB"; -"OK" = "OK"; +/* OK button. */ +"OK" = "Aceptar"; -"Ready to Install" = "Preparado para instalar"; +/* Status message on progress window once download has finished. */ +"Ready to Install" = "Listo para instalarse"; -"Should %1$@ automatically check for updates? You can always check for updates manually from the %1$@ menu." = "¿Debería automáticamente %1$@ buscar las actualizaciones? Puede hacerlo también manualmente desde el menú %1$@."; +/* Message that is optionally shown at startup to allow users to turn on/off update checks. */ +"Should %1$@ automatically check for updates? You can always check for updates manually from the %1$@ menu." = "¿Debería %1$@ buscar actualizaciones automáticamente? Siempre puedes buscar actualizaciones manualmente desde el menú %1$@."; + +"The update is improperly signed." = "La actualización está firmada incorrectamente."; "Update Error!" = "¡Error de actualización!"; "Updating %@" = "Actualizando %@"; -"You already have the newest version of %@." = "Ya tiene la versión más reciente de %@."; +/* 'Error' message when the user checks for updates but is already current or the feed doesn't contain any updates. (not necessarily shown in UI) */ +"You already have the newest version of %@." = "Ya tienes la versión más nueva de %@."; -"You're up-to-date!" = "Ya tiene la versión más reciente"; - -/* Alternative name for "Install" button if we have a paid update or other update - without a download but with a URL. */ - -"Learn More..." = "Más información…"; +/* Status message shown when the user checks for updates but is already current or the feed doesn't contain any updates. */ +"You're up-to-date!" = "¡Está actualizado!"; diff --git a/Sparkle/fi.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/fi.lproj/SUAutomaticUpdateAlert.xib new file mode 100644 index 00000000..34bb077b --- /dev/null +++ b/Sparkle/fi.lproj/SUAutomaticUpdateAlert.xib @@ -0,0 +1,119 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Sparkle/fi.lproj/SUUpdateAlert.xib b/Sparkle/fi.lproj/SUUpdateAlert.xib new file mode 100644 index 00000000..22b544d1 --- /dev/null +++ b/Sparkle/fi.lproj/SUUpdateAlert.xib @@ -0,0 +1,248 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + NSNegateBoolean + + + + + + + + + + + + + + + + + + NSNegateBoolean + + + + + + + + + + + + + + + + + + NSNegateBoolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Sparkle/fi.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/fi.lproj/SUUpdatePermissionPrompt.xib new file mode 100644 index 00000000..c99d50b1 --- /dev/null +++ b/Sparkle/fi.lproj/SUUpdatePermissionPrompt.xib @@ -0,0 +1,227 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + visibleKey + visibleValue + displayValue + displayKey + + + + + + + + + + + + + + + Anonymous system profile information is used to help us plan future development work. Please contact us if you have any questions about this. + +This is the information that would be sent: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SUIncludeProfile + SUSendProfileInfo + + + + + + + diff --git a/Sparkle/fi.lproj/Sparkle.strings b/Sparkle/fi.lproj/Sparkle.strings index 8c412406..5fa67d03 100644 --- a/Sparkle/fi.lproj/Sparkle.strings +++ b/Sparkle/fi.lproj/Sparkle.strings @@ -4,6 +4,8 @@ "%@ %@ is currently the newest version available." = "%1$@ %2$@ on uusin saatavilla oleva versio."; +"%@ %@ is currently the newest version available.\n(You are currently running version %@.)" = "%1$@ %2$@ on uusin saatavilla oleva versio.\n(You are currently running version %3$@.)"; + /* Description text for SUUpdateAlert when the update is downloadable. */ "%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ on nyt saatavilla (sinulla on %3$@). Haluatko ladata sen nyt?"; @@ -28,8 +30,12 @@ "Cancel" = "Kumoa"; +"Cancel Update" = "Peruuta päivitykset"; + "Check for updates on startup?" = "Tarkista päivityksiä käynnistyksen yhteydessä?"; +"Checking for updates..." = "Tarkistetaan päivityksiä…"; + "Downloading update..." = "Haen päivitystä…"; "Extracting update..." = "Puran päivitystä…"; diff --git a/Sparkle/fr.lproj/Sparkle.strings b/Sparkle/fr.lproj/Sparkle.strings index fc9cf464..a1068855 100644 --- a/Sparkle/fr.lproj/Sparkle.strings +++ b/Sparkle/fr.lproj/Sparkle.strings @@ -4,8 +4,12 @@ "%1$@ can't be updated, because it was opened from a read-only or a temporary location. Use Finder to copy %1$@ to the Applications folder, relaunch it from there, and try again." = "%1$@ ne peut pas être mis à jour quand il fonctionne à partir d’un volume en lecture seule, comme une image disque ou un lecteur optique. Déplacez %1$@ dans votre dossier Applications, relancez-le à partir de là et réessayez."; +"Quit %1$@, move it into your Applications folder, relaunch it from there and try again. %2$@ can’t be updated if it’s running from the location it was downloaded to." = "Quittez %1$@ et déplacez-le dans le dossier Applications, relancez-le à partir de ce dossier et essayez à nouveau. %2$@ ne peut pas être mis à jour s'il est exécuté depuis le dossier dans lequel il a été téléchargé."; + "%@ %@ is currently the newest version available." = "%1$@ %2$@ est la version la plus récente disponible."; +"%@ %@ is currently the newest version available.\n(You are currently running version %@.)" = "%1$@ %2$@ est la version la plus récente disponible.\n(You are currently running version %3$@.)"; + /* Description text for SUUpdateAlert when the update is downloadable. */ "%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ est disponible ; vous utilisez la version %3$@. Voulez-vous le télécharger maintenant ?"; diff --git a/Sparkle/he.lproj/Sparkle.strings b/Sparkle/he.lproj/Sparkle.strings index 5387d941..8815b76b 100644 --- a/Sparkle/he.lproj/Sparkle.strings +++ b/Sparkle/he.lproj/Sparkle.strings @@ -4,6 +4,8 @@ "%@ %@ is currently the newest version available." = "%1$@ %2$@ היא הגרסה האחונה הזמינה."; +"%@ %@ is currently the newest version available.\n(You are currently running version %@.)" = "%1$@ %2$@ היא הגרסה האחונה הזמינה.\n(You are currently running version %3$@.)"; + /* Description text for SUUpdateAlert when the update is downloadable. */ "%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ זמין כעת (לך יש %3$@). ברצונך להוריד כעת?"; @@ -16,11 +18,13 @@ "A new version of %@ is available!" = "גרסה חדשה של %@ זמינה!"; -"An error occurred during installation. Please try again later." = "שגיאה בהתקנה. אנא נסה שנית במועד מרוחר יותר."; +"Cancel Update" = "בטל עדכון"; -"An error occurred in retrieving update information. Please try again later." = "שגיאה בקבלת מידע על עדכונים. אנא נסה שנית במועד מרוחר יותר."; +"An error occurred during installation. Please try again later." = "שגיאה בהתקנה. אנא נסה שנית במועד מאוחר יותר."; -"An error occurred while extracting the archive. Please try again later." = "שגיאה בפתיחת הקובת המקווץ. אנא נסה שנית במועד מרוחר יותר."; +"An error occurred in retrieving update information. Please try again later." = "שגיאה בקבלת מידע על עדכונים. אנא נסה שנית במועד מאוחר יותר."; + +"An error occurred while extracting the archive. Please try again later." = "שגיאה בפתיחת הקובת המקווץ. אנא נסה שנית במועד מאוחר יותר."; "An error occurred while trying to download the file. Please try again later." = "שגיאה בהורדת הקובץ. אנא נסה שנית במועד מאוחר יותר."; diff --git a/Sparkle/hr.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/hr.lproj/SUAutomaticUpdateAlert.xib new file mode 100644 index 00000000..99df563d --- /dev/null +++ b/Sparkle/hr.lproj/SUAutomaticUpdateAlert.xib @@ -0,0 +1,119 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Sparkle/hr.lproj/SUUpdateAlert.xib b/Sparkle/hr.lproj/SUUpdateAlert.xib new file mode 100644 index 00000000..fb5e2ab1 --- /dev/null +++ b/Sparkle/hr.lproj/SUUpdateAlert.xib @@ -0,0 +1,248 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + NSNegateBoolean + + + + + + + + + + + + + + + + + + NSNegateBoolean + + + + + + + + + + + + + + + + + + NSNegateBoolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Sparkle/hr.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/hr.lproj/SUUpdatePermissionPrompt.xib new file mode 100644 index 00000000..9e5dd73a --- /dev/null +++ b/Sparkle/hr.lproj/SUUpdatePermissionPrompt.xib @@ -0,0 +1,227 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + visibleKey + visibleValue + displayValue + displayKey + + + + + + + + + + + + + + + Anonymous system profile information is used to help us plan future development work. Please contact us if you have any questions about this. + +This is the information that would be sent: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SUIncludeProfile + SUSendProfileInfo + + + + + + + diff --git a/Sparkle/hr.lproj/Sparkle.strings b/Sparkle/hr.lproj/Sparkle.strings new file mode 100644 index 00000000..e4499316 --- /dev/null +++ b/Sparkle/hr.lproj/Sparkle.strings @@ -0,0 +1,91 @@ +"%1$@ %2$@ has been downloaded and is ready to use! This is an important update; would you like to install it and relaunch %1$@ now?" = "%1$@ %2$@ je preuzeto i spremno za upotrebu! Ovo je važna nadogradnja. Želiš li je sada instalirati, te ponovo pokrenuti %1$@?"; + +"%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?" = "%1$@ %2$@ je preuzeto i spremno za upotrebu! Želiš li je sada instalirati, te ponovo pokrenuti %1$@?"; + +"%1$@ can't be updated, because it was opened from a read-only or a temporary location. Use Finder to copy %1$@ to the Applications folder, relaunch it from there, and try again." = "%1$@ nije moguće aktualizirati, jer je pokrenuto s lokacije bez korisničkih prava pisanja, npr. dmg. Kopiraj %1$@ u mapu Aplikacije, pokreni je odande i pokušaj ponovo."; + +"%@ %@ is currently the newest version available." = "%1$@ %2$@ je trenutačno najnovija dostupna inačica."; + +"%@ %@ is currently the newest version available.\n(You are currently running version %@.)" = "%1$@ %2$@ je trenutačno najnovija dostupna inačica.\n(You are currently running version %3$@.)"; + +/* Description text for SUUpdateAlert when the update is downloadable. */ +"%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ je sada dostupna. Ti koristiš inačicu %3$@. Želiš li je sada preuzeti?"; + +/* Description text for SUUpdateAlert when the update informational with no download. */ +"%@ %@ is now available--you have %@. Would you like to learn more about this update on the web?" = "%1$@ %2$@ je sada dostupna. Ti koristiš inačicu %3$@. Želiš li saznati više o ovoj nadogradnji na webu?"; + +"%@ downloaded" = "%@ preuzeto"; + +"%@ of %@" = "%1$@ od %2$@"; + +"A new version of %@ is available!" = "Dostupna je nova inačica za %@!"; + +"A new version of %@ is ready to install!" = "Nova inačica za %@ je spremna za instaliranje!"; + +"An error occurred in retrieving update information. Please try again later." = "Dogodila se greška u dohvaćanju informacija o nadogradnji. Pokušaj kasnije ponovo."; + +"An error occurred while downloading the update. Please try again later." = "Dogodila se greška prilikom preuzimanja nadogradnje. Pokušaj kasnije ponovo."; + +"An error occurred while extracting the archive. Please try again later." = "Dogodila se greška prilikom raspakiranja arhive. Pokušaj kasnije ponovo."; + +"An error occurred while installing the update. Please try again later." = "Dogodila se greška prilikom instaliranja nadogradnje. Pokušaj kasnije ponovo."; + +"An error occurred while parsing the update feed." = "Dogodila se greška prilikom analize nadogradnje."; + +"An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@." = "Dogodila se greška prilikom ponovog pokretanja %1$@. Unatoč tome, nova inačica će biti dostupna prilikom idućeg pokretanja %1$@."; + +"An important update to %@ is ready to install" = "Važna nadogradnja za %@ je spremna za instaliranje"; + +/* the unit for bytes */ +"B" = "B"; + +"Cancel" = "Odustani"; + +"Cancel Update" = "Odustani od aktualiziranja"; + +"Checking for updates..." = "Provjera nadogradnji …"; + +/* Take care not to overflow the status window. */ +"Downloading update..." = "Preuzimanje nadogradnje …"; + +/* Take care not to overflow the status window. */ +"Extracting update..." = "Raspakiravanje nadogradnje …"; + +/* the unit for gigabytes */ +"GB" = "GB"; + +"Install and Relaunch" = "Instaliraj i ponovo pokreni"; + +/* Take care not to overflow the status window. */ +"Installing update..." = "Instaliranje nadogradnje …"; + +/* the unit for kilobytes */ +"KB" = "KB"; + +/* Alternative name for "Install" button if we have a paid update or other update + without a download but with a URL. */ +"Learn More..." = "Saznaj više …"; + +/* the unit for megabytes */ +"MB" = "MB"; + +/* OK button. */ +"OK" = "OK"; + +/* Status message on progress window once download has finished. */ +"Ready to Install" = "Spremno za instaliranje"; + +/* Message that is optionally shown at startup to allow users to turn on/off update checks. */ +"Should %1$@ automatically check for updates? You can always check for updates manually from the %1$@ menu." = "Da li da %1$@ automatski provjerava nadogradnje? Nadogradnje možeš i ručno provjeriti u %1$@ izborniku."; + +"The update is improperly signed." = "Nadogradnja ima neispravnu signaturu."; + +"Update Error!" = "Greška prilikom aktualiziranja!"; + +"Updating %@" = "Aktualiziranje %@"; + +/* 'Error' message when the user checks for updates but is already current or the feed doesn't contain any updates. (not necessarily shown in UI) */ +"You already have the newest version of %@." = "Već koristiš najnoviju inačicu za %@."; + +/* Status message shown when the user checks for updates but is already current or the feed doesn't contain any updates. */ +"You're up-to-date!" = "Koristiš najnoviju inačicu!"; diff --git a/Sparkle/hu.lproj/Sparkle.strings b/Sparkle/hu.lproj/Sparkle.strings index a756c336..93cdb9a6 100644 --- a/Sparkle/hu.lproj/Sparkle.strings +++ b/Sparkle/hu.lproj/Sparkle.strings @@ -6,6 +6,8 @@ "%@ %@ is currently the newest version available." = "A %1$@ %2$@ a jelenleg elérhető legfrissebb verzió."; +"%@ %@ is currently the newest version available.\n(You are currently running version %@.)" = "A %1$@ %2$@ a jelenleg elérhető legfrissebb verzió.\n(You are currently running version %3$@.)"; + /* Description text for SUUpdateAlert when the update is downloadable. */ "%@ %@ is now available--you have %@. Would you like to download it now?" = "A %1$@ %2$@ verziója már elérhető — az Ön jelenlegi verziója a %3$@. Szeretné most letölteni?"; diff --git a/Sparkle/is.lproj/Sparkle.strings b/Sparkle/is.lproj/Sparkle.strings index ccd94d63..b3ee94dd 100644 --- a/Sparkle/is.lproj/Sparkle.strings +++ b/Sparkle/is.lproj/Sparkle.strings @@ -4,6 +4,8 @@ "%@ %@ is currently the newest version available." = "%@ %@ er nýjasta útgáfan sem er fáanleg þessa stundina."; +"%@ %@ is currently the newest version available.\n(You are currently running version %@.)" = "%@ %@ er nýjasta útgáfan sem er fáanleg þessa stundina.\n(You are currently running version %@.)"; + /* Description text for SUUpdateAlert when the update is downloadable. */ "%@ %@ is now available--you have %@. Would you like to download it now?" = "Útgafa %2$@ af %1$@ er nú fáanlegt en þú ert með %3$@. Viltu sækja hana núna?"; diff --git a/Sparkle/it.lproj/Sparkle.strings b/Sparkle/it.lproj/Sparkle.strings index 5f1b8943..393372d4 100644 --- a/Sparkle/it.lproj/Sparkle.strings +++ b/Sparkle/it.lproj/Sparkle.strings @@ -4,6 +4,8 @@ "%@ %@ is currently the newest version available." = "%1$@ %2$@ è la versione più recente attualmente disponibile."; +"%@ %@ is currently the newest version available.\n(You are currently running version %@.)" = "%1$@ %2$@ è la versione più recente attualmente disponibile.\n(You are currently running version %3$@.)"; + /* Description text for SUUpdateAlert when the update is downloadable. */ "%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ è disponbile; disponi della versione %3$@. Desideri eseguire l’aggiornamento ora?"; diff --git a/Sparkle/ja.lproj/Sparkle.strings b/Sparkle/ja.lproj/Sparkle.strings index 29b7fcba..3bb4d030 100644 --- a/Sparkle/ja.lproj/Sparkle.strings +++ b/Sparkle/ja.lproj/Sparkle.strings @@ -4,8 +4,12 @@ "%1$@ can't be updated, because it was opened from a read-only or a temporary location. Use Finder to copy %1$@ to the Applications folder, relaunch it from there, and try again." = "%1$@は読み出し専用またはテンポラリな場所で開かれているためアップデートできません。%1$@をアプリケーションフォルダに移動し、そこから再起動したあとやり直してください。"; +"Quit %1$@, move it into your Applications folder, relaunch it from there and try again. %2$@ can’t be updated if it’s running from the location it was downloaded to." = "%1$@ を終了させ、アプリケーションフォルダに移動の上再度お試しください。この場所ではダウンロードされたアップデータを %2$@ に適用できません。"; + "%@ %@ is currently the newest version available." = "%1$@ %2$@は現在入手できる最新バージョンです。"; +"%@ %@ is currently the newest version available.\n(You are currently running version %@.)" = "%1$@ %2$@は現在入手できる最新バージョンです。\n(You are currently running version %3$@.)"; + /* Description text for SUUpdateAlert when the update is downloadable. */ "%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@が入手できます(使用中のバージョンは%3$@です)。今すぐダウンロードしますか?"; diff --git a/Sparkle/ko.lproj/Sparkle.strings b/Sparkle/ko.lproj/Sparkle.strings index e9b09633..25e16c39 100644 --- a/Sparkle/ko.lproj/Sparkle.strings +++ b/Sparkle/ko.lproj/Sparkle.strings @@ -4,6 +4,8 @@ "%@ %@ is currently the newest version available." = "%1$@ %2$@이(가) 현재 최신 버전입니다."; +"%@ %@ is currently the newest version available.\n(You are currently running version %@.)" = "%1$@ %2$@이(가) 현재 최신 버전입니다.\n(You are currently running version %3$@.)"; + /* Description text for SUUpdateAlert when the update is downloadable. */ "%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@이(가) 업데이트 되었습니다. (현재 버전 : %3$@) 다운로드 하시겠습니까?"; diff --git a/Sparkle/nb.lproj/Sparkle.strings b/Sparkle/nb.lproj/Sparkle.strings index 68a5b930..7d15bb1a 100644 --- a/Sparkle/nb.lproj/Sparkle.strings +++ b/Sparkle/nb.lproj/Sparkle.strings @@ -6,6 +6,8 @@ "%@ %@ is currently the newest version available." = "%1$@ %2$@ er nyeste versjon."; +"%@ %@ is currently the newest version available.\n(You are currently running version %@.)" = "%1$@ %2$@ er nyeste versjon.\n(You are currently running version %3$@.)"; + /* Description text for SUUpdateAlert when the update is downloadable. */ "%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ er nå tilgjengelig—du har %3$@. Ønsker du å laste ned og installere nå?"; diff --git a/Sparkle/nl.lproj/Sparkle.strings b/Sparkle/nl.lproj/Sparkle.strings index f099cebe..29705bca 100644 --- a/Sparkle/nl.lproj/Sparkle.strings +++ b/Sparkle/nl.lproj/Sparkle.strings @@ -4,6 +4,8 @@ "%@ %@ is currently the newest version available." = "%1$@ %2$@ is momenteel de nieuwste versie."; +"%@ %@ is currently the newest version available.\n(You are currently running version %@.)" = "%1$@ %2$@ is momenteel de nieuwste versie.\n(You are currently running version %3$@.)"; + /* Description text for SUUpdateAlert when the update is downloadable. */ "%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ is nu beschikbaar – je hebt %3$@. Wil je de update nu downloaden?"; diff --git a/Sparkle/pl.lproj/Sparkle.strings b/Sparkle/pl.lproj/Sparkle.strings index 0eb924af..d3f5be85 100644 --- a/Sparkle/pl.lproj/Sparkle.strings +++ b/Sparkle/pl.lproj/Sparkle.strings @@ -6,6 +6,8 @@ "%@ %@ is currently the newest version available." = "%1$@ %2$@ jest najnowszą dostępną wersją."; +"%@ %@ is currently the newest version available.\n(You are currently running version %@.)" = "%1$@ %2$@ jest najnowszą dostępną wersją.\n(aktualnie posiadasz %3$@.)"; + "%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ jest już dostępny (aktualnie posiadasz %3$@). Czy chcesz go teraz pobrać?"; /* Description text for SUUpdateAlert when the update informational with no download. */ diff --git a/Sparkle/pt_BR.lproj/Sparkle.strings b/Sparkle/pt_BR.lproj/Sparkle.strings index 4592f298..e057defe 100755 --- a/Sparkle/pt_BR.lproj/Sparkle.strings +++ b/Sparkle/pt_BR.lproj/Sparkle.strings @@ -6,6 +6,8 @@ "%@ %@ is currently the newest version available." = "%1$@ %2$@ é a versão mais recente disponível."; +"%@ %@ is currently the newest version available.\n(You are currently running version %@.)" = "%1$@ %2$@ é a versão mais recente disponível.\n(You are currently running version %3$@.)"; + /* Description text for SUUpdateAlert when the update is downloadable. */ "%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ está disponível – sua versão é %3$@. Deseja transferi-lo agora?"; diff --git a/Sparkle/pt_PT.lproj/Sparkle.strings b/Sparkle/pt_PT.lproj/Sparkle.strings index 38afb7e5..c3b245ce 100644 --- a/Sparkle/pt_PT.lproj/Sparkle.strings +++ b/Sparkle/pt_PT.lproj/Sparkle.strings @@ -4,6 +4,8 @@ "%@ %@ is currently the newest version available." = "O %1$@ %2$@ é neste momento a versão mais recente disponível."; +"%@ %@ is currently the newest version available.\n(You are currently running version %@.)" = "O %1$@ %2$@ é neste momento a versão mais recente disponível.\n(You are currently running version %3$@.)"; + /* Description text for SUUpdateAlert when the update is downloadable. */ "%@ %@ is now available--you have %@. Would you like to download it now?" = "O %1$@ %2$@ está agora disponível e tem a versão %3$@. Gostaria de o transferir agora?"; diff --git a/Sparkle/ro.lproj/Sparkle.strings b/Sparkle/ro.lproj/Sparkle.strings index eaf5d25d..4e1f306f 100644 --- a/Sparkle/ro.lproj/Sparkle.strings +++ b/Sparkle/ro.lproj/Sparkle.strings @@ -8,6 +8,8 @@ "%@ %@ is currently the newest version available." = "%1$@ %2$@ este cea ultima versiune disponibilă."; +"%@ %@ is currently the newest version available.\n(You are currently running version %@.)" = "%1$@ %2$@ este cea ultima versiune disponibilă.\n(You are currently running version %3$@.)"; + /* Description text for SUUpdateAlert when the update is downloadable. */ "%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ este disponibilă—tu ai %3$@. Dorești să o descărcarci acum?"; diff --git a/Sparkle/ru.lproj/Sparkle.strings b/Sparkle/ru.lproj/Sparkle.strings index c1cd4b42..25b05da8 100644 --- a/Sparkle/ru.lproj/Sparkle.strings +++ b/Sparkle/ru.lproj/Sparkle.strings @@ -4,6 +4,8 @@ "%@ %@ is currently the newest version available." = "В настоящий момент %1$@ %2$@ является новейшей версией."; +"%@ %@ is currently the newest version available.\n(You are currently running version %@.)" = "В настоящий момент %1$@ %2$@ является новейшей версией.\n(You are currently running version %3$@.)"; + /* Description text for SUUpdateAlert when the update is downloadable. */ "%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ теперь доступен – вы имеете %3$@. Хотите загрузить его сейчас?"; diff --git a/Sparkle/sk.lproj/Sparkle.strings b/Sparkle/sk.lproj/Sparkle.strings index c7e3fd6b..1c3ed5cd 100644 --- a/Sparkle/sk.lproj/Sparkle.strings +++ b/Sparkle/sk.lproj/Sparkle.strings @@ -4,6 +4,8 @@ "%@ %@ is currently the newest version available." = "%1$@ %2$@\nje najnovšia dostupná verzia."; +"%@ %@ is currently the newest version available.\n(You are currently running version %@.)" = "%1$@ %2$@\nje najnovšia dostupná verzia.\n(You are currently running version %3$@.)"; + /* Description text for SUUpdateAlert when the update is downloadable. */ "%@ %@ is now available--you have %@. Would you like to download it now?" = "Je dostupná aplikácia %1$@ %2$@ — máte %3$@. Chcete ju prevziať teraz?"; diff --git a/Sparkle/sl.lproj/Sparkle.strings b/Sparkle/sl.lproj/Sparkle.strings index bb92b145..831b1eec 100644 --- a/Sparkle/sl.lproj/Sparkle.strings +++ b/Sparkle/sl.lproj/Sparkle.strings @@ -4,6 +4,8 @@ "%@ %@ is currently the newest version available." = "%1$@ %2$@ je najnovejša verzija programa."; +"%@ %@ is currently the newest version available.\n(You are currently running version %@.)" = "%1$@ %2$@ je najnovejša verzija programa.\n(You are currently running version %3$@.)"; + /* Description text for SUUpdateAlert when the update is downloadable. */ "%@ %@ is now available--you have %@. Would you like to download it now?" = "Na voljo je %1$@ %2$@ — vi imate %3$@. Ga želite prenesti s spleta sedaj?"; diff --git a/Sparkle/sv.lproj/Sparkle.strings b/Sparkle/sv.lproj/Sparkle.strings index 191929bb..54396a86 100644 --- a/Sparkle/sv.lproj/Sparkle.strings +++ b/Sparkle/sv.lproj/Sparkle.strings @@ -4,6 +4,8 @@ "%@ %@ is currently the newest version available." = "%1$@ %2$@ är för närvarande den senaste tillgängliga versionen."; +"%@ %@ is currently the newest version available.\n(You are currently running version %@.)" = "%1$@ %2$@ är för närvarande den senaste tillgängliga versionen.\n(You are currently running version %3$@.)"; + /* Description text for SUUpdateAlert when the update is downloadable. */ "%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ finns nu tillgänglig—du har %3$@. Vill hämta uppdateringen nu?"; diff --git a/Sparkle/th.lproj/Sparkle.strings b/Sparkle/th.lproj/Sparkle.strings index f8e00c79..e7aceb49 100644 --- a/Sparkle/th.lproj/Sparkle.strings +++ b/Sparkle/th.lproj/Sparkle.strings @@ -4,6 +4,8 @@ "%@ %@ is currently the newest version available." = "%1$@ %2$@ เป็นเวอร์ชั่นใหม่ล่าสุดแล้ว"; +"%@ %@ is currently the newest version available.\n(You are currently running version %@.)" = "%1$@ %2$@ เป็นเวอร์ชั่นใหม่ล่าสุดแล้ว\n(You are currently running version %3$@.)"; + /* Description text for SUUpdateAlert when the update is downloadable. */ "%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ พร้อมให้ดาวน์โหลดแล้ว (คุณมีเวอร์ชั่น %3$@) ต้องการดาวน์โหลดเลยหรือไม่"; diff --git a/Sparkle/tr.lproj/SUUpdateAlert.xib b/Sparkle/tr.lproj/SUUpdateAlert.xib index a6cf201c..f38af526 100644 --- a/Sparkle/tr.lproj/SUUpdateAlert.xib +++ b/Sparkle/tr.lproj/SUUpdateAlert.xib @@ -148,7 +148,7 @@ - + @@ -160,8 +160,8 @@ Gw