2008-12-29 05:43:17 +01:00
|
|
|
#!/bin/sh
|
2008-12-29 02:13:55 +01:00
|
|
|
|
2008-12-29 05:41:00 +01:00
|
|
|
PKG_DIR=${1}.app
|
|
|
|
SKEL_DIR="packages/osx_bundle"
|
2008-12-29 02:13:55 +01:00
|
|
|
|
2008-12-29 05:41:00 +01:00
|
|
|
if ! test -d packages/osx_bundle; then
|
2008-12-30 07:44:04 +01:00
|
|
|
echo
|
2008-12-29 05:41:00 +01:00
|
|
|
echo "Make sure you're in the toplevel source directory"
|
|
|
|
exit 1;
|
|
|
|
fi
|
2008-12-29 02:13:55 +01:00
|
|
|
|
2008-12-30 07:44:04 +01:00
|
|
|
if test -d ${PKG_DIR}; then
|
|
|
|
echo "**** USING OLD ${PKG_DIR} ****"
|
|
|
|
fi
|
2008-12-29 02:13:55 +01:00
|
|
|
|
2008-12-29 05:41:00 +01:00
|
|
|
echo
|
|
|
|
echo "---- Directory Structure ----"
|
|
|
|
mkdir -v ${PKG_DIR}
|
|
|
|
mkdir -v ${PKG_DIR}/Contents
|
|
|
|
mkdir -v ${PKG_DIR}/Contents/MacOS
|
|
|
|
mkdir -v ${PKG_DIR}/Contents/Resources
|
2008-12-29 02:13:55 +01:00
|
|
|
|
2008-12-29 05:41:00 +01:00
|
|
|
echo
|
|
|
|
echo "---- Copying Skel Files ----"
|
|
|
|
cp -v ${SKEL_DIR}/Contents/Resources/* ${PKG_DIR}/Contents/Resources
|
|
|
|
cp -v ${SKEL_DIR}/Contents/Info.plist ${PKG_DIR}/Contents
|
2008-12-29 02:13:55 +01:00
|
|
|
|
2008-12-29 05:41:00 +01:00
|
|
|
echo
|
|
|
|
echo "---- Binaries ----"
|
|
|
|
cp -v aegisub/.libs/aegisub ${PKG_DIR}/Contents/MacOS
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo "---- Libraries ----"
|
|
|
|
python scripts/osx-fix-libs.py "${PKG_DIR}/Contents/MacOS/aegisub"
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo "Done Creating ${PKG_DIR}"
|