From 54747c24d10035cb08cbe7bb4ef112fd248d6055 Mon Sep 17 00:00:00 2001 From: 1024jp <1024jp@wolfrosch.com> Date: Fri, 18 Sep 2015 16:27:16 +0900 Subject: [PATCH 1/2] Fix CHANGELOG --- CHANGELOG | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index bc315db1..d84ebd49 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,8 @@ -# 1.12.0 +# 1.11.0 +* 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. + - Rely on code signing and the DSA key in the new app instead of appcast. If the new app has a public DSA key, then the appcast item must have a DSA signature for the app, even if the app is code signed. (Zorg) * Deprecated serving over http without DSA (Zorg) * Removed extensions from shell scripts (Jake Petroules) * Improved Autoupdate application (Zorg) @@ -17,12 +20,6 @@ * 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 - - 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. - - Rely on code signing and the DSA key in the new app instead of appcast. If the new app has a public DSA key, then the appcast item must have a DSA signature for the app, even if the app is code signed. (Zorg) * More verbose error message when DSA keys don't match (Kornel Lesiński) * Added delegate methods for pre-download and immediately post-failed-download (Isaac Greenspan) * Fix Lucida Grande is always used for release notes (LIU Dongyuan / 柳东原) From 2c5d5fb40d392bb4b3cbf3b2f6a567c42d43a214 Mon Sep 17 00:00:00 2001 From: Zorg Date: Fri, 18 Sep 2015 13:57:50 -0400 Subject: [PATCH 2/2] Replace awakeFromNib with windowDidLoad awakeFromNib should never be used; proper window loading methods from the window controller should be used instead. awakeFromNib can also be called multiple times in certain scenarios. --- Sparkle/SUStatusController.m | 2 +- Sparkle/SUUpdateAlert.m | 2 +- Sparkle/SUUpdatePermissionPrompt.m | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Sparkle/SUStatusController.m b/Sparkle/SUStatusController.m index c7def5d5..290bfeae 100644 --- a/Sparkle/SUStatusController.m +++ b/Sparkle/SUStatusController.m @@ -42,7 +42,7 @@ - (NSString *)description { return [NSString stringWithFormat:@"%@ <%@, %@>", [self class], [self.host bundlePath], [self.host installationPath]]; } -- (void)awakeFromNib +- (void)windowDidLoad { if ([self.host isBackgroundApplication]) { [[self window] setLevel:NSFloatingWindowLevel]; diff --git a/Sparkle/SUUpdateAlert.m b/Sparkle/SUUpdateAlert.m index 3beadcfa..1ab5eed2 100644 --- a/Sparkle/SUUpdateAlert.m +++ b/Sparkle/SUUpdateAlert.m @@ -178,7 +178,7 @@ return allowAutoUpdates; } -- (void)awakeFromNib +- (void)windowDidLoad { BOOL showReleaseNotes = [self showsReleaseNotes]; diff --git a/Sparkle/SUUpdatePermissionPrompt.m b/Sparkle/SUUpdatePermissionPrompt.m index e9e47404..4a338dba 100644 --- a/Sparkle/SUUpdatePermissionPrompt.m +++ b/Sparkle/SUUpdatePermissionPrompt.m @@ -78,7 +78,7 @@ - (NSString *)description { return [NSString stringWithFormat:@"%@ <%@>", [self class], [self.host bundlePath]]; } -- (void)awakeFromNib +- (void)windowDidLoad { if (![self shouldAskAboutProfile]) {