source: branches/active/character_customization/game/create_exe.bat.txt @ 763

Revision 644, 741 bytes checked in by beliar, 9 years ago (diff)

Patch by Beliar

  • Added a script file that can be used to create a windows binary from the game script. Read "create_exe.bat.txt" to see how its used.
1This file runs a python script that creates a standalone windows binary file, including needed libraries, from the game script and puts them in the dist folder.
3For this script you need the following (in addition to the games requirements):
4py2exe (
5python library dependencies that are installed as eggs need to be unzipped. This can be done with using -Z (short for --always-unzip) when installing with easy_python (example easy_install -Z pyyaml) or unzipping these manually (eggs are just renamed zips). PyYaml is such a dependency. py2exe with complain if dependencies are missing so check the log.
7Note that the to run the game the folders containing the data need to be in the same folder as the binary.
Note: See TracBrowser for help on using the repository browser.