Browse Source

APPLEMAIL-24 Create xpc service install script

APPLEMAIL-28
David Alarcon 2 years ago
parent
commit
462617a0ae
2 changed files with 6 additions and 5 deletions
  1. +4
    -3
      pEpMacOSAdapter.xcodeproj/project.pbxproj
  2. +2
    -2
      pEpMacOSAdapter/pEp.foundation.pEpMacOSAdapter.plist

+ 4
- 3
pEpMacOSAdapter.xcodeproj/project.pbxproj View File

@ -153,7 +153,7 @@
4EC93EEF24E4499700E96297 /* Frameworks */,
4EC93EF024E4499700E96297 /* Resources */,
4E8479A224EC1F9600D5A6D8 /* Embed Libraries */,
4E8479AC24EE72CA00D5A6D8 /* ShellScript */,
4E8479AC24EE72CA00D5A6D8 /* Install XPC Service */,
);
buildRules = (
);
@ -208,7 +208,7 @@
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
4E8479AC24EE72CA00D5A6D8 /* ShellScript */ = {
4E8479AC24EE72CA00D5A6D8 /* Install XPC Service */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
@ -217,13 +217,14 @@
);
inputPaths = (
);
name = "Install XPC Service";
outputFileListPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "# Type a script or drag a script file from your workspace to insert its path.\n";
shellScript = "# Type a script or drag a script file from your workspace to insert its path.\nset -e\n# Create service folder\nservicePath=\"$HOME/Library/Application Support/pEp/pEpMacOSAdapter\"\ninstall -d \"$servicePath\"\n\n# Copy xpc to service folder\nxpcProductServiceExecutable=\"$TARGET_BUILD_DIR/$EXECUTABLE_PATH\"\ninstall -c \"$xpcProductServiceExecutable\" \"$servicePath\"\n\n# Copy xpc plist to launchagents folder\nlaunchAgentsFolder=\"$HOME/Library/LaunchAgents\"\nxpcPlistProject=\"$PROJECT_DIR/$PROJECT_NAME/pEp.foundation.pEpMacOSAdapter.plist\"\ninstall -c \"$xpcPlistProject\" \"$launchAgentsFolder\"\n\n# Load XPC Service\nlaunchctl unload \"$launchAgentsFolder/pEp.foundation.pEpMacOSAdapter.plist\"\nlaunchctl load \"$launchAgentsFolder/pEp.foundation.pEpMacOSAdapter.plist\"\n";
};
/* End PBXShellScriptBuildPhase section */


+ 2
- 2
pEpMacOSAdapter/pEp.foundation.pEpMacOSAdapter.plist View File

@ -6,11 +6,11 @@
<string>pEp.foundation.pEpMacOSAdapter</string>
<key>ProgramArguments</key>
<array>
<string>~/Library/Application Support/pEp/pEpMacOSAdapter</string>
<string>/Users/davidalarcon/Library/Application Support/pEp/pEpMacOSAdapter</string>
</array>
<key>MachServices</key>
<dict>
<key>pEpMacOSAdapter</key>
<key>pEp.foundation.pEpMacOSAdapter</key>
<true/>
</dict>
<key>StandardOutPath</key>


Loading…
Cancel
Save