From 53c4abaf9ecc9787f607beea350d1cf038427a04 Mon Sep 17 00:00:00 2001 From: Zorg Date: Sun, 29 May 2016 17:01:38 -0400 Subject: [PATCH] Remove providing custom installer progress app I don't think this feature would be used much, and I don't want to deal with additional maintainability. As it is, the progress app should show up in rare cases. --- Sparkle/SUInstallerDriver.m | 11 ++--------- Sparkle/SUUpdaterDelegate.h | 13 ------------- 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/Sparkle/SUInstallerDriver.m b/Sparkle/SUInstallerDriver.m index 0dad7003..44298c3f 100644 --- a/Sparkle/SUInstallerDriver.m +++ b/Sparkle/SUInstallerDriver.m @@ -229,16 +229,9 @@ decryptionPassword = [self.updaterDelegate decryptionPasswordForUpdater:self.updater]; } - NSString *localProgressToolPath = nil; - if ([self.updaterDelegate respondsToSelector:@selector(pathToInstallerProgressAppForUpdater:)]) { - localProgressToolPath = [self.updaterDelegate pathToInstallerProgressAppForUpdater:self.updater]; - } - + NSString *localProgressToolPath = [self.sparkleBundle pathForResource:@""SPARKLE_INSTALLER_PROGRESS_TOOL_NAME ofType:@"app"]; if (localProgressToolPath == nil) { - localProgressToolPath = [self.sparkleBundle pathForResource:@""SPARKLE_INSTALLER_PROGRESS_TOOL_NAME ofType:@"app"]; - if (localProgressToolPath == nil) { - SULog(@"Error: Failed to find installer progress tool: %@", localProgressToolPath); - } + SULog(@"Error: Failed to find installer progress tool: %@", localProgressToolPath); } NSError *progressToolError = nil; diff --git a/Sparkle/SUUpdaterDelegate.h b/Sparkle/SUUpdaterDelegate.h index 6fcfb79d..4bb952ad 100644 --- a/Sparkle/SUUpdaterDelegate.h +++ b/Sparkle/SUUpdaterDelegate.h @@ -236,19 +236,6 @@ SU_EXPORT extern NSString *const SUUpdaterAppcastNotificationKey; */ - (NSString *)pathToRelaunchForUpdater:(SUUpdater *)updater; -/*! - Returns the path which is used to launch the installer progress app. - - Return nil if a custom path should not be used. The default is the path Sparkle's own installer progress app. - - Note that if the application is sandboxed, the path returned from this method must be accessible within the application's sandbox. - Lastly, the installer progress app is only used if the installation takes a "long" period of time. This is more likely to occur with installations - that happen eg: over the network or USB drive, or if the app is really big and scattered in size. For most use cases, this tool may not be launched. - - \param updater The SUUpdater instance. - */ -- (NSString *)pathToInstallerProgressAppForUpdater:(SUUpdater *)updater; - /*! Returns whether or not the updater should inherit its parent's privileges during installation