assdraw: add minimal OS X bundle generation script

Originally committed to SVN as r6861.
This commit is contained in:
Thomas Goyne 2012-05-24 01:56:15 +00:00
parent 01eba350b7
commit eb1184b329

41
contrib/assdraw/osx-bundle.sh Executable file
View file

@ -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"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>assdraw</string>
<key>CFBundleIdentifier</key>
<string>com.aegisub.assdraw</string>
<key>CFBundleName</key>
<string>ASSDraw3</string>
<key>CFBundleDisplayName</key>
<string>ASSDraw3</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>LSHasLocalizedDisplayName</key>
<false/>
</dict>
</plist>
EOF