Mercurial > skaapsteker
comparison scripts/wine-py2exe @ 581:779c29924a8a
Make wine py2exe builder work.
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Sun, 10 Apr 2011 15:07:08 +0200 |
parents | 62666b542afe |
children | 303087bcf1fa |
comparison
equal
deleted
inserted
replaced
580:b7c432ce1b80 | 581:779c29924a8a |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 # wine-py2exe | 2 # wine-py2exe |
3 # Copyright Simon Cross, Neil Muller, 2009 (see COPYING File) | |
4 # | 3 # |
5 # Usage: wine-py2exe | 4 # Usage: wine-py2exe |
6 | 5 |
7 NT_VERSION=`sed -ne 's/VERSION_STR = "\(.*\)"/\1/p' setup.py` | 6 NT_VERSION=`sed -nre 's/VERSION_STR = "(.*)"/\1/p' setup.py` |
8 BUILD_FOLDER="nine-tails-${NT_VERSION}" | 7 BUILD_FOLDER="nine-tales-${NT_VERSION}" |
9 ZIP_NAME="${BUILD_FOLDER}.zip" | 8 ZIP_NAME="${BUILD_FOLDER}.zip" |
10 PY2EXE_LOG="py2exe.log" | 9 PY2EXE_LOG="py2exe.log" |
11 | 10 |
12 WINE_PYTHON=`winepath "C:/Python25"` | 11 WINE_PYTHON=`winepath "C:/Python26"` |
13 WINE_SYS32=`winepath "C:/windows/system32"` | 12 WINE_SYS32=`winepath "C:/windows/system32"` |
14 | 13 |
15 # | 14 # |
16 # Run py2exe build under wine | 15 # Run py2exe build under wine |
17 # | 16 # |
18 | 17 |
19 echo "=== Running wine python setup.py ===" | 18 echo "=== Running wine python setup.py ===" |
20 echo "" | 19 echo "" |
21 echo " Nine Tails version: ${NT_VERSION}" | 20 echo " Nine Tales version: ${NT_VERSION}" |
22 echo " Writing log to ${PY2EXE_LOG}." | 21 echo " Writing log to ${PY2EXE_LOG}." |
23 echo " ---" | 22 echo " ---" |
24 echo " Please make sure you have patched your py2exe run.exe" | 23 echo " Please make sure you have patched your py2exe run.exe" |
25 echo " and run_w.exe with PETools (they need to have their" | 24 echo " and run_w.exe with PETools (they need to have their" |
26 echo " executable size correctly set)." | 25 echo " executable size correctly set)." |
39 echo "=== Copying dependencies that py2exe missed ===" | 38 echo "=== Copying dependencies that py2exe missed ===" |
40 echo "" | 39 echo "" |
41 | 40 |
42 DEST="dist/${BUILD_FOLDER}" | 41 DEST="dist/${BUILD_FOLDER}" |
43 | 42 |
44 cp -v "${WINE_SYS32}/python25.dll" "${DEST}" | 43 cp -v "${WINE_SYS32}/python26.dll" "${DEST}" |
45 cp -v "${WINE_SYS32}/msvcr71.dll" "${DEST}" | 44 cp -v "${WINE_SYS32}/msvcr80.dll" "${DEST}" |
46 | 45 |
47 #echo "'${WINE_PYTHON}/share/pgu/themes/default' -> '${DEST}/share/pgu/themes/'" | 46 echo "'data' -> '${DEST}/data'" |
48 #mkdir -p "${DEST}/share/pgu/themes" | 47 hg archive -I "path:data/" "${DEST}" |
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 | |
54 | 48 |
55 echo "'${WINE_PYTHON}/Lib/site-packages/pygame' -> '${DEST}'" | 49 echo "'${WINE_PYTHON}/Lib/site-packages/pygame' -> '${DEST}'" |
56 rm -rf "${DEST}/pygame" | 50 rm -rf "${DEST}/pygame" |
57 cp -R "${WINE_PYTHON}/Lib/site-packages/pygame" "${DEST}" | 51 cp -R "${WINE_PYTHON}/Lib/site-packages/pygame" "${DEST}" |
58 rm -rf "${DEST}/pygame/examples" "${DEST}/pygame/tests" "${DEST}/pygame/docs" | 52 rm -rf "${DEST}/pygame/examples" "${DEST}/pygame/tests" "${DEST}/pygame/docs" |
59 | 53 |
60 echo "'docs/walkthrough.rst' -> '${DEST}/Resources'" | 54 #echo "'docs/walkthrough.rst' -> '${DEST}/data'" |
61 rm -f "${DEST}/walkthrough.rst" | 55 #rm -f "${DEST}/walkthrough.rst" |
62 cp "docs/walkthrough.rst" "${DEST}/walkthrough.rst" | 56 #cp "docs/walkthrough.rst" "${DEST}/walkthrough.rst" |
63 | 57 |
64 echo "" | 58 echo "" |
65 | 59 |
66 # | 60 # |
67 # create zip file | 61 # create zip file |