diff --git a/Autoupdate/SUDiskImageUnarchiver.m b/Autoupdate/SUDiskImageUnarchiver.m index d02e90d4..b7387af4 100644 --- a/Autoupdate/SUDiskImageUnarchiver.m +++ b/Autoupdate/SUDiskImageUnarchiver.m @@ -124,9 +124,10 @@ [inputPipe.fileHandleForWriting writeData:promptData]; [inputPipe.fileHandleForWriting closeFile]; - [task waitUntilExit]; - + // Read data to end *before* waiting until the task ends so we don't deadlock if the stdout buffer becomes full if we haven't consumed from it output = [outputPipe.fileHandleForReading readDataToEndOfFile]; + + [task waitUntilExit]; taskResult = task.terminationStatus; } @catch (NSException *) diff --git a/CHANGELOG b/CHANGELOG index ce1aa63f..8d1558e0 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,7 +1,11 @@ +# 1.15.0 * A new icon! Thanks to 1024jp * Show alert when an update is sent over insecure HTTP with no DSA key (Zorg) - If you can't use HTTPS, you must at least sign updates with a DSA key. +* Improved binary delta implementation (Zorg) +* Added improved -validateMenuItem: as a method in SUUpdater.h for public use (Zorg) +* Removed reachability preflight check (Zorg) * Clear update caches directory before downloading new update (Zorg) * Check the bundle's parent directory for writability too (Zorg) * Don't follow symbolic links for file operations (Zorg) @@ -13,11 +17,12 @@ * Fixed german l10n. (Sebastian Volland) * Error code for download errors (Kornel Lesiński) * Update last update check date when the update driver finishes (Zorg) -* Scale app icon up if needed in Software Update window (#763) (Nicholas Riley) -* Improved tests (Zorg) -* Don't register for termination notifications more than once. Fixes #757 (Zorg) +* Scale app icon up if needed in Software Update window (Nicholas Riley) +* Don't register for termination notifications more than once (Zorg) * Don't terminate the app if we're already terminating (Zorg) * Removed SUEnableAutomaticChecksKeyOld and SUCheckAtStartup constants (Eitot) +* Updated Sparkle framework headers to use modules if modules are available (B. Kevin Hardman) +* Fixed warnings, fixed uses of SULocalizedString (Jerry Krinock) # 1.14.0 (Mar 11, 2016) diff --git a/Configurations/ConfigCommon.xcconfig b/Configurations/ConfigCommon.xcconfig index 8dfce0a7..57613c90 100644 --- a/Configurations/ConfigCommon.xcconfig +++ b/Configurations/ConfigCommon.xcconfig @@ -16,7 +16,7 @@ SPARKLE_NORMALIZE_INSTALLED_APPLICATION_NAME = 0 SPARKLE_ICON_NAME = AppIcon SPARKLE_VERSION_MAJOR = 1 -SPARKLE_VERSION_MINOR = 14 +SPARKLE_VERSION_MINOR = 15 SPARKLE_VERSION_PATCH = 0 SPARKLE_VERSION = $(SPARKLE_VERSION_MAJOR).$(SPARKLE_VERSION_MINOR).$(SPARKLE_VERSION_PATCH) diff --git a/Sparkle/SUUpdater.h b/Sparkle/SUUpdater.h index f09f0a00..8d3c1bf6 100644 --- a/Sparkle/SUUpdater.h +++ b/Sparkle/SUUpdater.h @@ -19,7 +19,7 @@ #import "SUVersionDisplayProtocol.h" #import "SUUpdaterDelegate.h" -@class SUAppcastItem, SUAppcast; +@class SUAppcastItem, SUAppcast, NSMenuItem; @protocol SUUpdaterDelegate; @@ -74,6 +74,11 @@ SU_EXPORT @interface SUUpdater : NSObject */ - (IBAction)checkForUpdates:(id)sender; +/*! + The menu item validation used for the -checkForUpdates: action + */ +- (BOOL)validateMenuItem:(NSMenuItem *)menuItem; + /*! Checks for updates, but does not display any UI unless an update is found.