Last active
January 6, 2020 23:53
-
-
Save hayakawa/abaa9a132f5a795012676dba27a23018 to your computer and use it in GitHub Desktop.
[ ATTENTION!: This script will be unnecessary just now! / See also: https://en.antelopeaudio.com/2020/01/antelope-audio-product-compatibility-with-macos-catalina/ ]Little code to run Antelope Launcher and Server on MacOS Catalina
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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
We have a good news! This script will be unnecessary just now!
Antelope Audio products has a compatibility for MacOS 10.15(Catalina).
More details is see below:
https://en.antelopeaudio.com/2020/01/antelope-audio-product-compatibility-with-macos-catalina/