Skip to content

Instantly share code, notes, and snippets.

@hayakawa
Last active January 6, 2020 23:53
Show Gist options
  • Save hayakawa/abaa9a132f5a795012676dba27a23018 to your computer and use it in GitHub Desktop.
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
#!/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"
@nglmna
Copy link

nglmna commented Dec 16, 2019

runs perfect. Thank you for sharing this.

@loadp
Copy link

loadp commented Jan 1, 2020

runs perfect. Thank you for sharing this.

Hello,
happy New Year 2020
Can you please help me
I understand nothing
how I have to stat and where I have found all this information

thank you so much

#!/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"

@loadp
Copy link

loadp commented Jan 1, 2020

Amazingly helpful!

Hello can u please make video for me please
thanks you so much

@loadp
Copy link

loadp commented Jan 1, 2020

runs perfect. Thank you for sharing this.

Hello can u please make video for me please
thanks you so much
please

@BobbySimp
Copy link

Could someone please explain to me how to run this script? I am very new to this! Thanks in advance!

@hayakawa
Copy link
Author

hayakawa commented Jan 6, 2020

@loadp @BobbySimp

Hi,

I made a simple manual. The following steps may help you ;-)
(You need skills basic mac and shell script operation.)

How to setup script on your mac

  1. Download this script.
    • Click Download ZIP button on this page top right.
  2. Extract downloaded zip file.
    • ex. Double click downloaded zip file.
  3. After extract, move run_antelope.sh file to as you like directory if you need
    • run_antelope.sh file will be in extracted directory.
    • DO NOT FORGET WHERE YOU MOVED
  4. That's all!

How to run this script

  1. Launch Your Terminal.app
    • You will be able to find in /Application/Utilities/Terminal.app
  2. Type sh /path/to/directory/run_antelope.sh
    • Notes: replace /path/to/directory/ to moved directory path
  3. Antelope Launcher will be launch on your mac!

How to finish Antelope Launcher

  1. Antelope Launcher active and type CMD+Q
  2. After finished Antelope Launcher, you can finish Terminal.app too

@hayakawa
Copy link
Author

hayakawa commented Jan 6, 2020

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment