Changeset 581:779c29924a8a


Ignore:
Timestamp:
04/10/11 13:07:08 (12 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Phase:
public
Message:

Make wine py2exe builder work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/wine-py2exe

    r577 r581  
    11#!/bin/sh
    22# wine-py2exe
    3 # Copyright Simon Cross, Neil Muller, 2009 (see COPYING File)
    43#
    54# Usage: wine-py2exe
    65
    7 NT_VERSION=`sed -ne 's/VERSION_STR = "\(.*\)"/\1/p' setup.py`
    8 BUILD_FOLDER="nine-tails-${NT_VERSION}"
     6NT_VERSION=`sed -nre 's/VERSION_STR = "(.*)"/\1/p' setup.py`
     7BUILD_FOLDER="nine-tales-${NT_VERSION}"
    98ZIP_NAME="${BUILD_FOLDER}.zip"
    109PY2EXE_LOG="py2exe.log"
    1110
    12 WINE_PYTHON=`winepath "C:/Python25"`
     11WINE_PYTHON=`winepath "C:/Python26"`
    1312WINE_SYS32=`winepath "C:/windows/system32"`
    1413
     
    1918echo "=== Running wine python setup.py ==="
    2019echo ""
    21 echo "  Nine Tails version: ${NT_VERSION}"
     20echo "  Nine Tales version: ${NT_VERSION}"
    2221echo "  Writing log to ${PY2EXE_LOG}."
    2322echo "  ---"
     
    4241DEST="dist/${BUILD_FOLDER}"
    4342
    44 cp -v "${WINE_SYS32}/python25.dll" "${DEST}"
    45 cp -v "${WINE_SYS32}/msvcr71.dll" "${DEST}"
     43cp -v "${WINE_SYS32}/python26.dll" "${DEST}"
     44cp -v "${WINE_SYS32}/msvcr80.dll" "${DEST}"
    4645
    47 #echo "'${WINE_PYTHON}/share/pgu/themes/default' -> '${DEST}/share/pgu/themes/'"
    48 #mkdir -p "${DEST}/share/pgu/themes"
    49 #cp -R "${WINE_PYTHON}/share/pgu/themes/default" "${DEST}/share/pgu/themes/"
    50 
    51 echo "'Resources' -> '${DEST}/Resources'"
    52 bzr export -q "${DEST}/Resources" "Resources"
    53 #find "${DEST}/data" -name '*.svg' -delete
     46echo "'data' -> '${DEST}/data'"
     47hg archive -I "path:data/" "${DEST}"
    5448
    5549echo "'${WINE_PYTHON}/Lib/site-packages/pygame' -> '${DEST}'"
     
    5852rm -rf "${DEST}/pygame/examples" "${DEST}/pygame/tests" "${DEST}/pygame/docs"
    5953
    60 echo "'docs/walkthrough.rst' -> '${DEST}/Resources'"
    61 rm -f "${DEST}/walkthrough.rst"
    62 cp "docs/walkthrough.rst" "${DEST}/walkthrough.rst"
     54#echo "'docs/walkthrough.rst' -> '${DEST}/data'"
     55#rm -f "${DEST}/walkthrough.rst"
     56#cp "docs/walkthrough.rst" "${DEST}/walkthrough.rst"
    6357
    6458echo ""
Note: See TracChangeset for help on using the changeset viewer.