From 27ea7ca2f50329b3addef8bccde399502d1b3e7c Mon Sep 17 00:00:00 2001 From: Zorg Date: Sun, 21 Aug 2016 18:58:11 -0400 Subject: [PATCH] Implement new allow installer interaction methods in sparkle-cli --- sparkle-cli/SPUCommandLineDriver.m | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/sparkle-cli/SPUCommandLineDriver.m b/sparkle-cli/SPUCommandLineDriver.m index c7a66d72..4cb69a50 100644 --- a/sparkle-cli/SPUCommandLineDriver.m +++ b/sparkle-cli/SPUCommandLineDriver.m @@ -86,10 +86,16 @@ void _SULogDisableStandardErrorStream(void); }); } -- (BOOL)updaterShouldAllowInstallerInteraction:(SPUUpdater *)__unused updater +// If the installation is interactive, we can show an authorization prompt for requesting additional privileges, +// along with allowing the installer to show UI when installing + +- (BOOL)updaterShouldAllowInstallerInteractionForInitiatedChecks:(SPUUpdater *)__unused updater +{ + return self.interactive; +} + +- (BOOL)updaterShouldAllowInstallerInteractionForScheduledChecks:(SPUUpdater *)__unused updater { - // If the installation is interactive, we can show an authorization prompt for requesting additional privileges, - // otherwise we should have the installer inherit the updater's privileges. return self.interactive; }