deemix-gui-pyweb/deemix-pyweb.spec
2020-09-06 02:27:37 +02:00

67 lines
2 KiB
Python

# -*- mode: python ; coding: utf-8 -*-
import deemix
import sys
from os.path import dirname
block_cipher = None
sys.modules['FixTk'] = None
a = Analysis(['deemix-pyweb.py'],
binaries=[],
datas=[('webui/public', 'webui/public'), ('icon.ico', '.')],
hiddenimports=['engineio.async_drivers.threading', 'pkg_resources.py2_warn'],
hookspath=[],
runtime_hooks=[],
excludes=['FixTk', 'tcl', 'tk', '_tkinter', 'tkinter', 'Tkinter', 'mkl', 'whl'],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
if sys.platform.startswith('darwin'):
exe = EXE(pyz,
a.scripts,
[],
exclude_binaries=True,
name='deemix-pyweb',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=False,
icon=f"icon.icns")
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='deemix-pyweb')
app = BUNDLE(coll,
name='deemix-pyweb.app',
icon="icon.icns",
bundle_identifier=None)
else:
exe = EXE(pyz,
a.scripts,
[],
exclude_binaries=True,
name='deemix-pyweb',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=False,
icon=f"icon.ico")
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='deemix-pyweb')