changeset 581:779c29924a8a

Make wine py2exe builder work.
author Simon Cross <hodgestar@gmail.com>
date Sun, 10 Apr 2011 15:07:08 +0200
parents b7c432ce1b80
children 213f46e787c4
files scripts/wine-py2exe
diffstat 1 files changed, 11 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/wine-py2exe	Sun Apr 10 15:06:50 2011 +0200
+++ b/scripts/wine-py2exe	Sun Apr 10 15:07:08 2011 +0200
@@ -1,15 +1,14 @@
 #!/bin/sh
 # wine-py2exe
-# Copyright Simon Cross, Neil Muller, 2009 (see COPYING File)
 #
 # Usage: wine-py2exe
 
-NT_VERSION=`sed -ne 's/VERSION_STR = "\(.*\)"/\1/p' setup.py`
-BUILD_FOLDER="nine-tails-${NT_VERSION}"
+NT_VERSION=`sed -nre 's/VERSION_STR = "(.*)"/\1/p' setup.py`
+BUILD_FOLDER="nine-tales-${NT_VERSION}"
 ZIP_NAME="${BUILD_FOLDER}.zip"
 PY2EXE_LOG="py2exe.log"
 
-WINE_PYTHON=`winepath "C:/Python25"`
+WINE_PYTHON=`winepath "C:/Python26"`
 WINE_SYS32=`winepath "C:/windows/system32"`
 
 #
@@ -18,7 +17,7 @@
 
 echo "=== Running wine python setup.py ==="
 echo ""
-echo "  Nine Tails version: ${NT_VERSION}"
+echo "  Nine Tales version: ${NT_VERSION}"
 echo "  Writing log to ${PY2EXE_LOG}."
 echo "  ---"
 echo "  Please make sure you have patched your py2exe run.exe"
@@ -41,25 +40,20 @@
 
 DEST="dist/${BUILD_FOLDER}"
 
-cp -v "${WINE_SYS32}/python25.dll" "${DEST}"
-cp -v "${WINE_SYS32}/msvcr71.dll" "${DEST}"
+cp -v "${WINE_SYS32}/python26.dll" "${DEST}"
+cp -v "${WINE_SYS32}/msvcr80.dll" "${DEST}"
 
-#echo "'${WINE_PYTHON}/share/pgu/themes/default' -> '${DEST}/share/pgu/themes/'"
-#mkdir -p "${DEST}/share/pgu/themes"
-#cp -R "${WINE_PYTHON}/share/pgu/themes/default" "${DEST}/share/pgu/themes/"
-
-echo "'Resources' -> '${DEST}/Resources'"
-bzr export -q "${DEST}/Resources" "Resources"
-#find "${DEST}/data" -name '*.svg' -delete
+echo "'data' -> '${DEST}/data'"
+hg archive -I "path:data/" "${DEST}"
 
 echo "'${WINE_PYTHON}/Lib/site-packages/pygame' -> '${DEST}'"
 rm -rf "${DEST}/pygame"
 cp -R "${WINE_PYTHON}/Lib/site-packages/pygame" "${DEST}"
 rm -rf "${DEST}/pygame/examples" "${DEST}/pygame/tests" "${DEST}/pygame/docs"
 
-echo "'docs/walkthrough.rst' -> '${DEST}/Resources'"
-rm -f "${DEST}/walkthrough.rst"
-cp "docs/walkthrough.rst" "${DEST}/walkthrough.rst"
+#echo "'docs/walkthrough.rst' -> '${DEST}/data'"
+#rm -f "${DEST}/walkthrough.rst"
+#cp "docs/walkthrough.rst" "${DEST}/walkthrough.rst"
 
 echo ""