diff --git a/CHANGELOG b/CHANGELOG index 97b5f3be..bc315db1 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,23 @@ +# 1.12.0 + +* Deprecated serving over http without DSA (Zorg) +* Removed extensions from shell scripts (Jake Petroules) +* Improved Autoupdate application (Zorg) + * Do all the installation work after the runloop is set up + * TerminationListener only does termination listening now + * Handle cases where host path is not installation path and host path is not desired executable path +* Set LD_RUNPATH_SEARCH_PATHS in Podspec. (Jake Petroules) +* Updated layout constraints when removing release notes (Zorg) +* Fix German localization (1024jp) +* Updated zh_CN translation (LIU Dongyuan / 柳东原) +* Updated Mac models list until July 2015 (Gabriel Ulici) +* Updated Xcode project languages for which we have translations (Jake Petroules) +* Use NSByteCountFormatter if available (Jake Petroules) +* Declared protocols on SUUpdateAlert for the 10.11 SDK (Daniel Jalkut) +* Silenced warning about casting away const-ness and -Wassign-enum (Daniel Jalkut) +* Rewritten test app so it works again, and from a local web server (Zorg) +* Added script to generate a report comparing the Sparkle.strings files (Kevin Wojniak) + # 1.11.0 * Big improvements to code signing and DSA verification diff --git a/Configurations/ConfigCommon.xcconfig b/Configurations/ConfigCommon.xcconfig index b8e6a447..1f17de6b 100644 --- a/Configurations/ConfigCommon.xcconfig +++ b/Configurations/ConfigCommon.xcconfig @@ -15,7 +15,7 @@ SPARKLE_AUTOMATED_DOWNGRADES = 0 SPARKLE_NORMALIZE_INSTALLED_APPLICATION_NAME = 0 SPARKLE_VERSION_MAJOR = 1 -SPARKLE_VERSION_MINOR = 11 +SPARKLE_VERSION_MINOR = 12 SPARKLE_VERSION_PATCH = 0 SPARKLE_VERSION = $(SPARKLE_VERSION_MAJOR).$(SPARKLE_VERSION_MINOR).$(SPARKLE_VERSION_PATCH) diff --git a/Sparkle.podspec b/Sparkle.podspec index e4aaf773..5e256552 100644 --- a/Sparkle.podspec +++ b/Sparkle.podspec @@ -21,6 +21,9 @@ Pod::Spec.new do |s| s.public_header_files = 'Sparkle.framework/Versions/A/Headers/*.h' s.vendored_framework = 'Sparkle.framework' s.resources = 'Sparkle.framework' - s.xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '"${PODS_ROOT}/Sparkle"' } + s.xcconfig = { + 'FRAMEWORK_SEARCH_PATHS' => '"${PODS_ROOT}/Sparkle"', + 'LD_RUNPATH_SEARCH_PATHS' => '@loader_path/../Frameworks' + } s.requires_arc = true end diff --git a/Sparkle/SUUpdater.m b/Sparkle/SUUpdater.m index 58829a63..0aa298e3 100644 --- a/Sparkle/SUUpdater.m +++ b/Sparkle/SUUpdater.m @@ -112,6 +112,7 @@ static NSString *const SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaults BOOL hasPublicDSAKey = [host publicDSAKey] != nil; BOOL isMainBundle = [bundle isEqualTo:[NSBundle mainBundle]]; BOOL hostIsCodeSigned = [SUCodeSigningVerifier hostApplicationIsCodeSigned]; + BOOL servingOverHttps = [[[[self feedURL] scheme] lowercaseString] isEqualToString:@"https"]; NSAlert *alert = nil; if (!isMainBundle && !hasPublicDSAKey) { alert = [[NSAlert alloc] init]; @@ -121,6 +122,8 @@ static NSString *const SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaults 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."; + } 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."); } BOOL shouldShowAlert = alert != nil; diff --git a/Sparkle/de.lproj/Sparkle.strings b/Sparkle/de.lproj/Sparkle.strings index 05674190..5d8b7114 100644 --- a/Sparkle/de.lproj/Sparkle.strings +++ b/Sparkle/de.lproj/Sparkle.strings @@ -33,13 +33,13 @@ "Cancel Update" = "Aktualisierung abbrechen"; -"Checking for updates..." = "Suche nach Aktualisierungen…"; +"Checking for updates..." = "Suche nach Aktualisierungen …"; /* Take care not to overflow the status window. */ -"Downloading update..." = "Aktualisierung wird heruntergeladen…"; +"Downloading update..." = "Aktualisierung wird heruntergeladen …"; /* Take care not to overflow the status window. */ -"Extracting update..." = "Aktualisierung entpacken…"; +"Extracting update..." = "Aktualisierung entpacken …"; /* the unit for gigabytes */ "GB" = "GB"; @@ -47,7 +47,7 @@ "Install and Relaunch" = "Installieren und erneut starten"; /* Take care not to overflow the status window. */ -"Installing update..." = "Aktualisierung installieren…"; +"Installing update..." = "Aktualisierung installieren …"; /* the unit for kilobytes */ "KB" = "KB"; @@ -72,4 +72,4 @@ /* Alternative name for "Install" button if we have a paid update or other update without a download but with a URL. */ -"Learn More..." = "Mehr über…"; +"Learn More..." = "Mehr über …"; diff --git a/Sparkle/zh_CN.lproj/Sparkle.strings b/Sparkle/zh_CN.lproj/Sparkle.strings index 091ac8cb..903f419c 100644 --- a/Sparkle/zh_CN.lproj/Sparkle.strings +++ b/Sparkle/zh_CN.lproj/Sparkle.strings @@ -1,10 +1,10 @@ -"%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?" = "%1$@ %2$@ 已下载完毕并可以使用!您想要现在安装 %1$@ 吗?"; +"%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?" = "%1$@ %2$@ 已下载完毕并可以使用!您想要现在安装 %1$@ 吗?"; -"%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." = "%1$@ 不能被更新,当它运行于一个只读性宗卷如磁盘映像、软盘等上面时。移动 %1$@ 到应用程序文件夹并再试一次。"; +"%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." = "无法更新 %1$@,因为它运行于一个只读宗卷如磁盘映像或光盘。移动 %1$@ 到应用程序文件夹并再试一次。"; "%@ %@ is currently the newest version available." = "%1$@ %2$@ 是当前的最新版本。"; -"%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ 已经可供下载—你现在的版本是 %3$@。您要现在下载它吗?"; +"%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ 可供下载,您现在的版本是 %3$@。要现在下载吗?"; "%@ downloaded" = "%@ 已下载"; @@ -14,17 +14,17 @@ "A new version of %@ is ready to install!" = "新版本的 %@ 可以安装了!"; -"An error occurred in retrieving update information. Please try again later." = "接收升级信息时出现错误。请稍后再试。"; +"An error occurred in retrieving update information. Please try again later." = "获取升级信息时出现错误,请稍后再试。"; -"An error occurred while downloading the update. Please try again later." = "下载过程中出现错误。请稍后再试。"; +"An error occurred while downloading the update. Please try again later." = "下载过程中出现错误,请稍后再试。"; -"An error occurred while extracting the archive. Please try again later." = "提取过程中出现错误。请稍后再试。"; +"An error occurred while extracting the archive. Please try again later." = "解压过程中出现错误,请稍后再试。"; -"An error occurred while installing the update. Please try again later." = "安装更新的过程中出现错误。请稍后再试。"; +"An error occurred while installing the update. Please try again later." = "安装更新的过程中出现错误,请稍后再试。"; -"An error occurred while parsing the update feed." = "在分析更新流语法时出现错误。请稍后再试。"; +"An error occurred while parsing the update feed." = "解析更新信息时出现错误,请稍后再试。"; -"An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@." = "重新启动 %1$@ 时发生了一个错误,但在您下次运行 %1$@ 时新版本将可使用。"; +"An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@." = "重新启动 %1$@ 时出现错误,但在下次运行 %1$@ 时新版本将可使用。"; /* the unit for bytes */ "B" = "B"; @@ -33,18 +33,18 @@ "Cancel Update" = "取消更新"; -"Checking for updates..." = "正在核查更新…"; +"Checking for updates..." = "正在检查更新…"; /* Take care not to overflow the status window. */ "Downloading update..." = "正在下载更新…"; /* Take care not to overflow the status window. */ -"Extracting update..." = "正在抽出更新…"; +"Extracting update..." = "正在解压更新…"; /* the unit for gigabytes */ "GB" = "GB"; -"Install and Relaunch" = "安装并重新启动"; +"Install and Relaunch" = "安装并重启应用"; /* Take care not to overflow the status window. */ "Installing update..." = "正在安装更新…"; @@ -59,7 +59,7 @@ "Ready to Install" = "可以开始安装了"; -"Should %1$@ automatically check for updates? You can always check for updates manually from the %1$@ menu." = "您想让 %1$@ 在启动时自动检查更新么?您也可以在程序菜单 %1$@ 中进行手动检查。"; +"Should %1$@ automatically check for updates? You can always check for updates manually from the %1$@ menu." = "您想让 %1$@ 在启动时自动检查更新么?您也可以在程序菜单 %1$@ 中手动检查。"; "Update Error!" = "更新错误!"; @@ -67,7 +67,7 @@ "You already have the newest version of %@." = "您已经在使用最新版本的 %@。"; -"You're up-to-date!" = "你使用的就是最新版!"; +"You're up-to-date!" = "您使用的就是最新版!"; /* Alternative name for "Install" button if we have a paid update or other update without a download but with a URL. */