From e99416456afd4aa8bde42016826f9a345291cbf3 Mon Sep 17 00:00:00 2001 From: Matthew Poletiek Date: Tue, 8 Dec 2020 21:03:16 -0600 Subject: Initial Commit --- build/chirp.app/Contents/Info.plist | 26 +++++++++++++++++++++++++ build/chirp.app/Contents/MacOS/chirp | 19 ++++++++++++++++++ build/chirp.app/Contents/PkgInfo | 1 + build/chirp.app/Contents/Resources/.placeholder | 0 4 files changed, 46 insertions(+) create mode 100644 build/chirp.app/Contents/Info.plist create mode 100755 build/chirp.app/Contents/MacOS/chirp create mode 100644 build/chirp.app/Contents/PkgInfo create mode 100644 build/chirp.app/Contents/Resources/.placeholder (limited to 'build/chirp.app/Contents') diff --git a/build/chirp.app/Contents/Info.plist b/build/chirp.app/Contents/Info.plist new file mode 100644 index 0000000..673eeeb --- /dev/null +++ b/build/chirp.app/Contents/Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleExecutable + chirp + CFBundleIconFile + Chirp + CFBundleIdentifier + com.danplanet.chirp + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + chirp + CFBundleShortVersionString + 0.1 + CFBundleVersion + 0.1 + LSHasLocalizedDisplayName + + LSMinimumSystemVersion + 10.5 + + 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" diff --git a/build/chirp.app/Contents/PkgInfo b/build/chirp.app/Contents/PkgInfo new file mode 100644 index 0000000..bd04210 --- /dev/null +++ b/build/chirp.app/Contents/PkgInfo @@ -0,0 +1 @@ +APPL???? \ No newline at end of file diff --git a/build/chirp.app/Contents/Resources/.placeholder b/build/chirp.app/Contents/Resources/.placeholder new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3