2020-05-15 15:58:27 +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-15 15:58:27 +00:00
|
|
|
|
|
|
|
block_cipher = None
|
|
|
|
|
2020-05-26 10:49:48 +00:00
|
|
|
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-08-16 10:52:07 +00:00
|
|
|
datas=[('webui/public', 'webui/public')],
|
2020-05-15 15:58:27 +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-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)
|
2020-06-12 16:22:01 +00:00
|
|
|
if sys.platform.startswith('darwin'):
|
|
|
|
exe = EXE(pyz,
|
|
|
|
a.scripts,
|
|
|
|
a.binaries,
|
|
|
|
a.zipfiles,
|
|
|
|
a.datas,
|
|
|
|
[],
|
2020-08-22 12:06:59 +00:00
|
|
|
name='deemix-pyweb',
|
2020-06-12 16:22:01 +00:00
|
|
|
debug=False,
|
|
|
|
bootloader_ignore_signals=False,
|
|
|
|
strip=False,
|
|
|
|
upx=True,
|
|
|
|
upx_exclude=[],
|
|
|
|
runtime_tmpdir=None,
|
2020-07-01 14:36:22 +00:00
|
|
|
console=False,
|
2020-06-12 16:22:01 +00:00
|
|
|
icon=f"icon.icns")
|
|
|
|
app = BUNDLE(exe,
|
2020-08-22 12:06:59 +00:00
|
|
|
name='deemix-pyweb.app',
|
2020-06-12 16:22:01 +00:00
|
|
|
icon="icon.icns",
|
|
|
|
bundle_identifier=None)
|
|
|
|
else:
|
|
|
|
exe = EXE(pyz,
|
|
|
|
a.scripts,
|
|
|
|
[],
|
2020-06-12 16:23:33 +00:00
|
|
|
exclude_binaries=True,
|
2020-08-22 12:06:59 +00:00
|
|
|
name='deemix-pyweb',
|
2020-06-12 16:22:01 +00:00
|
|
|
debug=False,
|
|
|
|
bootloader_ignore_signals=False,
|
|
|
|
strip=False,
|
|
|
|
upx=True,
|
2020-07-01 14:36:22 +00:00
|
|
|
console=False,
|
2020-06-12 16:22:01 +00:00
|
|
|
icon=f"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')
|