Changeset 344:1b35fceccaaa


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

Fixes.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • darwin-py2app

    r334 r344  
    1010PY2APP_LOG="py2app.log"
    1111
    12 rm -rf "dist/tmp"
    13 rm -rf "dist/${BUILD_FOLDER}"
    14 rm -rf "dist/${ZIP_NAME}"
     12echo "=== Setting up build environment ==="
    1513
    16 echo ""
    17 echo "=== Copying dependencies that might not be installed ==="
    18 echo ""
     14rm -rf build
     15mkdir build
     16mkdir dist
    1917
    20 PGU_PATH=`find lib/pgu* -maxdepth 0 -type d`
     18for f in gamelib scripts data setup.py; do
     19    svn export $f build/$f
     20done
    2121
    22 mkdir -p "dist/tmp/share/pgu/themes"
    23 echo "'${PGU_PATH}/pgu' -> 'dist/tmp/'"
    24 cp -R "${PGU_PATH}/pgu" "dist/tmp/"
    25 echo "'${PGU_PATH}/data/themes/default' -> 'dist/tmp/share/pgu/themes/'"
    26 cp -R "${PGU_PATH}/data/themes/default" "dist/tmp/share/pgu/themes/"
     22cd build
     23
     24unzip ../lib/pgu-*.zip
     25mv pgu-*/pgu .
     26mkdir -p share/pgu
     27mv pgu-*/data/themes share/pgu
     28rm -rf pgu-*
     29find data -name '*.svg' -delete
    2730
    2831echo ""
     
    3134echo "  Writing log to ${PY2APP_LOG}"
    3235
    33 python setup.py py2app >${PY2APP_LOG} 2>&1
    34 
    35 rm -rf "dist/tmp"
     36# python setup.py py2app >${PY2APP_LOG} 2>&1
     37python setup.py py2app
    3638
    3739echo ""
     
    3941echo ""
    4042
    41 find "dist/${BUILD_FOLDER}" -path '*/Resources/lib/*/data/*' -name '*.svg' -delete
    4243for dir in docs examples tests; do
    4344    find "dist/${BUILD_FOLDER}" -path "*/Resources/lib/*/pygame/${dir}/*" -delete
     
    4849
    4950hdiutil create -srcfolder dist/${BUILD_FOLDER}/*.app/ dist/${DMG_NAME}
     51mv dist/* ../dist/
     52cd ..
    5053
    5154echo ""
  • setup.py

    r343 r344  
    7676            'py2app': {
    7777                'argv_emulation': 1,
     78                'iconfile': 'data/icons/foxassault.icns',
    7879                'dist_dir': 'dist/foxassault-%s' % version.VERSION_STR,
    7980                'packages': [
    80                     'logging', 'encodings', 'pygame', 'gamelib', 'data', 'dist/tmp/pgu',
     81                    'logging', 'encodings', 'pygame', 'pgu', 'gamelib', 'data',
    8182                ],
    82                 'resources': ['dist/tmp/share'],
    83                 'excludes': ['numpy', 'pgu'],
     83                'resources': ['share'],
     84                'excludes': ['numpy'],
    8485            }},
    8586            data_files = [
  • unix-tarball

    r338 r344  
    1818rm -rf "${BUILD_FOLDER}"
    1919mkdir -p "${BUILD_FOLDER}"
     20mkdir -p dist
    2021
    2122#
     
    5859tar czf "foxassault-${OFA_VERSION}.tgz" "foxassault-${OFA_VERSION}"
    5960cd ..
    60 cp "build/foxassault-${OFA_VERSION}.tgz" "${DIST_FILE}"
    61 rm "build/foxassault-${OFA_VERSION}.tgz"
     61mv "build/foxassault-${OFA_VERSION}.tgz" "${DIST_FILE}"
    6262
    6363echo "  Tar file: ${DIST_FILE}"
Note: See TracChangeset for help on using the changeset viewer.