changeset 681:3431e9c3655b

Give up and add apologetic text file to OSX package.
author Jeremy Thurgood <firxen@gmail.com>
date Sun, 08 Sep 2013 20:29:01 +0200
parents 589e43580fda
children daccacf566dc
files scripts/darwin-py2app.sh
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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 (<firxen@gmail.com>) 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 ==="