From ae96fbd5d16facf39dcd77b0b6b90c51c75f821c Mon Sep 17 00:00:00 2001 From: Scott Rice Date: Thu, 28 Jan 2016 21:52:01 -0800 Subject: [PATCH] Add a pysintaller `.spec` file for building Ice. Pyinstaller is amazing, I dont know why I ever tried using py2exe. I could have saved myself a lot of headache. Anyway, the build process is now just `pyinstaller Ice.spec`, which is basically exactly the kind of build process I wanted. --- .gitignore | 1 - Ice.spec | 38 ++++++++++++++++++++++++++++++++++++++ requirements.txt | 2 +- 3 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 Ice.spec diff --git a/.gitignore b/.gitignore index a339209..1e6db02 100644 --- a/.gitignore +++ b/.gitignore @@ -31,7 +31,6 @@ develop-eggs .installed.cfg lib lib64 -*.spec # Coverage data htmlcov/ diff --git a/Ice.spec b/Ice.spec new file mode 100644 index 0000000..02387dc --- /dev/null +++ b/Ice.spec @@ -0,0 +1,38 @@ +# -*- mode: python -*- + +block_cipher = None + +df = [ + 'config.txt', + 'emulators.txt', + 'consoles.txt', +] + +a = Analysis(['ice\\__main__.py'], + pathex=['c:\\Users\\Scott\\Development\\Projects\\Ice\\ice'], + binaries=None, + datas=map(lambda f: (f, ''), df), + hiddenimports=[], + hookspath=[], + runtime_hooks=[], + excludes=[], + win_no_prefer_redirects=False, + win_private_assemblies=False, + cipher=block_cipher) +pyz = PYZ(a.pure, a.zipped_data, + cipher=block_cipher) +exe = EXE(pyz, + a.scripts, + exclude_binaries=True, + name='Ice', + debug=False, + strip=False, + upx=True, + console=True , icon='icon.ico') +coll = COLLECT(exe, + a.binaries, + a.zipfiles, + a.datas, + strip=False, + upx=True, + name='Ice') diff --git a/requirements.txt b/requirements.txt index bce6f93..ca71974 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ appdirs==1.2.0 pastebin==1.1.0 psutil==2.1.1 -pysteam==1.0.0-b2 +pysteam==1.0.0-beta2