Browse Source

APPLEMAIL-24 Add a user home replace string step in script at Build Phases in pEpMacOSAdpater target

APPLEMAIL-24
David Alarcon 2 years ago
parent
commit
b3bcd110ff
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      pEpMacOSAdapter.xcodeproj/project.pbxproj

+ 1
- 1
pEpMacOSAdapter.xcodeproj/project.pbxproj View File

@ -174,7 +174,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "# Type a script or drag a script file from your workspace to insert its path.\nset -e\n\n# Variables\nLAUNCH_AGENTS_DIR=\"$HOME/Library/LaunchAgents\"\nPEP_SERVICE_DIR=\"$HOME/Library/Application Support/pEp/pEpMacOSAdapter\"\nPEP_XPC_PRODUCT_SERVICE_EXECUTABLE=\"$TARGET_BUILD_DIR/$EXECUTABLE_PATH\"\nPEP_XPC_SERVICE_PLIST_NAME=\"pEp.foundation.pEpMacOSAdapter.plist\"\nPEP_XPC_SERVICE_PLIST_PATH_IN_BUNDLE=\"$PROJECT_DIR/$PROJECT_NAME/$PEP_XPC_SERVICE_PLIST_NAME\"\nPEP_XPC_SERVICE_PLIST_LAUNCHD_PATH=\"$LAUNCH_AGENTS_DIR/$PEP_XPC_SERVICE_PLIST_NAME\"\n\n# Create service folder\ninstall -d \"$PEP_SERVICE_DIR\"\n# Copy xpc to service folder\ninstall -c \"$PEP_XPC_PRODUCT_SERVICE_EXECUTABLE\" \"$PEP_SERVICE_DIR\"\n# Copy xpc plist to launchagents folder\ninstall -c \"$PEP_XPC_SERVICE_PLIST_PATH_IN_BUNDLE\" \"$LAUNCH_AGENTS_DIR\"\n# Load XPC Service\nlaunchctl unload \"$PEP_XPC_SERVICE_PLIST_LAUNCHD_PATH\"\nlaunchctl load \"$PEP_XPC_SERVICE_PLIST_LAUNCHD_PATH\"\n";
shellScript = "# Type a script or drag a script file from your workspace to insert its path.\nset -e\n\n# Variables\nLAUNCH_AGENTS_DIR=\"$HOME/Library/LaunchAgents\"\nPEP_SERVICE_DIR=\"$HOME/Library/Application Support/pEp/pEpMacOSAdapter\"\nPEP_XPC_PRODUCT_SERVICE_EXECUTABLE=\"$TARGET_BUILD_DIR/$EXECUTABLE_PATH\"\nPEP_XPC_SERVICE_PLIST_NAME=\"pEp.foundation.pEpMacOSAdapter.plist\"\nPEP_XPC_SERVICE_PLIST_PATH_IN_BUNDLE=\"$PROJECT_DIR/$PROJECT_NAME/$PEP_XPC_SERVICE_PLIST_NAME\"\nPEP_XPC_SERVICE_PLIST_LAUNCHD_PATH=\"$LAUNCH_AGENTS_DIR/$PEP_XPC_SERVICE_PLIST_NAME\"\n\n# Create service folder\ninstall -d \"$PEP_SERVICE_DIR\"\n# Copy xpc to service folder\ninstall -c \"$PEP_XPC_PRODUCT_SERVICE_EXECUTABLE\" \"$PEP_SERVICE_DIR\"\n# Replace home path and copy xpc plist to launchagents folder\nsed \"s+\\$HOME+$HOME+g\" $PEP_XPC_SERVICE_PLIST_PATH_IN_BUNDLE > $PEP_XPC_SERVICE_PLIST_LAUNCHD_PATH \n# Load XPC Service\nlaunchctl unload \"$PEP_XPC_SERVICE_PLIST_LAUNCHD_PATH\"\nlaunchctl load \"$PEP_XPC_SERVICE_PLIST_LAUNCHD_PATH\"\n";
};
/* End PBXShellScriptBuildPhase section */


Loading…
Cancel
Save