summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2011-10-16 00:22:10 +0200
committerKevin Chabowski <kevin@kch42.de>2011-10-16 00:22:10 +0200
commitcb9a825cc50cb2be2f6851fd8af92aba706a3286 (patch)
tree2da710c0746d838fdedc89553ccbce98470eae47
parente41035ecfc0ac515b3c790625ea1c946b878b46e (diff)
downloadmcanimalfix-cb9a825cc50cb2be2f6851fd8af92aba706a3286.tar.gz
mcanimalfix-cb9a825cc50cb2be2f6851fd8af92aba706a3286.tar.bz2
mcanimalfix-cb9a825cc50cb2be2f6851fd8af92aba706a3286.zip
Exefying scripts added and README renamed.
-rw-r--r--README.markdown (renamed from README)8
-rwxr-xr-x[-rw-r--r--]animalfix.py0
-rw-r--r--exefying.bat18
-rw-r--r--mkexe.py26
4 files changed, 49 insertions, 3 deletions
diff --git a/README b/README.markdown
index e2ef448..59e4694 100644
--- a/README
+++ b/README.markdown
@@ -28,10 +28,12 @@ Usage
Launch `animalfix.py`, select the directory of your Minecraft map and click "Lets do it!".
Then you have to wait quite a long time. My map is ~ 50 MiB large and it took about 15 minutes to fix it (running on Fedora 14 with an Phenom II X4 965).
-Todo / Wishlist
----------------
+EXE version for Windows
+-----------------------
-* An "exefied" (you can not call this compiling for Python scripts IMHO...) version for Windows to make it easier for Windows users.
+There is an EXE file for Windows (32-bit, should also work on 64-bit), so you do not have to download Python and tons of other software.
+Just unzip the archive and execute mcanimalfix.exe.
+Download: <https://github.com/downloads/kch42/mcanimalfix/mcanimalfix_win32.zip>
License
-------
diff --git a/animalfix.py b/animalfix.py
index 020ac71..020ac71 100644..100755
--- a/animalfix.py
+++ b/animalfix.py
diff --git a/exefying.bat b/exefying.bat
new file mode 100644
index 0000000..2e84720
--- /dev/null
+++ b/exefying.bat
@@ -0,0 +1,18 @@
+@echo off
+REM Exefying the script...
+
+python.exe -OO mkexe.py py2exe
+
+REM Uncomment next line, if you do not want to compress...
+REM goto end
+
+REM recompress the library
+cd dist\
+7z.exe -aoa x library.zip -olibrary\
+cd library\
+7z.exe a -tzip -mx9 ..\library.zip -r
+cd ..
+rd library /s /q
+
+:end
+echo Done
diff --git a/mkexe.py b/mkexe.py
new file mode 100644
index 0000000..a4bdc00
--- /dev/null
+++ b/mkexe.py
@@ -0,0 +1,26 @@
+from distutils.core import setup
+import py2exe
+
+setup(
+ name="mcanimalfix",
+ version="1",
+ description="Place animals on your Minecraft map after they got lost during the 1.8 update.",
+ windows=[
+ {
+ "script": "animalfix.py"
+ }
+ ],
+ data_files=[("", ["README.markdown"])],
+ options={
+ "py2exe": {
+ "optimize": 2,
+ "excludes": ["pywin", "pywin.debugger", "pywin.debugger.dbgcon",
+ "pywin.dialogs", "pywin.dialogs.list",
+ "Tkconstants","Tkinter","tcl", "_ssl", "doctest", "pdb", "inspect", "wave", "email"
+ ],
+ "includes": ["zlib"], # So the resulting program is able tu unpack the library, even after recompressing.
+ "dll_excludes": ["MSVCP90.dll"],
+ "bundle_files": 2
+ }
+ }
+)