diff --git a/CHANGELOG b/CHANGELOG index 401acdf3..b514cb8d 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,9 +1,30 @@ +# 1.14.0 -# 1.13.0 +* URL-encoding of appcast URLs is preserved (Kornel Lesiński) +* Delegate is asked for fallback updates if delta update fails (Kornel Lesiński) +* Fixed check of feed URL before delegate had a chance to set it (Kornel Lesiński) +* Re-added support for password-protected dmg images (Andrew K. Boyd) +* Added warning about ATS blocking (Kornel Lesiński) +* Translation fixes for pt-BR. (vitu) +* Add some Japanese lozalized strings (1024jp) +* Made test app available in all languages #695 (LIU Dongyuan / 柳东原) +* Removed a test resource from the framework bundle (Karl Moskowski) +* Czech localizations update (Frantisek Erben) +* Test if the updated app is the frontmost one (Zorg) +* UI Tests for the Test Application (Zorg) + +# 1.13.1 (Jan 31, 2016) + +Important security fixes: + +* Prevent inclusion of local files via file:// XML entities +* Disable redirects to non-HTTP URLs in release notes webview + +# 1.13.0 (Dec 18, 2015) * Changed framework's bundle ID from `org.andymatuschak.Sparkle` to `org.sparkle-project.Sparkle`. -# 1.12.0 +# 1.12.0 (Dec 13, 2015) * Rewritten file operations for updating an app (Zorg) - Ensuring atomic move operations, robust error handling. @@ -47,11 +68,11 @@ * Disallowed automatic updates when user can't write to the bundle (Zorg) * Set the task working directories instead of changing the process working directory (Kevin Wojniak) -# 1.11.1 +# 1.11.1 (Nov 9, 2015) * Don't install automatic updates when system is about to shut down -# 1.11.0 +# 1.11.0 (Aug 24, 2015) * Big improvements to code signing and DSA verification - Sparkle now checks not only whether an update is correctly signed, but also whether the updated version will be able to verify future updates. Updates now must either use DSA keys correctly, or not try to use them at all. Same goes for Apple Code Signing. @@ -69,7 +90,7 @@ * Added logging of appcast/download URL on error (Kornel Lesiński) * More robust reading of Autoupdate.app path from Sparkle bundle -# 1.10.0 +# 1.10.0 (Apr 26, 2015) * Massive improvements to the BinaryDelta tool (Zorg) - Ability to track file permissions (Zorg) @@ -85,7 +106,7 @@ * Stdout used for non error outputs (JDuquennoy) * French locale update (Kent Sutherland) -# 1.9.0 +# 1.9.0 (Jan 26, 2015) * Added SUUpdater delegate method for failures. (Benjamin Gordon) * Make the error definitions public (C.W. Betts) @@ -95,7 +116,7 @@ * Use Library/Caches rather than app support directory (Kornel Lesiński) * Check for a modal window being onscreen before trying to put up the Sparkle prompt (Alf Watt) * Fixed crashes on 10.7 (Chris Campbell, Ger Teunis) -* Fixed Sparkle tags parsing (Tamás Lustyik) +* Fixed Sparkle tags parsing (Tamás Lustyik) * SULog code cleanups (Kevin Wojniak) * Make sure CFBundleVersion is a semantic version number. (Jake Petroules) * Replace typedef enums with typedef NS_ENUM to make Swift happier (C.W. Betts) @@ -108,7 +129,7 @@ * Turkish localization fixes (Emir) * Proofing of Ukrainian localization (Vera Tkachenko) -# 1.8.0 +# 1.8.0 (Jul 26, 2014) * New SUDSAVerifier based on up-to-date OS X APIs (Zachary Waldowski) * Detailed error log for failed signature checks (Kornel Lesiński) @@ -119,7 +140,7 @@ * Updated Japanese localization (1024jp) * Added Greek localization -# 1.7.1 +# 1.7.1 (Jul 2, 2014) * Removed option to install unverified updates (Kornel Lesiński) * Added detailed log when code signing verification fails (Sam Deane) diff --git a/Configurations/ConfigCommon.xcconfig b/Configurations/ConfigCommon.xcconfig index 4ba80bc0..5c0f08bd 100644 --- a/Configurations/ConfigCommon.xcconfig +++ b/Configurations/ConfigCommon.xcconfig @@ -15,8 +15,8 @@ SPARKLE_AUTOMATED_DOWNGRADES = 0 SPARKLE_NORMALIZE_INSTALLED_APPLICATION_NAME = 0 SPARKLE_VERSION_MAJOR = 1 -SPARKLE_VERSION_MINOR = 13 -SPARKLE_VERSION_PATCH = 1 +SPARKLE_VERSION_MINOR = 14 +SPARKLE_VERSION_PATCH = 0 SPARKLE_VERSION = $(SPARKLE_VERSION_MAJOR).$(SPARKLE_VERSION_MINOR).$(SPARKLE_VERSION_PATCH) CURRENT_PROJECT_VERSION = $(SPARKLE_VERSION) diff --git a/Configurations/ConfigUITest.xcconfig b/Configurations/ConfigUITest.xcconfig new file mode 100644 index 00000000..7b1706bd --- /dev/null +++ b/Configurations/ConfigUITest.xcconfig @@ -0,0 +1,11 @@ +// UI Test only + +INFOPLIST_FILE = UITests/UITests-Info.plist +WRAPPER_EXTENSION = xctest +MACOSX_DEPLOYMENT_TARGET = 10.11 + +FRAMEWORK_SEARCH_PATHS = $(inherited) $(DEVELOPER_FRAMEWORKS_DIR) +LD_RUNPATH_SEARCH_PATHS = @loader_path/../Frameworks + +TEST_TARGET_NAME = Sparkle Test App +USES_XCTRUNNER = YES diff --git a/Configurations/ConfigUITestCoverage.xcconfig b/Configurations/ConfigUITestCoverage.xcconfig new file mode 100644 index 00000000..c4cf79fd --- /dev/null +++ b/Configurations/ConfigUITestCoverage.xcconfig @@ -0,0 +1,4 @@ +#include "ConfigUITest.xcconfig" + +GCC_GENERATE_TEST_COVERAGE_FILES = NO +GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = NO diff --git a/Configurations/ConfigUITestDebug.xcconfig b/Configurations/ConfigUITestDebug.xcconfig new file mode 100644 index 00000000..464bf485 --- /dev/null +++ b/Configurations/ConfigUITestDebug.xcconfig @@ -0,0 +1 @@ +#include "ConfigUITest.xcconfig" diff --git a/Configurations/ConfigUITestRelease.xcconfig b/Configurations/ConfigUITestRelease.xcconfig new file mode 100644 index 00000000..464bf485 --- /dev/null +++ b/Configurations/ConfigUITestRelease.xcconfig @@ -0,0 +1 @@ +#include "ConfigUITest.xcconfig" diff --git a/Makefile b/Makefile index 4f1b4a9f..f46efad9 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,9 @@ build: test: xcodebuild -scheme Distribution -configuration Debug test +uitest: + xcodebuild -scheme UITests -configuration Debug test + ci: for i in {7..9} ; do \ if xcrun --sdk "macosx10.$$i" --show-sdk-path 2> /dev/null ; then \ diff --git a/Sparkle.podspec b/Sparkle.podspec index df5d5032..889a31e7 100644 --- a/Sparkle.podspec +++ b/Sparkle.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "Sparkle" - s.version = "1.11.1" + s.version = "1.13.1" s.summary = "A software update framework for OS X" 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 8b9ac634..18fbe574 100644 --- a/Sparkle.xcodeproj/project.pbxproj +++ b/Sparkle.xcodeproj/project.pbxproj @@ -72,8 +72,12 @@ 55C14F9A136F045400649790 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 61B5F8F609C4CEB300B25A18 /* Security.framework */; }; 55C14FC7136F05E100649790 /* Sparkle.strings in Resources */ = {isa = PBXBuildFile; fileRef = 61AAE8220A321A7F00D8810D /* Sparkle.strings */; }; 55E6F33319EC9F6C00005E76 /* SUErrors.h in Headers */ = {isa = PBXBuildFile; fileRef = 55E6F33219EC9F6C00005E76 /* SUErrors.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 5A4094481C74EA5200983BE0 /* SUAppcastTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5AA4DCD01C73E5510078F128 /* SUAppcastTest.swift */; }; 5A6D31EE1BF53245009C5157 /* SUFileManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 7275F9C01B5F1F2900B1D19E /* SUFileManager.m */; }; 5A6D31EF1BF5325F009C5157 /* SUOperatingSystem.m in Sources */ = {isa = PBXBuildFile; fileRef = 726F2CE41BC9C33D001971A4 /* SUOperatingSystem.m */; }; + 5AD0FA7F1C73F2E2004BCEFF /* testappcast.xml in Resources */ = {isa = PBXBuildFile; fileRef = 5AD0FA7E1C73F2E2004BCEFF /* testappcast.xml */; }; + 5AE459001C34118500E3BB47 /* SUUpdaterTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 14950074195FDF5900BC5B5B /* SUUpdaterTest.m */; }; + 5AE459021C34118500E3BB47 /* SUVersionComparisonTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 61227A150DB548B800AB99EA /* SUVersionComparisonTest.m */; }; 5AF6C74F1AEA46D10014A3AB /* test.sparkle_guided.pkg in Resources */ = {isa = PBXBuildFile; fileRef = 5AF6C74E1AEA46D10014A3AB /* test.sparkle_guided.pkg */; }; 5AF6C7541AEA49840014A3AB /* SUInstallerTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 5AF6C74C1AEA40760014A3AB /* SUInstallerTest.m */; }; 5AF9DC3C1981DBEE001EA135 /* SUDSAVerifierTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 5AF9DC3B1981DBEE001EA135 /* SUDSAVerifierTest.m */; }; @@ -164,6 +168,8 @@ 61F83F720DBFE140006FDD30 /* SUBasicUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 61F83F700DBFE137006FDD30 /* SUBasicUpdateDriver.m */; }; 61F83F740DBFE141006FDD30 /* SUBasicUpdateDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 61F83F6F0DBFE137006FDD30 /* SUBasicUpdateDriver.h */; settings = {ATTRIBUTES = (); }; }; 61FA52880E2D9EA400EF58AD /* Sparkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8DC2EF5B0486A6940098B216 /* Sparkle.framework */; settings = {ATTRIBUTES = (Required, ); }; }; + 720B16441C66433D006985FB /* UITests-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 720B16421C66433D006985FB /* UITests-Info.plist */; }; + 720B16451C66433D006985FB /* SUTestApplicationTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 720B16431C66433D006985FB /* SUTestApplicationTest.swift */; }; 7210C7681B9A9A1500EB90AC /* SUUnarchiverTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7210C7671B9A9A1500EB90AC /* SUUnarchiverTest.swift */; }; 721CF1A71AD7643600D9AC09 /* bsdiff.c in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8DB0FD68CB9005AE3F6 /* bsdiff.c */; settings = {COMPILER_FLAGS = "-w"; }; }; 721CF1A81AD7644100D9AC09 /* bspatch.c in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8DC0FD68CB9005AE3F6 /* bspatch.c */; settings = {COMPILER_FLAGS = "-w"; }; }; @@ -183,7 +189,6 @@ 7275F9C21B5F1F2900B1D19E /* SUFileManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 7275F9C01B5F1F2900B1D19E /* SUFileManager.m */; }; 7275F9C31B5F1F2900B1D19E /* SUFileManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 7275F9C01B5F1F2900B1D19E /* SUFileManager.m */; }; 72A4A2401BB6567D00E7820D /* SUFileManagerTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 72A4A23F1BB6567D00E7820D /* SUFileManagerTest.swift */; }; - 72A4A2411BB656FA00E7820D /* SUFileManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 7275F9C01B5F1F2900B1D19E /* SUFileManager.m */; }; 72AC6B261B9AAC8800F62325 /* SparkleTestCodeSignApp.tar.gz in Resources */ = {isa = PBXBuildFile; fileRef = 72AC6B251B9AAC8800F62325 /* SparkleTestCodeSignApp.tar.gz */; }; 72AC6B281B9AAD6700F62325 /* SparkleTestCodeSignApp.tar in Resources */ = {isa = PBXBuildFile; fileRef = 72AC6B271B9AAD6700F62325 /* SparkleTestCodeSignApp.tar */; }; 72AC6B2A1B9AAF3A00F62325 /* SparkleTestCodeSignApp.tar.bz2 in Resources */ = {isa = PBXBuildFile; fileRef = 72AC6B291B9AAF3A00F62325 /* SparkleTestCodeSignApp.tar.bz2 */; }; @@ -200,6 +205,7 @@ 767B61AD1972D488004E0C3C /* SUGuidedPackageInstaller.m in Sources */ = {isa = PBXBuildFile; fileRef = 767B61AB1972D488004E0C3C /* SUGuidedPackageInstaller.m */; }; 767B61AE1972D488004E0C3C /* SUGuidedPackageInstaller.m in Sources */ = {isa = PBXBuildFile; fileRef = 767B61AB1972D488004E0C3C /* SUGuidedPackageInstaller.m */; }; A5BF4F1D1BC7668B007A052A /* SUTestWebServer.m in Sources */ = {isa = PBXBuildFile; fileRef = A5BF4F1C1BC7668B007A052A /* SUTestWebServer.m */; }; + C23E885B1BE7B24F0050BB73 /* SparkleTestCodeSignApp.enc.dmg in Resources */ = {isa = PBXBuildFile; fileRef = C23E88591BE7AF890050BB73 /* SparkleTestCodeSignApp.enc.dmg */; }; 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 */; }; @@ -297,6 +303,13 @@ remoteGlobalIDString = 8DC2EF4F0486A6940098B216; remoteInfo = Sparkle; }; + 726B2B621C645FC900388755 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 61B5F90109C4CEE200B25A18; + remoteInfo = "Sparkle Test App"; + }; /* End PBXContainerItemProxy section */ /* Begin PBXCopyFilesBuildPhase section */ @@ -371,6 +384,40 @@ 14958C6C19AEBC610061B14F /* test-pubkey.pem */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "test-pubkey.pem"; sourceTree = ""; }; 149B78631B7D3A0C00D7D62C /* ConfigCommonCoverage.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigCommonCoverage.xcconfig; sourceTree = ""; }; 149B78641B7D3A4800D7D62C /* ConfigUnitTestCoverage.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigUnitTestCoverage.xcconfig; sourceTree = ""; }; + 1A985A321C5C329C0001163A /* ja */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ja; path = ja.lproj/InfoPlist.strings; sourceTree = ""; }; + 1A985A331C5C329D0001163A /* fr */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = fr; path = fr.lproj/InfoPlist.strings; sourceTree = ""; }; + 1A985A341C5C329E0001163A /* de */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = de; path = de.lproj/InfoPlist.strings; sourceTree = ""; }; + 1A985A351C5C329E0001163A /* zh-Hant */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hant"; path = "zh-Hant.lproj/InfoPlist.strings"; sourceTree = ""; }; + 1A985A361C5C32A20001163A /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/InfoPlist.strings; sourceTree = ""; }; + 1A985A371C5C32A30001163A /* ca */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ca; path = ca.lproj/InfoPlist.strings; sourceTree = ""; }; + 1A985A381C5C32A40001163A /* cs */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = cs; path = cs.lproj/InfoPlist.strings; sourceTree = ""; }; + 1A985A391C5C32A40001163A /* cy */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = cy; path = cy.lproj/InfoPlist.strings; sourceTree = ""; }; + 1A985A3A1C5C32A50001163A /* da */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = da; path = da.lproj/InfoPlist.strings; sourceTree = ""; }; + 1A985A3B1C5C32A60001163A /* es */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = es; path = es.lproj/InfoPlist.strings; sourceTree = ""; }; + 1A985A3C1C5C32A70001163A /* fi */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = fi; path = fi.lproj/InfoPlist.strings; sourceTree = ""; }; + 1A985A3D1C5C32A80001163A /* he */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = he; path = he.lproj/InfoPlist.strings; sourceTree = ""; }; + 1A985A3E1C5C32A90001163A /* hu */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = hu; path = hu.lproj/InfoPlist.strings; sourceTree = ""; }; + 1A985A3F1C5C32AA0001163A /* id */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = id; path = id.lproj/InfoPlist.strings; sourceTree = ""; }; + 1A985A401C5C32AA0001163A /* is */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = is; path = is.lproj/InfoPlist.strings; sourceTree = ""; }; + 1A985A411C5C32AB0001163A /* ko */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ko; path = ko.lproj/InfoPlist.strings; sourceTree = ""; }; + 1A985A421C5C32AC0001163A /* nb */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = nb; path = nb.lproj/InfoPlist.strings; sourceTree = ""; }; + 1A985A431C5C32AD0001163A /* nl */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = nl; path = nl.lproj/InfoPlist.strings; sourceTree = ""; }; + 1A985A441C5C32AE0001163A /* pl */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pl; path = pl.lproj/InfoPlist.strings; sourceTree = ""; }; + 1A985A451C5C32AF0001163A /* ru */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ru; path = ru.lproj/InfoPlist.strings; sourceTree = ""; }; + 1A985A461C5C32B00001163A /* sk */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = sk; path = sk.lproj/InfoPlist.strings; sourceTree = ""; }; + 1A985A471C5C32B10001163A /* sv */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = sv; path = sv.lproj/InfoPlist.strings; sourceTree = ""; }; + 1A985A481C5C32B10001163A /* th */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = th; path = th.lproj/InfoPlist.strings; sourceTree = ""; }; + 1A985A491C5C32B20001163A /* tr */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = tr; path = tr.lproj/InfoPlist.strings; sourceTree = ""; }; + 1A985A4A1C5C32B50001163A /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/InfoPlist.strings"; sourceTree = ""; }; + 1A985A4B1C5C32B60001163A /* fr-CA */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "fr-CA"; path = "fr-CA.lproj/InfoPlist.strings"; sourceTree = ""; }; + 1A985A4C1C5C32B70001163A /* pt-PT */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "pt-PT"; path = "pt-PT.lproj/InfoPlist.strings"; sourceTree = ""; }; + 1A985A4D1C5C32B70001163A /* pt-BR */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "pt-BR"; path = "pt-BR.lproj/InfoPlist.strings"; sourceTree = ""; }; + 1A985A4E1C5C32B80001163A /* pt */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pt; path = pt.lproj/InfoPlist.strings; sourceTree = ""; }; + 1A985A4F1C5C32B90001163A /* sl */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = sl; path = sl.lproj/InfoPlist.strings; sourceTree = ""; }; + 1A985A501C5C32BA0001163A /* ro */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ro; path = ro.lproj/InfoPlist.strings; sourceTree = ""; }; + 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 = ""; }; 3772FEA813DE0B6B00F79537 /* SUVersionDisplayProtocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUVersionDisplayProtocol.h; sourceTree = ""; }; 4607BEA21948443800EF8DA4 /* nb */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = nb; path = nb.lproj/Sparkle.strings; sourceTree = ""; }; 4607BEA31948443800EF8DA4 /* nb */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = nb; path = nb.lproj/SUAutomaticUpdateAlert.xib; sourceTree = ""; }; @@ -443,6 +490,8 @@ 55C14F05136EF6DB00649790 /* SULog.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SULog.m; sourceTree = ""; }; 55C14F31136EFC2400649790 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; }; 55E6F33219EC9F6C00005E76 /* SUErrors.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUErrors.h; sourceTree = ""; }; + 5AA4DCD01C73E5510078F128 /* SUAppcastTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SUAppcastTest.swift; sourceTree = ""; }; + 5AD0FA7E1C73F2E2004BCEFF /* testappcast.xml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = testappcast.xml; sourceTree = ""; }; 5AEF45D9189D1CC90030D7DC /* tr */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = tr; path = tr.lproj/Sparkle.strings; sourceTree = ""; }; 5AF6C74C1AEA40760014A3AB /* SUInstallerTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUInstallerTest.m; sourceTree = ""; }; 5AF6C74E1AEA46D10014A3AB /* test.sparkle_guided.pkg */ = {isa = PBXFileReference; lastKnownFileType = file; path = test.sparkle_guided.pkg; sourceTree = ""; }; @@ -574,15 +623,22 @@ 61F614540E24A12D009F47E7 /* it */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/Sparkle.strings; sourceTree = ""; }; 61F83F6F0DBFE137006FDD30 /* SUBasicUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUBasicUpdateDriver.h; sourceTree = ""; }; 61F83F700DBFE137006FDD30 /* SUBasicUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUBasicUpdateDriver.m; sourceTree = ""; }; + 720B16421C66433D006985FB /* UITests-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = "UITests-Info.plist"; path = "UITests/UITests-Info.plist"; sourceTree = SOURCE_ROOT; }; + 720B16431C66433D006985FB /* SUTestApplicationTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SUTestApplicationTest.swift; path = UITests/SUTestApplicationTest.swift; sourceTree = SOURCE_ROOT; }; 7210C7671B9A9A1500EB90AC /* SUUnarchiverTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SUUnarchiverTest.swift; sourceTree = ""; }; 7223E7611AD1AEFF008E3161 /* sais.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = sais.c; sourceTree = ""; }; 7223E7621AD1AEFF008E3161 /* sais.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = sais.h; sourceTree = ""; }; 7268AC621AD634C200C3E0C1 /* SUBinaryDeltaCreate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUBinaryDeltaCreate.m; sourceTree = ""; }; 7268AC641AD634E400C3E0C1 /* SUBinaryDeltaCreate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUBinaryDeltaCreate.h; sourceTree = ""; }; + 726B2B5D1C645FC900388755 /* UI Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "UI Tests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 726F2CE31BC9C33D001971A4 /* SUOperatingSystem.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUOperatingSystem.h; sourceTree = ""; }; 726F2CE41BC9C33D001971A4 /* SUOperatingSystem.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUOperatingSystem.m; sourceTree = ""; }; 7275F9BF1B5F1F2900B1D19E /* SUFileManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUFileManager.h; sourceTree = ""; }; 7275F9C01B5F1F2900B1D19E /* SUFileManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUFileManager.m; sourceTree = ""; }; + 729F10FD1C65A9B500DFCCC5 /* ConfigUITest.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigUITest.xcconfig; sourceTree = ""; }; + 729F10FE1C65A9B500DFCCC5 /* ConfigUITestCoverage.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigUITestCoverage.xcconfig; sourceTree = ""; }; + 729F10FF1C65A9B500DFCCC5 /* ConfigUITestDebug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigUITestDebug.xcconfig; sourceTree = ""; }; + 729F11001C65A9B500DFCCC5 /* ConfigUITestRelease.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigUITestRelease.xcconfig; sourceTree = ""; }; 72A4A23F1BB6567D00E7820D /* SUFileManagerTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SUFileManagerTest.swift; sourceTree = ""; }; 72AC6B251B9AAC8800F62325 /* SparkleTestCodeSignApp.tar.gz */ = {isa = PBXFileReference; lastKnownFileType = archive.gzip; path = SparkleTestCodeSignApp.tar.gz; sourceTree = ""; }; 72AC6B271B9AAD6700F62325 /* SparkleTestCodeSignApp.tar */ = {isa = PBXFileReference; lastKnownFileType = archive.tar; path = SparkleTestCodeSignApp.tar; sourceTree = ""; }; @@ -604,6 +660,7 @@ 8DC2EF5B0486A6940098B216 /* Sparkle.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Sparkle.framework; sourceTree = BUILT_PRODUCTS_DIR; }; A5BF4F1B1BC7668B007A052A /* SUTestWebServer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUTestWebServer.h; sourceTree = ""; }; A5BF4F1C1BC7668B007A052A /* SUTestWebServer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUTestWebServer.m; sourceTree = ""; }; + C23E88591BE7AF890050BB73 /* SparkleTestCodeSignApp.enc.dmg */ = {isa = PBXFileReference; lastKnownFileType = file; path = SparkleTestCodeSignApp.enc.dmg; 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 = ""; }; @@ -672,6 +729,13 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 726B2B5A1C645FC900388755 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; 8DC2EF560486A6940098B216 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; @@ -699,6 +763,7 @@ 61B5F90209C4CEE200B25A18 /* Sparkle Test App.app */, 612279D90DB5470200AB99EA /* Sparkle Unit Tests.xctest */, 8DC2EF5B0486A6940098B216 /* Sparkle.framework */, + 726B2B5D1C645FC900388755 /* UI Tests.xctest */, ); name = Products; sourceTree = ""; @@ -713,6 +778,7 @@ 14732BB51960ECBA00593899 /* Third Party */, 1420DE391962322200203BB0 /* Documentation */, FA1941C40D94A6EA00DD942E /* Configurations */, + 726B2B5E1C645FC900388755 /* UI Tests */, 0867D69AFE84028FC02AAC07 /* Frameworks */, 034768DFFF38A50411DB9C8B /* Products */, ); @@ -837,6 +903,7 @@ children = ( 14958C6B19AEBC530061B14F /* signed-test-file.txt */, 72AC6B2D1B9B218C00F62325 /* SparkleTestCodeSignApp.dmg */, + C23E88591BE7AF890050BB73 /* SparkleTestCodeSignApp.enc.dmg */, 72AC6B271B9AAD6700F62325 /* SparkleTestCodeSignApp.tar */, 72AC6B291B9AAF3A00F62325 /* SparkleTestCodeSignApp.tar.bz2 */, 72AC6B251B9AAC8800F62325 /* SparkleTestCodeSignApp.tar.gz */, @@ -844,6 +911,7 @@ F8761EB21ADC50EB000C9034 /* SparkleTestCodeSignApp.zip */, 14958C6C19AEBC610061B14F /* test-pubkey.pem */, 5AF6C74E1AEA46D10014A3AB /* test.sparkle_guided.pkg */, + 5AD0FA7E1C73F2E2004BCEFF /* testappcast.xml */, ); path = Resources; sourceTree = ""; @@ -894,6 +962,7 @@ 14958C7019AEBE350061B14F /* Resources */, 72AFC6121B9A944200F6B565 /* Sparkle Unit Tests-Bridging-Header.h */, 612279DA0DB5470200AB99EA /* SparkleTests-Info.plist */, + 5AA4DCD01C73E5510078F128 /* SUAppcastTest.swift */, 142E0E0819A83AAC00E4312B /* SUBinaryDeltaTest.m */, F8761EB01ADC5068000C9034 /* SUCodeSigningVerifierTest.m */, 5AF9DC3B1981DBEE001EA135 /* SUDSAVerifierTest.m */, @@ -968,10 +1037,10 @@ 14652F8319A9759F00959E44 /* SUExport.h */, 61EF67580E25C5B400F754E0 /* SUHost.h */, 61EF67550E25B58D00F754E0 /* SUHost.m */, - 726F2CE31BC9C33D001971A4 /* SUOperatingSystem.h */, - 726F2CE41BC9C33D001971A4 /* SUOperatingSystem.m */, 55C14F04136EF6DB00649790 /* SULog.h */, 55C14F05136EF6DB00649790 /* SULog.m */, + 726F2CE31BC9C33D001971A4 /* SUOperatingSystem.h */, + 726F2CE41BC9C33D001971A4 /* SUOperatingSystem.m */, ); includeInIndex = 1; name = "Other Sources"; @@ -987,10 +1056,10 @@ 72E45CFB1B641961005C701A /* sparkletestcast.xml */, 72E45CF11B640CDD005C701A /* SUTestApplicationDelegate.h */, 72E45CF21B640CDD005C701A /* SUTestApplicationDelegate.m */, - 72E45CF41B640DAE005C701A /* SUUpdateSettingsWindowController.h */, - 72E45CF51B640DAE005C701A /* SUUpdateSettingsWindowController.m */, A5BF4F1B1BC7668B007A052A /* SUTestWebServer.h */, A5BF4F1C1BC7668B007A052A /* SUTestWebServer.m */, + 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 */, @@ -1044,6 +1113,15 @@ name = "Update Control"; sourceTree = ""; }; + 726B2B5E1C645FC900388755 /* UI Tests */ = { + isa = PBXGroup; + children = ( + 720B16431C66433D006985FB /* SUTestApplicationTest.swift */, + 720B16421C66433D006985FB /* UITests-Info.plist */, + ); + path = "UI Tests"; + sourceTree = ""; + }; FA1941C40D94A6EA00DD942E /* Configurations */ = { isa = PBXGroup; children = ( @@ -1068,6 +1146,10 @@ 149B78641B7D3A4800D7D62C /* ConfigUnitTestCoverage.xcconfig */, FA3AAF3A1050B273004B3130 /* ConfigUnitTestDebug.xcconfig */, FA3AAF391050B273004B3130 /* ConfigUnitTestRelease.xcconfig */, + 729F10FD1C65A9B500DFCCC5 /* ConfigUITest.xcconfig */, + 729F10FE1C65A9B500DFCCC5 /* ConfigUITestCoverage.xcconfig */, + 729F10FF1C65A9B500DFCCC5 /* ConfigUITestDebug.xcconfig */, + 729F11001C65A9B500DFCCC5 /* ConfigUITestRelease.xcconfig */, 14732BC91960F70A00593899 /* make-release-package.sh */, 14652F7919A93E5F00959E44 /* set-git-version-info.sh */, 146EC84E19A68CF8004A50C5 /* Sparkle.podspec */, @@ -1238,6 +1320,24 @@ productReference = 61B5F90209C4CEE200B25A18 /* Sparkle Test App.app */; productType = "com.apple.product-type.application"; }; + 726B2B5C1C645FC900388755 /* UI Tests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 726B2B671C645FC900388755 /* Build configuration list for PBXNativeTarget "UI Tests" */; + buildPhases = ( + 726B2B591C645FC900388755 /* Sources */, + 726B2B5A1C645FC900388755 /* Frameworks */, + 726B2B5B1C645FC900388755 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 726B2B631C645FC900388755 /* PBXTargetDependency */, + ); + name = "UI Tests"; + productName = "UI Tests"; + productReference = 726B2B5D1C645FC900388755 /* UI Tests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; 8DC2EF4F0486A6940098B216 /* Sparkle */ = { isa = PBXNativeTarget; buildConfigurationList = 1DEB91AD08733DA50010E9CD /* Build configuration list for PBXNativeTarget "Sparkle" */; @@ -1269,13 +1369,17 @@ isa = PBXProject; attributes = { CLASSPREFIX = SU; - LastSwiftUpdateCheck = 0700; - LastUpgradeCheck = 0710; + LastSwiftUpdateCheck = 0720; + LastUpgradeCheck = 0720; ORGANIZATIONNAME = "Sparkle Project"; TargetAttributes = { 612279D80DB5470200AB99EA = { TestTargetID = 8DC2EF4F0486A6940098B216; }; + 726B2B5C1C645FC900388755 = { + CreatedOnToolsVersion = 7.2.1; + TestTargetID = 61B5F90109C4CEE200B25A18; + }; }; }; buildConfigurationList = 1DEB91B108733DA50010E9CD /* Build configuration list for PBXProject "Sparkle" */; @@ -1324,6 +1428,11 @@ ar, nb, el, + "zh-Hans", + "zh-Hant", + "fr-CA", + "pt-PT", + "pt-BR", ); mainGroup = 0867D691FE84028FC02AAC07 /* Sparkle */; productRefGroup = 034768DFFF38A50411DB9C8B /* Products */; @@ -1338,6 +1447,7 @@ 14732BC51960F69300593899 /* Distribution */, 1420DF491962329200203BB0 /* Documentation */, 1495005F195FB89400BC5B5B /* All */, + 726B2B5C1C645FC900388755 /* UI Tests */, ); }; /* End PBXProject section */ @@ -1349,6 +1459,7 @@ files = ( 14958C6E19AEBC950061B14F /* signed-test-file.txt in Resources */, 72AC6B2E1B9B218C00F62325 /* SparkleTestCodeSignApp.dmg in Resources */, + C23E885B1BE7B24F0050BB73 /* SparkleTestCodeSignApp.enc.dmg in Resources */, 72AC6B281B9AAD6700F62325 /* SparkleTestCodeSignApp.tar in Resources */, 72AC6B2A1B9AAF3A00F62325 /* SparkleTestCodeSignApp.tar.bz2 in Resources */, 72AC6B261B9AAC8800F62325 /* SparkleTestCodeSignApp.tar.gz in Resources */, @@ -1356,6 +1467,7 @@ F8761EB31ADC50EB000C9034 /* SparkleTestCodeSignApp.zip in Resources */, 14958C6F19AEBC980061B14F /* test-pubkey.pem in Resources */, 5AF6C74F1AEA46D10014A3AB /* test.sparkle_guided.pkg in Resources */, + 5AD0FA7F1C73F2E2004BCEFF /* testappcast.xml in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1384,6 +1496,14 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 726B2B5B1C645FC900388755 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 720B16441C66433D006985FB /* UITests-Info.plist in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 8DC2EF520486A6940098B216 /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; @@ -1471,7 +1591,6 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 726F2CE71BC9C3E2001971A4 /* SUOperatingSystem.m in Sources */, 55C14BD4136EEFCE00649790 /* Autoupdate.m in Sources */, F8761EB61ADC5E7A000C9034 /* SUCodeSigningVerifier.m in Sources */, 55C14F00136EF6B700649790 /* SUConstants.m in Sources */, @@ -1480,6 +1599,7 @@ 55C14F0C136EF6EA00649790 /* SUHost.m in Sources */, 55C14F0D136EF6F200649790 /* SUInstaller.m in Sources */, 55C14F08136EF6DB00649790 /* SULog.m in Sources */, + 726F2CE71BC9C3E2001971A4 /* SUOperatingSystem.m in Sources */, 55C14F24136EF86F00649790 /* SUPackageInstaller.m in Sources */, 55C14F21136EF84D00649790 /* SUPlainInstaller.m in Sources */, 55C14F22136EF86000649790 /* SUStandardVersionComparator.m in Sources */, @@ -1493,9 +1613,6 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 726F2CE91BC9C499001971A4 /* SUOperatingSystem.m in Sources */, - 726F2CE81BC9C48F001971A4 /* SUConstants.m in Sources */, - 726F2CDE1BC9BE5B001971A4 /* SUFileManager.m in Sources */, 5D06E8E90FD68CDB005AE3F6 /* bsdiff.c in Sources */, 14652F7E19A9728A00959E44 /* bspatch.c in Sources */, 7223E7631AD1AEFF008E3161 /* sais.c in Sources */, @@ -1503,6 +1620,9 @@ 14652F7C19A9725300959E44 /* SUBinaryDeltaCommon.m in Sources */, 7268AC631AD634C200C3E0C1 /* SUBinaryDeltaCreate.m in Sources */, 5D06E8EA0FD68CDB005AE3F6 /* SUBinaryDeltaTool.m in Sources */, + 726F2CE81BC9C48F001971A4 /* SUConstants.m in Sources */, + 726F2CDE1BC9BE5B001971A4 /* SUFileManager.m in Sources */, + 726F2CE91BC9C499001971A4 /* SUOperatingSystem.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1513,15 +1633,17 @@ 721CF1A71AD7643600D9AC09 /* bsdiff.c in Sources */, 721CF1A81AD7644100D9AC09 /* bspatch.c in Sources */, 721CF1A91AD7644C00D9AC09 /* sais.c in Sources */, + 5A4094481C74EA5200983BE0 /* SUAppcastTest.swift in Sources */, 72D4DAA11AD7632900B211E2 /* SUBinaryDeltaCreate.m in Sources */, 142E0E0919A83AAC00E4312B /* SUBinaryDeltaTest.m in Sources */, F8761EB11ADC5068000C9034 /* SUCodeSigningVerifierTest.m in Sources */, 5AF9DC3C1981DBEE001EA135 /* SUDSAVerifierTest.m in Sources */, - 72A4A2411BB656FA00E7820D /* SUFileManager.m in Sources */, 72A4A2401BB6567D00E7820D /* SUFileManagerTest.swift in Sources */, 5AF6C7541AEA49840014A3AB /* SUInstallerTest.m in Sources */, 14652F8219A9746000959E44 /* SULog.m in Sources */, 7210C7681B9A9A1500EB90AC /* SUUnarchiverTest.swift in Sources */, + 5AE459001C34118500E3BB47 /* SUUpdaterTest.m in Sources */, + 5AE459021C34118500E3BB47 /* SUVersionComparisonTest.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1529,16 +1651,24 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 726F2CEB1BC9C733001971A4 /* SUConstants.m in Sources */, - 5A6D31EF1BF5325F009C5157 /* SUOperatingSystem.m in Sources */, - 5A6D31EE1BF53245009C5157 /* SUFileManager.m in Sources */, 61B5F93009C4CFDC00B25A18 /* main.m in Sources */, - A5BF4F1D1BC7668B007A052A /* SUTestWebServer.m in Sources */, + 726F2CEB1BC9C733001971A4 /* SUConstants.m in Sources */, + 5A6D31EE1BF53245009C5157 /* SUFileManager.m in Sources */, + 5A6D31EF1BF5325F009C5157 /* SUOperatingSystem.m in Sources */, 72E45CF31B640CDD005C701A /* SUTestApplicationDelegate.m in Sources */, + A5BF4F1D1BC7668B007A052A /* SUTestWebServer.m in Sources */, 72E45CF71B640DAE005C701A /* SUUpdateSettingsWindowController.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; + 726B2B591C645FC900388755 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 720B16451C66433D006985FB /* SUTestApplicationTest.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 8DC2EF540486A6940098B216 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; @@ -1562,12 +1692,12 @@ 61EF67560E25B58D00F754E0 /* SUHost.m in Sources */, 618FA5020DAE88B40026945C /* SUInstaller.m in Sources */, 55C14F07136EF6DB00649790 /* SULog.m in Sources */, + 726F2CE61BC9C33D001971A4 /* SUOperatingSystem.m in Sources */, 618FA5230DAE8E8A0026945C /* SUPackageInstaller.m in Sources */, 61D85D6D0E10B2ED00F9B4A9 /* SUPipedUnarchiver.m in Sources */, 618FA5060DAE8AB80026945C /* SUPlainInstaller.m in Sources */, 6101347C0DD2541A0049ACDF /* SUProbingUpdateDriver.m in Sources */, 61B93C0A0DD112FF00DCD2F8 /* SUScheduledUpdateDriver.m in Sources */, - 726F2CE61BC9C33D001971A4 /* SUOperatingSystem.m in Sources */, 61A225A50D1C4AC000430CCD /* SUStandardVersionComparator.m in Sources */, 6196CFFA09C72149000DC222 /* SUStatusController.m in Sources */, 61A2279D0D1CEE7600430CCD /* SUSystemProfiler.m in Sources */, @@ -1650,6 +1780,11 @@ target = 8DC2EF4F0486A6940098B216 /* Sparkle */; targetProxy = 61FA528C0E2D9EB200EF58AD /* PBXContainerItemProxy */; }; + 726B2B631C645FC900388755 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 61B5F90109C4CEE200B25A18 /* Sparkle Test App */; + targetProxy = 726B2B621C645FC900388755 /* PBXContainerItemProxy */; + }; /* End PBXTargetDependency section */ /* Begin PBXVariantGroup section */ @@ -1796,6 +1931,40 @@ isa = PBXVariantGroup; children = ( 61B5F92B09C4CFD800B25A18 /* English */, + 1A985A321C5C329C0001163A /* ja */, + 1A985A331C5C329D0001163A /* fr */, + 1A985A341C5C329E0001163A /* de */, + 1A985A351C5C329E0001163A /* zh-Hant */, + 1A985A361C5C32A20001163A /* it */, + 1A985A371C5C32A30001163A /* ca */, + 1A985A381C5C32A40001163A /* cs */, + 1A985A391C5C32A40001163A /* cy */, + 1A985A3A1C5C32A50001163A /* da */, + 1A985A3B1C5C32A60001163A /* es */, + 1A985A3C1C5C32A70001163A /* fi */, + 1A985A3D1C5C32A80001163A /* he */, + 1A985A3E1C5C32A90001163A /* hu */, + 1A985A3F1C5C32AA0001163A /* id */, + 1A985A401C5C32AA0001163A /* is */, + 1A985A411C5C32AB0001163A /* ko */, + 1A985A421C5C32AC0001163A /* nb */, + 1A985A431C5C32AD0001163A /* nl */, + 1A985A441C5C32AE0001163A /* pl */, + 1A985A451C5C32AF0001163A /* ru */, + 1A985A461C5C32B00001163A /* sk */, + 1A985A471C5C32B10001163A /* sv */, + 1A985A481C5C32B10001163A /* th */, + 1A985A491C5C32B20001163A /* tr */, + 1A985A4A1C5C32B50001163A /* zh-Hans */, + 1A985A4B1C5C32B60001163A /* fr-CA */, + 1A985A4C1C5C32B70001163A /* pt-PT */, + 1A985A4D1C5C32B70001163A /* pt-BR */, + 1A985A4E1C5C32B80001163A /* pt */, + 1A985A4F1C5C32B90001163A /* sl */, + 1A985A501C5C32BA0001163A /* ro */, + 1A985A511C5C32BB0001163A /* uk */, + 1A985A521C5C32BC0001163A /* ar */, + 1A985A531C5C32BD0001163A /* el */, ); name = InfoPlist.strings; sourceTree = ""; @@ -1991,6 +2160,35 @@ }; name = Release; }; + 726B2B641C645FC900388755 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 729F10FF1C65A9B500DFCCC5 /* ConfigUITestDebug.xcconfig */; + buildSettings = { + CLANG_ENABLE_MODULES = YES; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 726B2B651C645FC900388755 /* Coverage */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 729F10FE1C65A9B500DFCCC5 /* ConfigUITestCoverage.xcconfig */; + buildSettings = { + CLANG_ENABLE_MODULES = YES; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Coverage; + }; + 726B2B661C645FC900388755 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 729F11001C65A9B500DFCCC5 /* ConfigUITestRelease.xcconfig */; + buildSettings = { + CLANG_ENABLE_MODULES = YES; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; + }; + name = Release; + }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ @@ -2084,6 +2282,16 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; + 726B2B671C645FC900388755 /* Build configuration list for PBXNativeTarget "UI Tests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 726B2B641C645FC900388755 /* Debug */, + 726B2B651C645FC900388755 /* Coverage */, + 726B2B661C645FC900388755 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; /* End XCConfigurationList section */ }; rootObject = 0867D690FE84028FC02AAC07 /* Project object */; diff --git a/Sparkle.xcodeproj/xcshareddata/xcschemes/UITests.xcscheme b/Sparkle.xcodeproj/xcshareddata/xcschemes/UITests.xcscheme new file mode 100644 index 00000000..41d9dbbb --- /dev/null +++ b/Sparkle.xcodeproj/xcshareddata/xcschemes/UITests.xcscheme @@ -0,0 +1,56 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Sparkle/SUAppcast.h b/Sparkle/SUAppcast.h index 8f3efc8e..a035f18f 100644 --- a/Sparkle/SUAppcast.h +++ b/Sparkle/SUAppcast.h @@ -19,6 +19,7 @@ SU_EXPORT @interface SUAppcast : NSObject @property (copy) NSDictionary *httpHeaders; - (void)fetchAppcastFromURL:(NSURL *)url completionBlock:(void (^)(NSError *))err; +- (SUAppcast *)copyWithoutDeltaUpdates; @property (readonly, copy) NSArray *items; @end diff --git a/Sparkle/SUAppcast.m b/Sparkle/SUAppcast.m index 2dcc7a96..54b1d2b7 100644 --- a/Sparkle/SUAppcast.m +++ b/Sparkle/SUAppcast.m @@ -93,143 +93,136 @@ - (void)downloadDidFinish:(NSURLDownload *)__unused aDownload { NSError *error = nil; + NSArray *appcastItems = [self parseAppcastItemsFromXMLFile:[NSURL fileURLWithPath:self.downloadFilename] error:&error]; - NSXMLDocument *document = nil; - BOOL failed = NO; - NSArray *xmlItems = nil; - NSMutableArray *appcastItems = [NSMutableArray array]; + [[NSFileManager defaultManager] removeItemAtPath:self.downloadFilename error:nil]; + self.downloadFilename = nil; - if (self.downloadFilename) - { - NSUInteger options = 0; - options = NSXMLNodeLoadExternalEntitiesNever; // Prevent inclusion from file:// - document = [[NSXMLDocument alloc] initWithContentsOfURL:[NSURL fileURLWithPath:self.downloadFilename] options:options error:&error]; - - [[NSFileManager defaultManager] removeItemAtPath:self.downloadFilename error:nil]; - self.downloadFilename = nil; - } - else - { - failed = YES; - } - - if (nil == document) - { - failed = YES; - } - else - { - xmlItems = [document nodesForXPath:@"/rss/channel/item" error:&error]; - if (nil == xmlItems) - { - failed = YES; + if (appcastItems) { + self.items = appcastItems; + self.completionBlock(nil); + self.completionBlock = nil; + } else { + NSMutableDictionary *userInfo = [NSMutableDictionary + dictionaryWithObject: SULocalizedString(@"An error occurred while parsing the update feed.", nil) + forKey: NSLocalizedDescriptionKey]; + if (error) { + userInfo[NSUnderlyingErrorKey] = error; } + [self reportError:[NSError errorWithDomain:SUSparkleErrorDomain + code:SUAppcastParseError + userInfo:userInfo]]; + } +} + +-(NSArray *)parseAppcastItemsFromXMLFile:(NSURL *)appcastFile error:(NSError *__autoreleasing*)errorp { + if (errorp) { + *errorp = nil; } - if (failed == NO) - { + if (!appcastFile) { + return nil; + } - NSEnumerator *nodeEnum = [xmlItems objectEnumerator]; - NSXMLNode *node; + NSUInteger options = NSXMLNodeLoadExternalEntitiesNever; // Prevent inclusion from file:// + NSXMLDocument *document = [[NSXMLDocument alloc] initWithContentsOfURL:appcastFile options:options error:errorp]; + if (nil == document) { + return nil; + } + + NSArray *xmlItems = [document nodesForXPath:@"/rss/channel/item" error:errorp]; + if (nil == xmlItems) { + return nil; + } + + NSMutableArray *appcastItems = [NSMutableArray array]; + NSEnumerator *nodeEnum = [xmlItems objectEnumerator]; + NSXMLNode *node; + + while((node = [nodeEnum nextObject])) { NSMutableDictionary *nodesDict = [NSMutableDictionary dictionary]; NSMutableDictionary *dict = [NSMutableDictionary dictionary]; - while (failed == NO && (node = [nodeEnum nextObject])) - { - // First, we'll "index" all the first-level children of this appcast item so we can pick them out by language later. - if ([[node children] count]) - { - node = [node childAtIndex:0]; - while (nil != node) - { - NSString *name = [node name]; - if (name) - { - NSMutableArray *nodes = nodesDict[name]; - if (nodes == nil) - { - nodes = [NSMutableArray array]; - nodesDict[name] = nodes; - } - [nodes addObject:node]; + // First, we'll "index" all the first-level children of this appcast item so we can pick them out by language later. + if ([[node children] count]) { + node = [node childAtIndex:0]; + while (nil != node) { + NSString *name = [node name]; + if (name) { + NSMutableArray *nodes = nodesDict[name]; + if (nodes == nil) { + nodes = [NSMutableArray array]; + nodesDict[name] = nodes; } - node = [node nextSibling]; + [nodes addObject:node]; } + node = [node nextSibling]; } + } - for (NSString *name in nodesDict) - { - node = [self bestNodeInNodes:nodesDict[name]]; - if ([name isEqualToString:SURSSElementEnclosure]) - { - // enclosure is flattened as a separate dictionary for some reason - NSDictionary *encDict = [(NSXMLElement *)node attributesAsDictionary]; - dict[name] = encDict; - - } - else if ([name isEqualToString:SURSSElementPubDate]) - { - // We don't want to parse and create a NSDate instance - - // that's a risk we can avoid. We don't use the date anywhere other - // than it being accessible from SUAppcastItem - NSString *dateString = node.stringValue; - if (dateString) { - dict[name] = dateString; - } - } - else if ([name isEqualToString:SUAppcastElementDeltas]) - { - NSMutableArray *deltas = [NSMutableArray array]; - NSEnumerator *childEnum = [[node children] objectEnumerator]; - for (NSXMLNode *child in childEnum) { - if ([[child name] isEqualToString:SURSSElementEnclosure]) - [deltas addObject:[(NSXMLElement *)child attributesAsDictionary]]; - } - dict[name] = deltas; - } - else if ([name isEqualToString:SUAppcastElementTags]) { - NSMutableArray *tags = [NSMutableArray array]; - NSEnumerator *childEnum = [[node children] objectEnumerator]; - for (NSXMLNode *child in childEnum) { - NSString *childName = child.name; - if (childName) - [tags addObject:childName]; - } - dict[name] = tags; - } - else if (name != nil) - { - // add all other values as strings - NSString *theValue = [[node stringValue] stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]; - if (theValue != nil) { - dict[name] = theValue; - } - } - } - - NSString *errString; - SUAppcastItem *anItem = [[SUAppcastItem alloc] initWithDictionary:dict failureReason:&errString]; - if (anItem) - { - [appcastItems addObject:anItem]; + for (NSString *name in nodesDict) { + node = [self bestNodeInNodes:nodesDict[name]]; + if ([name isEqualToString:SURSSElementEnclosure]) { + // enclosure is flattened as a separate dictionary for some reason + NSDictionary *encDict = [(NSXMLElement *)node attributesAsDictionary]; + dict[name] = encDict; } - else - { - SULog(@"Sparkle Updater: Failed to parse appcast item: %@.\nAppcast dictionary was: %@", errString, dict); + else if ([name isEqualToString:SURSSElementPubDate]) { + // We don't want to parse and create a NSDate instance - + // that's a risk we can avoid. We don't use the date anywhere other + // than it being accessible from SUAppcastItem + NSString *dateString = node.stringValue; + if (dateString) { + dict[name] = dateString; + } + } + else if ([name isEqualToString:SUAppcastElementDeltas]) { + NSMutableArray *deltas = [NSMutableArray array]; + NSEnumerator *childEnum = [[node children] objectEnumerator]; + for (NSXMLNode *child in childEnum) { + if ([[child name] isEqualToString:SURSSElementEnclosure]) { + [deltas addObject:[(NSXMLElement *)child attributesAsDictionary]]; + } + } + dict[name] = deltas; + } + else if ([name isEqualToString:SUAppcastElementTags]) { + NSMutableArray *tags = [NSMutableArray array]; + NSEnumerator *childEnum = [[node children] objectEnumerator]; + for (NSXMLNode *child in childEnum) { + NSString *childName = child.name; + if (childName) { + [tags addObject:childName]; + } + } + dict[name] = tags; } - [nodesDict removeAllObjects]; - [dict removeAllObjects]; + else if (name != nil) { + // add all other values as strings + NSString *theValue = [[node stringValue] stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]; + if (theValue != nil) { + dict[name] = theValue; + } + } + } + + NSString *errString; + SUAppcastItem *anItem = [[SUAppcastItem alloc] initWithDictionary:dict failureReason:&errString]; + if (anItem) { + [appcastItems addObject:anItem]; + } + else { + SULog(@"Sparkle Updater: Failed to parse appcast item: %@.\nAppcast dictionary was: %@", errString, dict); + if (errorp) *errorp = [NSError errorWithDomain:SUSparkleErrorDomain + code:SUAppcastParseError + userInfo:@{NSLocalizedDescriptionKey: errString}]; + return nil; } } self.items = appcastItems; - if (failed) { - [self reportError:[NSError errorWithDomain:SUSparkleErrorDomain code:SUAppcastParseError userInfo:@{ NSLocalizedDescriptionKey: SULocalizedString(@"An error occurred while parsing the update feed.", nil) }]]; - } else { - self.completionBlock(nil); - self.completionBlock = nil; - } + return appcastItems; } - (void)download:(NSURLDownload *)__unused aDownload didFailWithError:(NSError *)error @@ -249,14 +242,18 @@ - (void)reportError:(NSError *)error { - NSURL *failingUrl = error.userInfo[NSURLErrorFailingURLErrorKey]; - - self.completionBlock([NSError errorWithDomain:SUSparkleErrorDomain code:SUAppcastError userInfo:@{ + NSMutableDictionary *userInfo = [NSMutableDictionary dictionaryWithDictionary:@{ NSLocalizedDescriptionKey: SULocalizedString(@"An error occurred in retrieving update information. Please try again later.", nil), NSLocalizedFailureReasonErrorKey: [error localizedDescription], NSUnderlyingErrorKey: error, - NSURLErrorFailingURLErrorKey: failingUrl ? failingUrl : [NSNull null], - }]); + }]; + + NSURL *failingUrl = error.userInfo[NSURLErrorFailingURLErrorKey]; + if (failingUrl) { + userInfo[NSURLErrorFailingURLErrorKey] = failingUrl; + } + + self.completionBlock([NSError errorWithDomain:SUSparkleErrorDomain code:SUAppcastError userInfo:userInfo]); self.completionBlock = nil; } @@ -283,4 +280,16 @@ return nodes[i]; } +- (SUAppcast *)copyWithoutDeltaUpdates { + SUAppcast *other = [SUAppcast new]; + NSMutableArray *nonDeltaItems = [NSMutableArray new]; + + for(SUAppcastItem *item in self.items) { + if (![item isDeltaUpdate]) [nonDeltaItems addObject:item]; + } + + other.items = nonDeltaItems; + return other; +} + @end diff --git a/Sparkle/SUAppcastItem.m b/Sparkle/SUAppcastItem.m index e43f3574..972758ba 100644 --- a/Sparkle/SUAppcastItem.m +++ b/Sparkle/SUAppcastItem.m @@ -134,7 +134,8 @@ } if (enclosureURLString) { - NSString *fileURLString = [[enclosureURLString stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding] stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; + // Sparkle used to always URL-encode, so for backwards compatibility spaces in URLs must be forgiven. + NSString *fileURLString = [enclosureURLString stringByReplacingOccurrencesOfString:@" " withString:@"%20"]; self.fileURL = [NSURL URLWithString:fileURLString]; } if (enclosure) { @@ -159,7 +160,12 @@ // Find the appropriate release notes URL. NSString *releaseNotesString = dict[SUAppcastElementReleaseNotesLink]; if (releaseNotesString) { - self.releaseNotesURL = [NSURL URLWithString:releaseNotesString]; + NSURL *url = [NSURL URLWithString:releaseNotesString]; + if ([url isFileURL]) { + SULog(@"Release notes with file:// URLs are not supported"); + } else { + self.releaseNotesURL = url; + } } else if ([self.itemDescription hasPrefix:@"http://"] || [self.itemDescription hasPrefix:@"https://"]) { // if the description starts with http:// or https:// use that. self.releaseNotesURL = [NSURL URLWithString:self.itemDescription]; } else { diff --git a/Sparkle/SUAutomaticUpdateDriver.m b/Sparkle/SUAutomaticUpdateDriver.m index 562f2d05..6727d0d9 100644 --- a/Sparkle/SUAutomaticUpdateDriver.m +++ b/Sparkle/SUAutomaticUpdateDriver.m @@ -26,6 +26,7 @@ static const NSTimeInterval SUAutomaticUpdatePromptImpatienceTimer = 60 * 60 * 2 @property (assign) BOOL postponingInstallation; @property (assign) BOOL showErrors; @property (assign) BOOL willUpdateOnTermination; +@property (assign) BOOL isTerminating; @property (strong) SUAutomaticUpdateAlert *alert; @property (strong) NSTimer *showUpdateAlertTimer; @@ -36,6 +37,7 @@ static const NSTimeInterval SUAutomaticUpdatePromptImpatienceTimer = 60 * 60 * 2 @synthesize postponingInstallation; @synthesize showErrors; @synthesize willUpdateOnTermination; +@synthesize isTerminating; @synthesize alert; @synthesize showUpdateAlertTimer; @@ -131,6 +133,7 @@ static const NSTimeInterval SUAutomaticUpdatePromptImpatienceTimer = 60 * 60 * 2 - (void)abortUpdate { + self.isTerminating = NO; [self stopUpdatingOnTermination]; [self invalidateShowUpdateAlertTimer]; [super abortUpdate]; @@ -153,8 +156,6 @@ static const NSTimeInterval SUAutomaticUpdatePromptImpatienceTimer = 60 * 60 * 2 case SUInstallLaterChoice: self.postponingInstallation = YES; - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(applicationWillTerminate:) name:NSApplicationWillTerminateNotification object:nil]; - [[[NSWorkspace sharedWorkspace] notificationCenter] addObserver:self selector:@selector(systemWillPowerOff:) name:NSWorkspaceWillPowerOffNotification object:nil]; // We're already waiting on quit, just indicate that we're idle. self.interruptible = YES; break; @@ -166,6 +167,7 @@ static const NSTimeInterval SUAutomaticUpdatePromptImpatienceTimer = 60 * 60 * 2 } } + - (void)installWithToolAndRelaunch:(BOOL)relaunch displayingUserInterface:(BOOL)showUI { if (relaunch) { @@ -185,9 +187,22 @@ static const NSTimeInterval SUAutomaticUpdatePromptImpatienceTimer = 60 * 60 * 2 - (void)applicationWillTerminate:(NSNotification *)__unused note { + // We don't want to terminate the app if the user or someone else initiated a termination + // Use a property instead of passing an argument to installWithToolAndRelaunch: + // because we give the delegate an invocation to our install methods and + // this code was added later :| + self.isTerminating = YES; + [self installWithToolAndRelaunch:NO]; } +- (void)terminateApp +{ + if (!self.isTerminating) { + [super terminateApp]; + } +} + - (void)abortUpdateWithError:(NSError *)error { if (self.showErrors) { diff --git a/Sparkle/SUBasicUpdateDriver.m b/Sparkle/SUBasicUpdateDriver.m index bb92274a..f6cf84b7 100644 --- a/Sparkle/SUBasicUpdateDriver.m +++ b/Sparkle/SUBasicUpdateDriver.m @@ -133,6 +133,9 @@ if ([[self.updater delegate] respondsToSelector:@selector(bestValidUpdateInAppcast:forUpdater:)]) // Does the delegate want to handle it? { item = [[self.updater delegate] bestValidUpdateInAppcast:ac forUpdater:self.updater]; + if ([item isDeltaUpdate]) { + self.nonDeltaUpdateItem = [[self.updater delegate] bestValidUpdateInAppcast:[ac copyWithoutDeltaUpdates] forUpdater:self.updater]; + } } else // If not, we'll take care of it ourselves. { @@ -146,10 +149,12 @@ } } - SUAppcastItem *deltaUpdateItem = [item deltaUpdates][[self.host version]]; - if (deltaUpdateItem && [self hostSupportsItem:deltaUpdateItem]) { - self.nonDeltaUpdateItem = item; - item = deltaUpdateItem; + if (item) { + SUAppcastItem *deltaUpdateItem = [item deltaUpdates][[self.host version]]; + if (deltaUpdateItem && [self hostSupportsItem:deltaUpdateItem]) { + self.nonDeltaUpdateItem = item; + item = deltaUpdateItem; + } } } @@ -322,18 +327,22 @@ if (!failingUrl) { failingUrl = [self.updateItem fileURL]; } - + if ([[self.updater delegate] respondsToSelector:@selector(updater:failedToDownloadUpdate:error:)]) { [[self.updater delegate] updater:self.updater failedToDownloadUpdate:self.updateItem error:error]; } - [self abortUpdateWithError:[NSError errorWithDomain:SUSparkleErrorDomain code:SURelaunchError userInfo:@{ + NSMutableDictionary *userInfo = [NSMutableDictionary dictionaryWithDictionary:@{ NSLocalizedDescriptionKey: SULocalizedString(@"An error occurred while downloading the update. Please try again later.", nil), NSUnderlyingErrorKey: error, - NSURLErrorFailingURLErrorKey: failingUrl ? failingUrl : [NSNull null], - }]]; + }]; + if (failingUrl) { + userInfo[NSURLErrorFailingURLErrorKey] = failingUrl; + } + + [self abortUpdateWithError:[NSError errorWithDomain:SUSparkleErrorDomain code:SURelaunchError userInfo:userInfo]]; } - (BOOL)download:(NSURLDownload *)__unused download shouldDecodeSourceDataOfMIMEType:(NSString *)encodingType @@ -345,7 +354,7 @@ - (void)extractUpdate { - SUUnarchiver *unarchiver = [SUUnarchiver unarchiverForPath:self.downloadPath updatingHostBundlePath:[[self.host bundle] bundlePath]]; + SUUnarchiver *unarchiver = [SUUnarchiver unarchiverForPath:self.downloadPath updatingHostBundlePath:[[self.host bundle] bundlePath] withPassword:self.updater.decryptionPassword]; if (!unarchiver) { SULog(@"Error: No valid unarchiver for %@!", self.downloadPath); [self unarchiverDidFail:nil]; @@ -504,6 +513,7 @@ if ([updaterDelegate respondsToSelector:@selector(pathToRelaunchForUpdater:)]) { pathToRelaunch = [updaterDelegate pathToRelaunchForUpdater:self.updater]; } + [NSTask launchedTaskWithLaunchPath:relaunchToolPath arguments:@[[self.host bundlePath], pathToRelaunch, [NSString stringWithFormat:@"%d", [[NSProcessInfo processInfo] processIdentifier]], @@ -513,6 +523,7 @@ [self terminateApp]; } +// Note: this is overridden by the automatic update driver to not terminate in some cases - (void)terminateApp { [NSApp terminate:self]; @@ -555,7 +566,12 @@ - (void)abortUpdateWithError:(NSError *)error { if ([error code] != SUNoUpdateError) { // Let's not bother logging this. - SULog(@"Error: %@ %@ (URL %@)", error.localizedDescription, error.localizedFailureReason, error.userInfo[NSURLErrorFailingURLErrorKey]); + NSError *errorToDisplay = error; + int finiteRecursion=5; + do { + SULog(@"Error: %@ %@ (URL %@)", errorToDisplay.localizedDescription, errorToDisplay.localizedFailureReason, errorToDisplay.userInfo[NSURLErrorFailingURLErrorKey]); + errorToDisplay = errorToDisplay.userInfo[NSUnderlyingErrorKey]; + } while(--finiteRecursion && errorToDisplay); } if (self.download) { [self.download cancel]; diff --git a/Sparkle/SUConstants.h b/Sparkle/SUConstants.h index b717d843..ae9beae1 100644 --- a/Sparkle/SUConstants.h +++ b/Sparkle/SUConstants.h @@ -50,6 +50,7 @@ extern NSString *const SULastProfileSubmitDateKey; extern NSString *const SUPromptUserOnFirstLaunchKey; extern NSString *const SUKeepDownloadOnFailedInstallKey; extern NSString *const SUDefaultsDomainKey; +extern NSString *const SUEnableJavaScriptKey; extern NSString *const SUFixedHTMLDisplaySizeKey __attribute__((deprecated("This key is obsolete and has no effect."))); extern NSString *const SUAppendVersionNumberKey __attribute__((deprecated("This key is obsolete. See SPARKLE_APPEND_VERSION_NUMBER."))); extern NSString *const SUEnableAutomatedDowngradesKey __attribute__((deprecated("This key is obsolete. See SPARKLE_AUTOMATED_DOWNGRADES."))); diff --git a/Sparkle/SUConstants.m b/Sparkle/SUConstants.m index 31c80ca3..dbaefe13 100644 --- a/Sparkle/SUConstants.m +++ b/Sparkle/SUConstants.m @@ -42,6 +42,7 @@ NSString *const SUEnableAutomaticChecksKeyOld = @"SUCheckAtStartup"; NSString *const SUSendProfileInfoKey = @"SUSendProfileInfo"; NSString *const SULastProfileSubmitDateKey = @"SULastProfileSubmissionDate"; NSString *const SUPromptUserOnFirstLaunchKey = @"SUPromptUserOnFirstLaunch"; +NSString *const SUEnableJavaScriptKey = @"SUEnableJavaScript"; NSString *const SUFixedHTMLDisplaySizeKey = @"SUFixedHTMLDisplaySize"; NSString *const SUKeepDownloadOnFailedInstallKey = @"SUKeepDownloadOnFailedInstall"; NSString *const SUDefaultsDomainKey = @"SUDefaultsDomain"; diff --git a/Sparkle/SUDiskImageUnarchiver.m b/Sparkle/SUDiskImageUnarchiver.m index a7ee21c6..31a1b5ec 100644 --- a/Sparkle/SUDiskImageUnarchiver.m +++ b/Sparkle/SUDiskImageUnarchiver.m @@ -70,7 +70,20 @@ NSData *promptData = nil; promptData = [NSData dataWithBytes:"yes\n" length:4]; - NSArray *arguments = @[@"attach", self.archivePath, @"-mountpoint", mountPoint, /*@"-noverify",*/ @"-nobrowse", @"-noautoopen"]; + NSMutableArray *arguments = [@[@"attach", self.archivePath, @"-mountpoint", mountPoint, /*@"-noverify",*/ @"-nobrowse", @"-noautoopen"] mutableCopy]; + + if (self.decryptionPassword) { + NSMutableData *passwordData = [[self.decryptionPassword dataUsingEncoding:NSUTF8StringEncoding] mutableCopy]; + // From the hdiutil docs: + // read a null-terminated passphrase from standard input + // + // Add the null terminator, then the newline + [passwordData appendData:[NSData dataWithBytes:"\0" length:1]]; + [passwordData appendData:promptData]; + promptData = passwordData; + + [arguments addObject:@"-stdinpass"]; + } NSData *output = nil; NSInteger taskResult = -1; diff --git a/Sparkle/SUUIBasedUpdateDriver.h b/Sparkle/SUUIBasedUpdateDriver.h index 65f37443..8148912b 100644 --- a/Sparkle/SUUIBasedUpdateDriver.h +++ b/Sparkle/SUUIBasedUpdateDriver.h @@ -17,7 +17,7 @@ @interface SUUIBasedUpdateDriver : SUBasicUpdateDriver -- (void)showModalAlert:(NSAlert *)alert; +- (void)showAlert:(NSAlert *)alert; - (IBAction)cancelDownload:(id)sender; - (void)installAndRestart:(id)sender; diff --git a/Sparkle/SUUIBasedUpdateDriver.m b/Sparkle/SUUIBasedUpdateDriver.m index 261e84c5..a3b25d0b 100644 --- a/Sparkle/SUUIBasedUpdateDriver.m +++ b/Sparkle/SUUIBasedUpdateDriver.m @@ -97,7 +97,7 @@ 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)]; - [self showModalAlert:alert]; + [self showAlert:alert]; [self abortUpdate]; } } @@ -253,7 +253,7 @@ alert.messageText = SULocalizedString(@"Update Error!", nil); alert.informativeText = [NSString stringWithFormat:@"%@", [error localizedDescription]]; [alert addButtonWithTitle:SULocalizedString(@"Cancel Update", nil)]; - [self showModalAlert:alert]; + [self showAlert:alert]; [super abortUpdateWithError:error]; } @@ -267,7 +267,7 @@ [super abortUpdate]; } -- (void)showModalAlert:(NSAlert *)alert +- (void)showAlert:(NSAlert *)alert { if ([[self.updater delegate] respondsToSelector:@selector(updaterWillShowModalAlert:)]) { [[self.updater delegate] updaterWillShowModalAlert:self.updater]; diff --git a/Sparkle/SUUnarchiver.h b/Sparkle/SUUnarchiver.h index 6397fe71..ccd5611d 100644 --- a/Sparkle/SUUnarchiver.h +++ b/Sparkle/SUUnarchiver.h @@ -18,9 +18,10 @@ @property (copy, readonly) NSString *archivePath; @property (copy, readonly) NSString *updateHostBundlePath; +@property (copy, readonly) NSString *decryptionPassword; @property (weak) id delegate; -+ (SUUnarchiver *)unarchiverForPath:(NSString *)path updatingHostBundlePath:(NSString *)host; ++ (SUUnarchiver *)unarchiverForPath:(NSString *)path updatingHostBundlePath:(NSString *)host withPassword:(NSString *)decryptionPassword; - (void)start; @end diff --git a/Sparkle/SUUnarchiver.m b/Sparkle/SUUnarchiver.m index fefa840b..e887f4ca 100644 --- a/Sparkle/SUUnarchiver.m +++ b/Sparkle/SUUnarchiver.m @@ -20,13 +20,13 @@ @synthesize archivePath; @synthesize updateHostBundlePath; @synthesize delegate; +@synthesize decryptionPassword; -+ (SUUnarchiver *)unarchiverForPath:(NSString *)path updatingHostBundlePath:(NSString *)hostPath ++ (SUUnarchiver *)unarchiverForPath:(NSString *)path updatingHostBundlePath:(NSString *)hostPath withPassword:(NSString *)decryptionPassword { - for (id current in [self unarchiverImplementations]) - { + for (id current in [self unarchiverImplementations]) { if ([current canUnarchivePath:path]) { - return [[current alloc] initWithPath:path hostBundlePath:hostPath]; + return [[current alloc] initWithPath:path hostBundlePath:hostPath password:decryptionPassword]; } } return nil; @@ -39,12 +39,13 @@ // No-op } -- (instancetype)initWithPath:(NSString *)path hostBundlePath:(NSString *)hostPath +- (instancetype)initWithPath:(NSString *)path hostBundlePath:(NSString *)hostPath password:(NSString *)password { if ((self = [super init])) { archivePath = [path copy]; updateHostBundlePath = hostPath; + decryptionPassword = password; } return self; } diff --git a/Sparkle/SUUpdateAlert.m b/Sparkle/SUUpdateAlert.m index fc321685..08ccc755 100644 --- a/Sparkle/SUUpdateAlert.m +++ b/Sparkle/SUUpdateAlert.m @@ -16,6 +16,7 @@ #import #import "SUConstants.h" +#import "SULog.h" // WebKit protocols are not explicitly declared until 10.11 SDK, so // declare dummy protocols to keep the build working on earlier SDKs. @@ -121,6 +122,8 @@ self.releaseNotesView.preferencesIdentifier = SUBundleIdentifier; WebPreferences *prefs = [self.releaseNotesView preferences]; prefs.plugInsEnabled = NO; + prefs.javaEnabled = NO; + prefs.javaScriptEnabled = [self.host boolForInfoDictionaryKey:SUEnableJavaScriptKey]; self.releaseNotesView.frameLoadDelegate = self; self.releaseNotesView.policyDelegate = self; @@ -140,14 +143,7 @@ // If there's a release notes URL, load it; otherwise, just stick the contents of the description into the web view. if ([self.updateItem releaseNotesURL]) { - if ([[self.updateItem releaseNotesURL] isFileURL]) - { - [[self.releaseNotesView mainFrame] loadHTMLString:@"Release notes with file:// URLs are not supported for security reasons—Javascript would be able to read files on your file system." baseURL:nil]; - } - else - { - [[self.releaseNotesView mainFrame] loadRequest:[NSURLRequest requestWithURL:[self.updateItem releaseNotesURL] cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:30]]; - } + [[self.releaseNotesView mainFrame] loadRequest:[NSURLRequest requestWithURL:[self.updateItem releaseNotesURL] cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:30]]; } else { @@ -268,6 +264,7 @@ // Do not allow redirects to dangerous protocols such as file:// if (!whitelistedSafe) { + SULog(@"Blocked display of %@ URL which may be dangerous", scheme); [listener ignore]; return; } diff --git a/Sparkle/SUUpdateDriver.h b/Sparkle/SUUpdateDriver.h index 12f93558..b490c6d9 100644 --- a/Sparkle/SUUpdateDriver.h +++ b/Sparkle/SUUpdateDriver.h @@ -22,6 +22,9 @@ extern NSString *const SUUpdateDriverFinishedNotification; - (instancetype)initWithUpdater:(SUUpdater *)updater; - (void)checkForUpdatesAtURL:(NSURL *)URL host:(SUHost *)host; - (void)abortUpdate; + +- (void)showAlert:(NSAlert *)alert; + @property (getter=isInterruptible, readonly) BOOL interruptible; @property (readonly) BOOL finished; @property BOOL automaticallyInstallUpdates; diff --git a/Sparkle/SUUpdateDriver.m b/Sparkle/SUUpdateDriver.m index 6de580ca..1b9d5249 100644 --- a/Sparkle/SUUpdateDriver.m +++ b/Sparkle/SUUpdateDriver.m @@ -8,6 +8,7 @@ #import "SUUpdateDriver.h" #import "SUHost.h" +#import "SULog.h" NSString *const SUUpdateDriverFinishedNotification = @"SUUpdateDriverFinished"; @@ -50,4 +51,10 @@ NSString *const SUUpdateDriverFinishedNotification = @"SUUpdateDriverFinished"; [[NSNotificationCenter defaultCenter] postNotificationName:SUUpdateDriverFinishedNotification object:self]; } + +- (void)showAlert:(NSAlert *)alert { + // Only UI-based subclass shows the actual alert + SULog(@"ALERT: %@\n%@", alert.messageText, alert.informativeText); +} + @end diff --git a/Sparkle/SUUpdater.h b/Sparkle/SUUpdater.h index ed0072af..86024858 100644 --- a/Sparkle/SUUpdater.h +++ b/Sparkle/SUUpdater.h @@ -14,7 +14,7 @@ #import "SUVersionComparisonProtocol.h" #import "SUVersionDisplayProtocol.h" -@class SUUpdateDriver, SUAppcastItem, SUHost, SUAppcast; +@class SUAppcastItem, SUAppcast; @protocol SUUpdaterDelegate; @@ -54,6 +54,8 @@ SU_EXPORT @interface SUUpdater : NSObject @property BOOL automaticallyDownloadsUpdates; +@property (nonatomic, copy) NSString *decryptionPassword; + /*! Explicitly checks for updates and displays a progress dialog while doing so. diff --git a/Sparkle/SUUpdater.m b/Sparkle/SUUpdater.m index c3638d97..0a00d6cd 100644 --- a/Sparkle/SUUpdater.m +++ b/Sparkle/SUUpdater.m @@ -40,9 +40,6 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification - (void)updateDriverDidFinish:(NSNotification *)note; @property (readonly, copy) NSURL *parameterizedFeedURL; -- (void)notifyWillShowModalAlert; -- (void)notifyDidShowModalAlert; - @property (strong) SUUpdateDriver *driver; @property (strong) SUHost *host; @@ -57,6 +54,7 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification @synthesize driver; @synthesize host; @synthesize sparkleBundle; +@synthesize decryptionPassword; static NSMutableDictionary *sharedUpdaters = nil; static NSString *const SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaultsObservationContext"; @@ -108,35 +106,47 @@ static NSString *const SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaults sharedUpdaters[[NSValue valueWithNonretainedObject:bundle]] = self; host = [[SUHost alloc] initWithBundle:bundle]; - // Saving-the-developer-from-a-stupid-mistake-check: - BOOL hasPublicDSAKey = [host publicDSAKey] != nil; - BOOL isMainBundle = [bundle isEqualTo:[NSBundle mainBundle]]; - BOOL hostIsCodeSigned = [SUCodeSigningVerifier hostApplicationIsCodeSigned]; - BOOL servingOverHttps = [[[[self feedURL] scheme] lowercaseString] isEqualToString:@"https"]; - if (!isMainBundle && !hasPublicDSAKey) { - [self notifyWillShowModalAlert]; - NSAlert *alert = [[NSAlert alloc] init]; - alert.messageText = @"Insecure update error!"; - alert.informativeText = @"For security reasons, you need to sign your updates with a DSA key. See Sparkle's documentation for more information."; - [alert runModal]; - [self notifyDidShowModalAlert]; - } else if (isMainBundle && !(hasPublicDSAKey || hostIsCodeSigned)) { - [self notifyWillShowModalAlert]; - NSAlert *alert = [[NSAlert alloc] init]; - alert.messageText = @"Insecure update error!"; - alert.informativeText = @"For security reasons, you need to code sign your application or sign your updates with a DSA key. See Sparkle's documentation for more information."; - [alert runModal]; - [self notifyDidShowModalAlert]; - } else if (isMainBundle && !hasPublicDSAKey && !servingOverHttps) { - SULog(@"WARNING: Serving updates over http without signing them with a DSA key is deprecated and may not be possible in a future release. Please serve your updates over https, or sign them with a DSA key, or do both. See Sparkle's documentation for more information."); - } - // This runs the permission prompt if needed, but never before the app has finished launching because the runloop won't run before that [self performSelector:@selector(startUpdateCycle) withObject:nil afterDelay:0]; } return self; } +-(void)showAlertText:(NSString *)text informativeText:(NSString *)informativeText { + NSAlert *alert = [[NSAlert alloc] init]; + alert.messageText = text; + alert.informativeText = informativeText; + [self.driver showAlert:alert]; +} + +-(void)checkIfConfiguredProperly { + BOOL hasPublicDSAKey = [self.host publicDSAKey] != nil; + BOOL isMainBundle = [self.host.bundle isEqualTo:[NSBundle mainBundle]]; + BOOL hostIsCodeSigned = [SUCodeSigningVerifier hostApplicationIsCodeSigned]; + NSURL *feedURL = [self feedURL]; + BOOL servingOverHttps = [[[feedURL scheme] lowercaseString] isEqualToString:@"https"]; + if (!isMainBundle && !hasPublicDSAKey) { + [self showAlertText:@"Insecure update error!" + informativeText:@"For security reasons, you need to sign your updates with a DSA key. See Sparkle's documentation for more information."]; + } else if (isMainBundle && !(hasPublicDSAKey || hostIsCodeSigned)) { + [self showAlertText:@"Insecure update error!" + informativeText:@"For security reasons, you need to code sign your application or sign your updates with a DSA key. See Sparkle's documentation for more information."]; + } else if (isMainBundle && !hasPublicDSAKey && !servingOverHttps) { + SULog(@"WARNING: Serving updates over HTTP without signing them with a DSA key is deprecated and may not be possible in a future release. Please serve your updates over https, or sign them with a DSA key, or do both. See Sparkle's documentation for more information."); + } + +#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 101100 + BOOL atsExceptionsExist = nil != [self.host objectForInfoDictionaryKey:@"NSAppTransportSecurity"]; + if (isMainBundle && !servingOverHttps && !atsExceptionsExist) { + [self showAlertText:@"Insecure feed URL is blocked in OS X 10.11" + informativeText:[NSString stringWithFormat:@"You must change the feed URL (%@) to use HTTPS or disable App Transport Security.\n\nFor more information:\nhttp://sparkle-project.org/documentation/app-transport-security/", [feedURL absoluteString]]]; + } + if (!isMainBundle && !servingOverHttps) { + SULog(@"WARNING: Serving updates over HTTP may be blocked in OS X 10.11. Please change the feed URL (%@) to use HTTPS. For more information:\nhttp://sparkle-project.org/documentation/app-transport-security/", feedURL); + } +#endif +} + // This will be used when the updater is instantiated in a nib such as MainMenu - (instancetype)init @@ -146,21 +156,6 @@ static NSString *const SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaults - (NSString *)description { return [NSString stringWithFormat:@"%@ <%@, %@>", [self class], [self.host bundlePath], [self.host installationPath]]; } - -- (void)notifyWillShowModalAlert -{ - if ([self.delegate respondsToSelector:@selector(updaterWillShowModalAlert:)]) - [self.delegate updaterWillShowModalAlert:self]; -} - - -- (void)notifyDidShowModalAlert -{ - if ([self.delegate respondsToSelector:@selector(updaterDidShowModalAlert:)]) - [self.delegate updaterDidShowModalAlert:self]; -} - - - (void)startUpdateCycle { BOOL shouldPrompt = NO; @@ -369,6 +364,8 @@ static NSString *const SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaults return; } + [self checkIfConfiguredProperly]; + NSURL *theFeedURL = [self parameterizedFeedURL]; if (theFeedURL) // Use a NIL URL to cancel quietly. [self.driver checkForUpdatesAtURL:theFeedURL host:self.host]; diff --git a/Sparkle/cs.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/cs.lproj/SUAutomaticUpdateAlert.xib index 1b2be43d..0c30faaa 100644 --- a/Sparkle/cs.lproj/SUAutomaticUpdateAlert.xib +++ b/Sparkle/cs.lproj/SUAutomaticUpdateAlert.xib @@ -1,7 +1,7 @@ - + - + @@ -24,7 +24,6 @@ - @@ -33,7 +32,6 @@ - @@ -46,7 +44,6 @@ - @@ -57,10 +54,9 @@ + + - - - diff --git a/Sparkle/cs.lproj/SUUpdateAlert.xib b/Sparkle/cs.lproj/SUUpdateAlert.xib index afa0cf85..417f2517 100644 --- a/Sparkle/cs.lproj/SUUpdateAlert.xib +++ b/Sparkle/cs.lproj/SUUpdateAlert.xib @@ -1,8 +1,8 @@ - + - - + + @@ -26,7 +26,7 @@ - + @@ -40,7 +40,6 @@ - @@ -51,7 +50,6 @@ - @@ -61,13 +59,12 @@ - + - @@ -88,7 +85,6 @@ - @@ -101,7 +97,6 @@ - @@ -110,7 +105,6 @@ - @@ -127,7 +121,6 @@ - @@ -150,14 +143,12 @@ - - @@ -149,13 +140,12 @@ Gw - - Informace z anonymního systémového profilu pomáhají vývojářům lépe plánovat budoucí vývoj aplikace -Obraťte se na nás v případě, že budete mít k němu nějaký dotaz. + Informace z anonymního systémového profilu pomáhají vývojářům lépe plánovat budoucí vývoj aplikace. +Budete-li mít nějaký dotaz, obraťte se na nás. -Tyto informace by měli být odeslány: +Tyto informace by měly být odeslány: @@ -165,12 +155,11 @@ Tyto informace by měli být odeslány: - + - @@ -210,23 +199,18 @@ Tyto informace by měli být odeslány: - - - diff --git a/Sparkle/cs.lproj/Sparkle.strings b/Sparkle/cs.lproj/Sparkle.strings index 0cf3adb4..251d007f 100644 --- a/Sparkle/cs.lproj/Sparkle.strings +++ b/Sparkle/cs.lproj/Sparkle.strings @@ -1,6 +1,6 @@ "%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$@ can't be updated when it's running from a read-only volume like a disk image or an optical drive. Move %1$@ to your Applications folder, relaunch it from there, and try again." = "Aplikace %1$@ nemůže být aktualizována, protože je spuštěna z nezapisovatelného média. 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$@ can't be updated when it's running from a read-only volume like a disk image or an optical drive. Move %1$@ to your 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."; "%@ %@ is currently the newest version available." = "%1$@ %2$@ je nejnovější dostupná verze"; @@ -8,7 +8,7 @@ "%@ %@ 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?"; /* 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$@ je nyní k dispozici – vy máte %3$@. Přejete si zobrazit o této aktualizaci další informace?"; "%@ downloaded" = "zkopírováno %@"; @@ -24,7 +24,7 @@ "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."; -"An error occurred while installing the update. Please try again later." = "Při instalování aktualizace se vyskytla chyba. Zkuste to prosím později."; +"An error occurred while installing the update. Please try again later." = "Při instalaci aktualizace se vyskytla chyba. Zkuste to prosím později."; "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."; diff --git a/Sparkle/ja.lproj/Sparkle.strings b/Sparkle/ja.lproj/Sparkle.strings index 4241828b..f0a558cf 100644 --- a/Sparkle/ja.lproj/Sparkle.strings +++ b/Sparkle/ja.lproj/Sparkle.strings @@ -10,7 +10,7 @@ "%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ が入手できます(使用中のバージョンは %3$@ です)。今すぐダウンロードしますか?"; /* 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$@ が入手できます(使用中のバージョンは %3$@ です)。このアップデートの詳しい情報を Web で確認しますか?"; "%@ downloaded" = "%@ ダウンロード済み"; @@ -35,7 +35,7 @@ "An important update to %@ is ready to install" = "%@ の重要なアップデートがインストールできます。"; /* the unit for bytes */ -"B" = "B"; +"B" = "バイト"; "Cancel" = "キャンセル"; diff --git a/Sparkle/pt_BR.lproj/Sparkle.strings b/Sparkle/pt_BR.lproj/Sparkle.strings index 73e8bb04..0a18525d 100755 --- a/Sparkle/pt_BR.lproj/Sparkle.strings +++ b/Sparkle/pt_BR.lproj/Sparkle.strings @@ -8,7 +8,7 @@ "%@ %@ 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?"; /* 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$@ está disponível – sua versão é %3$@. Deseja saber mais sobre esta atualização na web?"; "%@ downloaded" = "%@ transferidos"; @@ -18,17 +18,17 @@ "A new version of %@ is ready to install!" = "Uma nova versão do %@ está pronta para ser instalada!"; -"An error occurred in retrieving update information. Please try again later." = "Ocorreu um erro ao obter informações da atualização. Tente novamente mais tarde."; +"An error occurred in retrieving update information. Please try again later." = "Ocorreu um erro ao obter informações da atualização. Tente novamente mais tarde."; "An error occurred while downloading the update. Please try again later." = "Ocorreu um erro ao transferir a atualização. Tente novamente mais tarde."; -"An error occurred while extracting the archive. Please try again later." = "Ocorreu um erro ao extrair o arquivo. Tente novamente mais tarde."; +"An error occurred while extracting the archive. Please try again later." = "Ocorreu um erro ao extrair o arquivo comprimido. Tente novamente mais tarde."; "An error occurred while installing the update. Please try again later." = "Ocorreu um erro ao instalar a atualização. Tente novamente mais tarde."; "An error occurred while parsing the update feed." = "Ocorreu um erro ao analisar o feed de atualização."; -"An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@." = "Ocorreu um erro ao reiniciar o %1$@. A nova versão estará disponível da próxima vez que você abrir o %1$@."; +"An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@." = "Ocorreu um erro ao reabrir o %1$@. A nova versão estará disponível da próxima vez que você abrir o %1$@."; /* the unit for bytes */ "B" = "B"; @@ -48,7 +48,7 @@ /* the unit for gigabytes */ "GB" = "GB"; -"Install and Relaunch" = "Instalar e Reiniciar"; +"Install and Relaunch" = "Instalar e Reabrir"; /* Take care not to overflow the status window. */ "Installing update..." = "Instalando atualização…"; diff --git a/Sparkle/zh_CN.lproj/SUUpdateAlert.xib b/Sparkle/zh_CN.lproj/SUUpdateAlert.xib index d1bb8138..02148ff7 100644 --- a/Sparkle/zh_CN.lproj/SUUpdateAlert.xib +++ b/Sparkle/zh_CN.lproj/SUUpdateAlert.xib @@ -1,8 +1,9 @@ - + - - + + + @@ -26,7 +27,7 @@ - + @@ -40,7 +41,6 @@ - @@ -51,7 +51,6 @@ - @@ -61,13 +60,12 @@ - + - @@ -88,7 +86,6 @@ - @@ -101,7 +98,6 @@ - @@ -110,7 +106,6 @@ - @@ -123,12 +118,11 @@ - + - - + @@ -150,15 +144,13 @@ -