Skip to content

Commit

Permalink
Add a pysintaller .spec file for building Ice.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
scottrice committed Jan 29, 2016
1 parent 1cc2e64 commit ae96fbd
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 2 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ develop-eggs
.installed.cfg
lib
lib64
*.spec

# Coverage data
htmlcov/
Expand Down
38 changes: 38 additions & 0 deletions Ice.spec
Original file line number Diff line number Diff line change
@@ -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')
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ae96fbd

Please sign in to comment.