From f6647ef1833b55b2a02d14017841610a84df9c63 Mon Sep 17 00:00:00 2001 From: RemixDev Date: Fri, 12 Jun 2020 18:22:01 +0200 Subject: [PATCH] Added division between macOS and windows builds --- deemix_gui.spec | 66 +++++++++++++++++++++++++++++-------------------- 1 file changed, 39 insertions(+), 27 deletions(-) diff --git a/deemix_gui.spec b/deemix_gui.spec index 227b936..9fe39d2 100644 --- a/deemix_gui.spec +++ b/deemix_gui.spec @@ -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')