Changeset 355:4cbc1ff98a2c


Ignore:
Timestamp:
Sep 5, 2009, 11:50:37 PM (11 years ago)
Author:
Jeremy Thurgood <firxen@…>
Branch:
default
Convert:
svn:b4e93282-eac8-4b8b-b765-0f5d36de2b68@356
Message:

Mac OS X packaging happy.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TODO

    r353 r355  
    11== TODO ==
    2 
    3 * Py2app packaging (jerith)
    4 * Add icons to py2app build.
    52
    63== POST PYWEEK ==
  • darwin-py2app

    r344 r355  
    66
    77OFA_VERSION=`PYTHONPATH=. python -c "from gamelib import version; print version.VERSION_STR"`
    8 BUILD_FOLDER="foxassault-${OFA_VERSION}"
    9 DMG_NAME="${BUILD_FOLDER}.dmg"
     8BUILD_NAME="foxassault-${OFA_VERSION}"
     9BUILD_FOLDER="build/${BUILD_NAME}"
     10DMG_NAME="${BUILD_NAME}.dmg"
    1011PY2APP_LOG="py2app.log"
     12
     13BASEDIR=`pwd`
    1114
    1215echo "=== Setting up build environment ==="
    1316
    14 rm -rf build
    15 mkdir build
    16 mkdir dist
     17./unix-tarball
    1718
    18 for f in gamelib scripts data setup.py; do
    19     svn export $f build/$f
     19for f in scripts setup.py; do
     20    svn export $f ${BUILD_FOLDER}/$f
    2021done
    2122
    22 cd build
     23cd ${BUILD_FOLDER}
    2324
    24 unzip ../lib/pgu-*.zip
    25 mv pgu-*/pgu .
    26 mkdir -p share/pgu
    27 mv pgu-*/data/themes share/pgu
    28 rm -rf pgu-*
    29 find data -name '*.svg' -delete
     25# find data -name '*.svg' -delete
    3026
    3127echo ""
     
    3430echo "  Writing log to ${PY2APP_LOG}"
    3531
    36 # python setup.py py2app >${PY2APP_LOG} 2>&1
    37 python setup.py py2app
     32python setup.py py2app >${PY2APP_LOG} 2>&1
    3833
    3934echo ""
     
    4237
    4338for dir in docs examples tests; do
    44     find "dist/${BUILD_FOLDER}" -path "*/Resources/lib/*/pygame/${dir}/*" -delete
     39    find "dist/" -path "*/Resources/lib/*/pygame/${dir}/*" -delete
    4540done
    4641
     
    4843echo ""
    4944
    50 hdiutil create -srcfolder dist/${BUILD_FOLDER}/*.app/ dist/${DMG_NAME}
    51 mv dist/* ../dist/
    52 cd ..
     45cd ${BASEDIR}
     46
     47pwd
     48hdiutil create -srcfolder ${BUILD_FOLDER}/dist/*.app/ dist/${DMG_NAME}
    5349
    5450echo ""
  • setup.py

    r344 r355  
    7777                'argv_emulation': 1,
    7878                'iconfile': 'data/icons/foxassault.icns',
    79                 'dist_dir': 'dist/foxassault-%s' % version.VERSION_STR,
     79#                 'dist_dir': 'dist/foxassault-%s' % version.VERSION_STR,
     80#                 'bdist_base': 'build/bdist',
    8081                'packages': [
    8182                    'logging', 'encodings', 'pygame', 'pgu', 'gamelib', 'data',
    8283                ],
    83                 'resources': ['share'],
    8484                'excludes': ['numpy'],
    8585            }},
Note: See TracChangeset for help on using the changeset viewer.