From 9996fe4532ffdd4e3b86be69ece02a8ce81886cd Mon Sep 17 00:00:00 2001 From: Will Toohey Date: Sat, 3 Mar 2018 20:00:59 +0100 Subject: [PATCH] v1.4, add exe build --- .gitignore | 1 + README.md | 12 ++++++++++-- ifstools_bin.py | 3 +++ setup.py | 2 +- 4 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 ifstools_bin.py diff --git a/.gitignore b/.gitignore index 3db853b..e57871b 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ __pycache__/ build/ dist/ ifstools.egg-info/ +venv/ diff --git a/README.md b/README.md index 5b2a8fa..22521f4 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,11 @@ Extractor for Konmai IFS files. - Dumps the ifs manifest so you can explore the format ## Install -Install Python, then: -`pip install ifstools` +Just want an exe? [Download the latest](https://github.com/mon/ifstools/releases). + +Have Python installed? Do this: +`pip install ifstools` +Then run `ifstools` from anywhere in a command prompt. ## Usage ``` @@ -45,6 +48,11 @@ optional arguments: contents ``` +## Build an exe +`pip install pyinstaller` +`pyinstaller ifstools_bin.py --onefile -n ifstools` +Recommend doing this in a fresh venv so the module finder doesn't include more than required. + Notes: - dxt5 texture repacking is not fully supported - they will silently be converted to argb8888rev diff --git a/ifstools_bin.py b/ifstools_bin.py new file mode 100644 index 0000000..53a75df --- /dev/null +++ b/ifstools_bin.py @@ -0,0 +1,3 @@ +from ifstools import ifstools + +ifstools.main() diff --git a/setup.py b/setup.py index 18d9c7b..7d52d05 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ requires = [ if sys.version_info < (3,0): requires.append('future') -version = '1.3' +version = '1.4' setup( name='ifstools', description='Extractor/repacker for Konmai IFS files',