pEp macOS Desktop adapter
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
686 B

# pEpMacOSAdapter
# Created by David Alarcon on 12/4/21.
# Copyright © 2021 p≡p foundation. All rights reserved.
# Copy the service plist to LaunchAgents
cp $projectName/$plist /Library/LaunchAgents
# Unload the service
launchctl asuser $uid launchctl unload /Library/LaunchAgents/$plist
# Copy the service executable
cp -f "$buildProductsDir/foundation.pEp.adapter.macOS.xpc/Contents/MacOS/foundation.pEp.adapter.macOS" "/Library/Application Support/pEp/"
# Load the service
launchctl asuser $uid launchctl load /Library/LaunchAgents/$plist