Use XPC for IPC to the installer instead of CFMessagePort

We now use XPC for communication between Sparkle.framework and Autoupdate.
Autoupdate is now ran as a launchd agaent/daemon. (Most of the time, it acts as an agent).

Using XPC can only be done from non-sandboxed processes, so a connection and status service had to be created.

Currently, the GUI progress tool doesn't work properly, but everything else should be behaving like before.
This commit is contained in:
Zorg committed 2016-07-12 19:59:24 -04:00
1 parent 80bc8353ed
commit 8563a40cd2
59 files changed
+1394 -1521

No files matched your search

+2 -2
View File
@@ -64,11 +64,11 @@ void _SULogDisableStandardErrorStream(void);
return self;
}
- (BOOL)updaterShouldInheritInstallPrivileges:(SUUpdater *)__unused updater
- (BOOL)updaterShouldAllowInstallerInteraction:(SUUpdater *)__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;
return self.interactive;
}
// In case we find an update during probing, otherwise we leave this to the user driver