Added division between macOS and windows builds

This commit is contained in:
RemixDev 2020-06-12 18:22:01 +02:00
parent 6017c9e96f
commit f6647ef183

View file

@ -20,30 +20,42 @@ a = Analysis(['deemix_gui.py'],
noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='deemix_gui',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=False,
icon=f"icon.{'icns' if sys.platform.startswith('darwin') else 'ico'}" )
app = BUNDLE(exe,
name='deemix_gui.app',
icon="icon.icns",
bundle_identifier=None)
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='deemix_gui')
if sys.platform.startswith('darwin'):
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='deemix_gui',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
icon=f"icon.icns")
app = BUNDLE(exe,
name='deemix_gui.app',
icon="icon.icns",
bundle_identifier=None)
else:
exe = EXE(pyz,
a.scripts,
[],
name='deemix_gui',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=True,
icon=f"icon.ico")
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='deemix_gui')