- updated compile batch for linux and windows

This commit is contained in:
Barak Hoffer 2015-09-29 17:50:22 +03:00
parent 7597ac7100
commit fe6a3e46d9
6 changed files with 54 additions and 4 deletions

View File

@ -0,0 +1,2 @@
#!/bin/bash
pyinstaller monkey-linux.spec

View File

@ -1 +0,0 @@
c:\Python27\python -m PyInstaller.main --name monkey -F -y --clean -i monkey.ico main.py

View File

@ -1,3 +0,0 @@
c:\Python27\python -m PyInstaller.main --name monkey -F -y --clean -i monkey.ico main.py
move /Y dist\monkey.exe "%allusersprofile%\desktop\monkey.exe"
"%allusersprofile%\desktop\monkey.exe" m0nk3y

View File

@ -0,0 +1,2 @@
REM c:\Python27\python -m PyInstaller.main --name monkey -F -y --clean -i monkey.ico main.py
c:\python27\Scripts\pyi-build.exe --upx-dir=.\bin monkey.spec

View File

@ -0,0 +1,28 @@
# -*- mode: python -*-
block_cipher = None
a = Analysis(['main.py'],
pathex=['.'],
binaries=None,
datas=None,
hiddenimports=[],
hookspath=None,
runtime_hooks=None,
excludes=None,
win_no_prefer_redirects=None,
win_private_assemblies=None,
cipher=block_cipher)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='monkey',
debug=False,
strip=True,
upx=True,
console=True )

22
chaos_monkey/monkey.spec Normal file
View File

@ -0,0 +1,22 @@
# -*- mode: python -*-
import platform
a = Analysis(['main.py'],
pathex=['.'],
hiddenimports=[],
hookspath=None,
runtime_hooks=None)
if platform.system().find("Windows")>= 0:
a.datas = [i for i in a.datas if i[0].find('Include') < 0]
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='monkey.exe',
debug=False,
strip=None,
upx=True,
console=True , icon='monkey.ico')