2020-05-05 17:05:54 +00:00
|
|
|
# -*- mode: python ; coding: utf-8 -*-
|
2020-05-25 14:56:58 +00:00
|
|
|
import deemix
|
2020-05-26 10:49:48 +00:00
|
|
|
import sys
|
2020-05-25 14:56:58 +00:00
|
|
|
from os.path import dirname
|
2020-05-05 17:05:54 +00:00
|
|
|
|
|
|
|
block_cipher = None
|
|
|
|
|
2020-05-26 10:49:48 +00:00
|
|
|
sys.modules['FixTk'] = None
|
|
|
|
|
2020-05-05 17:05:54 +00:00
|
|
|
a = Analysis(['server.py'],
|
|
|
|
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-05 17:05:54 +00:00
|
|
|
hiddenimports=['engineio.async_drivers.threading', 'pkg_resources.py2_warn'],
|
|
|
|
hookspath=[],
|
|
|
|
runtime_hooks=[],
|
2020-05-26 10:49:48 +00:00
|
|
|
excludes=['FixTk', 'tcl', 'tk', '_tkinter', 'tkinter', 'Tkinter'],
|
2020-05-05 17:05:54 +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)
|
|
|
|
exe = EXE(pyz,
|
|
|
|
a.scripts,
|
|
|
|
[],
|
|
|
|
exclude_binaries=True,
|
|
|
|
name='deemix_webui',
|
|
|
|
debug=False,
|
|
|
|
bootloader_ignore_signals=False,
|
|
|
|
strip=False,
|
|
|
|
upx=True,
|
|
|
|
console=True )
|
|
|
|
coll = COLLECT(exe,
|
|
|
|
a.binaries,
|
|
|
|
a.zipfiles,
|
|
|
|
a.datas,
|
|
|
|
strip=False,
|
|
|
|
upx=True,
|
|
|
|
upx_exclude=[],
|
|
|
|
name='server')
|