diff options
Diffstat (limited to 'build/chirp.app/Contents/MacOS')
| -rwxr-xr-x | build/chirp.app/Contents/MacOS/chirp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/build/chirp.app/Contents/MacOS/chirp b/build/chirp.app/Contents/MacOS/chirp new file mode 100755 index 0000000..d0ff86e --- /dev/null +++ b/build/chirp.app/Contents/MacOS/chirp @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +LOCATION=$(dirname "${BASH_SOURCE}") + +PYTHON=/opt/kk7ds/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python + +not_translocated () { + security translocate-status-check "${LOCATION}" 2>&1 | grep -q -e NOT -e unknown -e "not found" +} + +if [ ! -x $PYTHON ]; then + PYTHON=/opt/kk7ds/bin/python2.7 +elif not_translocated; then + ln -s $PYTHON "${LOCATION}/../CHIRP" + PYTHON=${LOCATION}/../CHIRP + export PYTHONPATH=/opt/kk7ds/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages +fi + +exec "$PYTHON" "${LOCATION}/../Resources/chirp/chirpw" |
