From f63e606600035517c50c6b566f6c4e61f945cc13 Mon Sep 17 00:00:00 2001 From: Jake Petroules Date: Mon, 17 Aug 2015 23:53:30 -0700 Subject: [PATCH 1/5] Set LD_RUNPATH_SEARCH_PATHS in Podspec. Closes #598 --- Sparkle.podspec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 From 3c583db3da6410dfafb0aaf72b66eec365155f46 Mon Sep 17 00:00:00 2001 From: Zorg Date: Tue, 18 Aug 2015 23:31:26 -0400 Subject: [PATCH 2/5] Deprecate serving over http without DSA This deprecates only using Apple's code signing for validation. See issue #543 --- Sparkle/SUUpdater.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sparkle/SUUpdater.m b/Sparkle/SUUpdater.m index 5e0557f0..73ebafea 100644 --- a/Sparkle/SUUpdater.m +++ b/Sparkle/SUUpdater.m @@ -111,6 +111,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"]; if (!isMainBundle && !hasPublicDSAKey) { [self notifyWillShowModalAlert]; NSAlert *alert = [[NSAlert alloc] init]; @@ -125,6 +126,8 @@ static NSString *const SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaults 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 From 3d3372b485e008088acd9d4e33c6bca32be71dc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?LIU=20Dongyuan=20/=20=E6=9F=B3=E4=B8=9C=E5=8E=9F?= Date: Sat, 22 Aug 2015 12:46:11 -0700 Subject: [PATCH 3/5] Update zh_CN translation --- Sparkle/zh_CN.lproj/Sparkle.strings | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) 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. */ From 47c2bf31d42105f9eac8a13d8dc66d492e70d67d Mon Sep 17 00:00:00 2001 From: 1024jp <1024jp@wolfrosch.com> Date: Sun, 23 Aug 2015 10:34:36 +0900 Subject: [PATCH 4/5] Fix German localization Add spaces before ellipses in German localization --- Sparkle/de.lproj/Sparkle.strings | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 …"; From 43f246d33f93cb5d2276673626c3f65a070021ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kornel=20Lesin=CC=81ski?= Date: Mon, 24 Aug 2015 22:39:15 +0100 Subject: [PATCH 5/5] Updated changelog, version --- CHANGELOG | 20 ++++++++++++++++++++ Configurations/ConfigCommon.xcconfig | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) 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)