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