Generate both standalone EXE and a folder with files

This commit is contained in:
ValdikSS 2019-09-18 18:56:01 +03:00
parent 311e8719bf
commit a49ca073d0

View File

@ -33,7 +33,8 @@ a = Analysis(['blockcheck.py'],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher)
cipher=block_cipher,
noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
@ -65,6 +66,25 @@ exe = EXE(pyz,
upx=True,
console=False )
exe_folder = EXE(pyz,
a.scripts,
[],
name='blockcheck_folder',
exclude_binaries=True,
debug=False,
strip=False,
upx=True,
console=False )
coll = COLLECT(exe_folder,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='blockcheck')
if sys_os == 'darwin':
app = BUNDLE(exe,
name='blockcheck.app',