mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
Implement new allow installer interaction methods in sparkle-cli
This commit is contained in:
1 parent
b8d1ac45c3
commit
27ea7ca2f5
1 file changed
+9
-3
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user