deemix-gui-pyweb/deemix_gui.spec

62 lines
1.9 KiB
RPMSpec
Raw Normal View History

2020-05-15 15:58:27 +00:00
# -*- mode: python ; coding: utf-8 -*-
2020-05-25 14:56:58 +00:00
import deemix
import sys
2020-05-25 14:56:58 +00:00
from os.path import dirname
2020-05-15 15:58:27 +00:00
block_cipher = None
sys.modules['FixTk'] = None
2020-05-15 15:58:27 +00:00
2020-05-15 16:01:04 +00:00
a = Analysis(['deemix_gui.py'],
2020-05-15 15:58:27 +00:00
binaries=[],
2020-05-25 17:15:06 +00:00
datas=[('webui/public', 'webui/public'), (f'{dirname(deemix.__file__)}/app/default.json','deemix/app')],
2020-05-15 15:58:27 +00:00
hiddenimports=['engineio.async_drivers.threading', 'pkg_resources.py2_warn'],
hookspath=[],
runtime_hooks=[],
excludes=['FixTk', 'tcl', 'tk', '_tkinter', 'tkinter', 'Tkinter'],
2020-05-15 15:58:27 +00:00
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,
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')