Implement new allow installer interaction methods in sparkle-cli

This commit is contained in:
Zorg committed 2016-08-21 18:58:11 -04:00
1 parent b8d1ac45c3
commit 27ea7ca2f5
1 file changed
+9 -3
+9 -3
View File
@@ -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;
}