Added windows build spec

master
Mark Qvist 2020-04-30 20:10:18 +02:00
parent ccaf4efc5e
commit ae76e9317d
1 changed files with 44 additions and 0 deletions

44
windows-build.spec 100644
View File

@ -0,0 +1,44 @@
# -- mode python ; coding utf-8 --
block_cipher = None
data_list = []
dscan = Tree('.public', prefix='public')
for tupl in dscan
s = tupl[1]
s = s[0s.rfind()]
nt = (tupl[0], s)
data_list.append(nt)
a = Analysis(['openmodemconfig.py'],
pathex=['.'],
binaries=[],
datas=data_list,
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
[],
exclude_binaries=True,
name='OpenModem Configuration',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=False )
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='openmodemconfig')