Added console option in deemix-pyweb.spec

This commit is contained in:
RemixDev 2020-09-28 13:14:05 +02:00
parent bc3d692417
commit e538d56fc0

View file

@ -13,6 +13,8 @@ block_cipher = None
sys.modules['FixTk'] = None sys.modules['FixTk'] = None
debug = '-c' in sys.argv or '--console' in sys.argv
a = Analysis(['deemix-pyweb.py'], a = Analysis(['deemix-pyweb.py'],
binaries=[], binaries=[],
datas=[('webui/public', 'webui'), ('icon.ico', '.'), ('version.txt', '.')], datas=[('webui/public', 'webui'), ('icon.ico', '.'), ('version.txt', '.')],
@ -36,7 +38,7 @@ if sys.platform.startswith('darwin'):
bootloader_ignore_signals=False, bootloader_ignore_signals=False,
strip=False, strip=False,
upx=True, upx=True,
console=False, console=debug,
icon="icon.icns") icon="icon.icns")
coll = COLLECT(exe, coll = COLLECT(exe,
a.binaries, a.binaries,
@ -64,7 +66,7 @@ elif '--onefile' in sys.argv or '-F' in sys.argv:
upx=True, upx=True,
upx_exclude=[], upx_exclude=[],
runtime_tmpdir=None, runtime_tmpdir=None,
console=False , icon='icon.ico') console=debug , icon='icon.ico')
else: else:
exe = EXE(pyz, exe = EXE(pyz,
a.scripts, a.scripts,
@ -75,7 +77,7 @@ else:
bootloader_ignore_signals=False, bootloader_ignore_signals=False,
strip=False, strip=False,
upx=True, upx=True,
console=False, console=debug,
icon="icon.ico") icon="icon.ico")
coll = COLLECT(exe, coll = COLLECT(exe,
a.binaries, a.binaries,