Skip to content

Instantly share code, notes, and snippets.

@hannesoid
Forked from hayakawa/run_antelope.sh
Created November 18, 2019 10:36
Show Gist options
  • Save hannesoid/0cc8486565ef91f1d29500a2ea85b823 to your computer and use it in GitHub Desktop.
Save hannesoid/0cc8486565ef91f1d29500a2ea85b823 to your computer and use it in GitHub Desktop.
Little code to run Antelope Launcher and Server on MacOS Catalina Public beta
#!/bin/bash
### Get my uid
UserID=`id -u`
echo "Your UID: ${UserID}"
### Unload root process
sudo launchctl unload /Library/LaunchDaemons/com.antelopeaudio.daemon.plist
### Kill the process if it was already awaken
PID=`ps -U "${UserID}"|grep AntelopeAudioServer|grep -v grep|awk '{print $1;}'`
if [ -n "${PID}" ] && [ "${PID}" -ge 1 ];
then
kill -9 ${PID}
fi
### Check latest server
TARGET=`ls -1 /Users/Shared/.AntelopeAudio/managerserver/servers/|sort -nr|head -n 1`
/Users/Shared/.AntelopeAudio/managerserver/servers/${TARGET}/AntelopeAudioServer-${TARGET}.app/Contents/MacOS/AntelopeAudioServer &
SERVPID=$!
echo "Process ID is: ${SERVPID}"
### Open Antelope Launcher
open "/Applications/Antelope Launcher.app"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment