From eb1184b32977542b1bf1618f06482373bce228bc Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Thu, 24 May 2012 01:56:15 +0000 Subject: [PATCH] assdraw: add minimal OS X bundle generation script Originally committed to SVN as r6861. --- contrib/assdraw/osx-bundle.sh | 41 +++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100755 contrib/assdraw/osx-bundle.sh diff --git a/contrib/assdraw/osx-bundle.sh b/contrib/assdraw/osx-bundle.sh new file mode 100755 index 000000000..0c0570a45 --- /dev/null +++ b/contrib/assdraw/osx-bundle.sh @@ -0,0 +1,41 @@ +#!/bin/sh + +set -e + +BUNDLE_ROOT="$(dirname $0)/Assdraw.app/" +SRC_DIR="$(dirname $0)" + +if test -d "${BUNDLE_ROOT}"; then + rm -rf "${BUNDLE_ROOT}" +fi + +mkdir -p "${BUNDLE_ROOT}/Contents/MacOS" + +cp "${SRC_DIR}/src/assdraw" "${BUNDLE_ROOT}/Contents/MacOS/assdraw" + +python ../../aegisub/tools/osx-fix-libs.py "${BUNDLE_ROOT}/Contents/MacOS/assdraw" + +cat << 'EOF' > "${BUNDLE_ROOT}/Info.plist" + + + + + CFBundleInfoDictionaryVersion + 6.0 + CFBundleDevelopmentRegion + English + CFBundleExecutable + assdraw + CFBundleIdentifier + com.aegisub.assdraw + CFBundleName + ASSDraw3 + CFBundleDisplayName + ASSDraw3 + CFBundlePackageType + APPL + LSHasLocalizedDisplayName + + + +EOF