Aegisub/scripts/osx-bundle.sh

20 lines
675 B
Bash
Executable File

#!/bin/bash
test -f aegisub/.libs/aegisub && test -x aegisub/.libs/aegisub || ( exit "Make sure you're in the right dir"; exit 1 )
test -e $1 && ( echo "$1 already exists, will not overwrite."; exit 1 )
echo "Making directory structure..."
mkdir $1 || ( echo "Failed creating directory $1"; exit 1 )
mkdir $1/Contents $1/Contents/MacOS $1/Contents/Resources
echo "Copying files into package..."
cp aegisub/macosx/Info.plist $1/Contents
cp aegisub/.libs/aegisub $1/Contents/MacOS
cp aegisub/macosx/*.icns $1/Contents/Resources
echo "Now about to collect and fix up shared libraries..."
python scripts/osx-fix-libs.py "$1/Contents/MacOS/aegisub"
echo "Done creating $1!"