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