# HG changeset patch # User Jeremy Thurgood # Date 1378664941 -7200 # Node ID 3431e9c3655b037b2204666f971653b291f61ee4 # Parent 589e43580fdae014982df288a70d3c57722bf977 Give up and add apologetic text file to OSX package. diff -r 589e43580fda -r 3431e9c3655b scripts/darwin-py2app.sh --- a/scripts/darwin-py2app.sh Sun Sep 08 19:52:31 2013 +0200 +++ b/scripts/darwin-py2app.sh Sun Sep 08 20:29:01 2013 +0200 @@ -27,7 +27,6 @@ cp $f $(echo $f | sed 's@werewolf-sonata@program/icon@') done - echo "" echo "=== Running python setup.py ===" echo " Werewolf Sonata version: ${GAME_VERSION}" @@ -51,7 +50,7 @@ echo "=== Copying libchipmunk ===" echo "" -cp dist/${GAME_NAME}.app/Contents/Resources/lib/python2.7/pymunk/libchipmunk.dylib dist/${GAME_NAME}.app/Contents/MacOS/ +cp dist/${GAME_NAME}.app/Contents/Resources/lib/python*/pymunk/libchipmunk.dylib dist/${GAME_NAME}.app/Contents/MacOS/ echo "=== Building DMG ===" echo "" @@ -60,7 +59,10 @@ pwd rm dist/${DMG_NAME} > /dev/null -hdiutil create -srcfolder ${BUILD_FOLDER}/dist/*.app/ dist/${DMG_NAME} + +echo -e "For some reason the game starts without a foreground window. Click on the icon in the dock (or minimize and restore from the menu) to get it back.\n\nIf this doesn't work, please let me () know, especially if you have any ideas about how to fix it.\n\nYou should also be able to use the unix tarball available at the same place you got this dmg.\n\nThanks." > ${BUILD_FOLDER}/dist/IMPORTANT\ NOTE.txt + +hdiutil create -srcfolder ${BUILD_FOLDER}/dist/*.app/ -srcfolder ${BUILD_FOLDER}/dist/IMPORTANT\ NOTE.txt dist/${DMG_NAME} echo "" echo "=== Done ==="