deemix-gui-pyweb/deemix-pyweb.spec

80 lines
2.4 KiB
RPMSpec
Raw Normal View History

2020-05-15 15:58:27 +00:00
# -*- mode: python ; coding: utf-8 -*-
import sys
2020-05-15 15:58:27 +00:00
block_cipher = None
sys.modules['FixTk'] = None
2020-05-15 15:58:27 +00:00
2020-08-22 12:06:59 +00:00
a = Analysis(['deemix-pyweb.py'],
2020-05-15 15:58:27 +00:00
binaries=[],
2020-09-08 11:40:48 +00:00
datas=[('webui/public', 'webui'), ('icon.ico', '.')],
2020-05-15 15:58:27 +00:00
hiddenimports=['engineio.async_drivers.threading', 'pkg_resources.py2_warn'],
hookspath=[],
runtime_hooks=[],
2020-08-26 19:21:10 +00:00
excludes=['FixTk', 'tcl', 'tk', '_tkinter', 'tkinter', 'Tkinter', 'mkl', 'whl'],
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,
[],
2020-08-27 12:34:39 +00:00
exclude_binaries=True,
2020-08-22 12:06:59 +00:00
name='deemix-pyweb',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=False,
icon="icon.icns")
2020-08-27 12:34:39 +00:00
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='deemix-pyweb')
app = BUNDLE(coll,
2020-08-22 12:06:59 +00:00
name='deemix-pyweb.app',
icon="icon.icns",
bundle_identifier=None)
elif '--onefile' in sys.argv or '-F' in sys.argv:
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='deemix-pyweb',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=False , icon='icon.ico')
else:
exe = EXE(pyz,
a.scripts,
[],
exclude_binaries=True,
2020-08-22 12:06:59 +00:00
name='deemix-pyweb',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=False,
icon="icon.ico")
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
2020-08-22 12:06:59 +00:00
name='deemix-pyweb')