diff options
author | Kevin Chabowski <kevin@kch42.de> | 2011-05-21 00:16:39 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2011-05-21 00:16:39 +0200 |
commit | a5d315bcdcfcb8f2fca8266201d2738aa1943e42 (patch) | |
tree | 576d2721a96dc96fc3616ec124a82c97cd785b3b /mkexe.py | |
parent | 948ccc48c33f2edb56dfabe7c59855c7adf589aa (diff) | |
download | dotstr_edit-a5d315bcdcfcb8f2fca8266201d2738aa1943e42.tar.gz dotstr_edit-a5d315bcdcfcb8f2fca8266201d2738aa1943e42.tar.bz2 dotstr_edit-a5d315bcdcfcb8f2fca8266201d2738aa1943e42.zip |
Some Windows-related bugfixes and an "exefying" script.
Also added "LICENSE" and "installer.nsi", which builds an
Installer for Windows.
Diffstat (limited to 'mkexe.py')
-rw-r--r-- | mkexe.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/mkexe.py b/mkexe.py new file mode 100644 index 0000000..f6da31a --- /dev/null +++ b/mkexe.py @@ -0,0 +1,30 @@ +from distutils.core import setup +import py2exe + +languages = ["de"] + +setup( + name="dotstr_edit", + version="0.1", + description="A tool for editing the .str files of EA's BFME2", + author="\"Die Voelker Mittelerdes\" Modding Crew", + windows=[ + { + "script": "dotstr_edit.py", + "icon_resources": [(1, "icon.ico")] + } + ], + data_files=[("", ["icon.ico", "icon.png", "wm-icon.ico", "LICENSE", "README.markdown"])] + [(p, [p + "/dotstr_edit.mo"]) for p in ["locale/%s/LC_MESSAGES" % l for l in languages]], + options={ + "py2exe": { + "optimize": 2, + "excludes": ["pywin", "pywin.debugger", "pywin.debugger.dbgcon", + "pywin.dialogs", "pywin.dialogs.list", + "Tkconstants","Tkinter","tcl", "_ssl", "doctest", "pdb", "unittest", "difflib", "inspect", "wave", "xml", "email", "urllib", "urllib2" + ], + "includes": ["zlib"], # So the resulting program is able tu unpack the library, even after recompressing. + "dll_excludes": ["MSVCP90.dll"], + "bundle_files": 2 + } + } +) |