mirror of
https://gitlab.com/RemixDev/deemix-gui-pyweb.git
synced 2024-12-29 10:56:06 +00:00
6017c9e96f
.spec files now create a single app file as well macOS GUI works without issues with the master version of pywebview, so need to wait for the next release, or change the requirements to the git version
50 lines
1.5 KiB
Python
50 lines
1.5 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_gui.py'],
|
|
binaries=[],
|
|
datas=[('webui/public', 'webui/public'), (f'{dirname(deemix.__file__)}/app/default.json','deemix/app')],
|
|
hiddenimports=['engineio.async_drivers.threading', 'pkg_resources.py2_warn'],
|
|
hookspath=[],
|
|
runtime_hooks=[],
|
|
excludes=['FixTk', 'tcl', 'tk', '_tkinter', 'tkinter', 'Tkinter'],
|
|
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,
|
|
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=False,
|
|
icon=f"icon.{'icns' if sys.platform.startswith('darwin') else 'ico'}" )
|
|
app = BUNDLE(exe,
|
|
name='deemix_gui.app',
|
|
icon="icon.icns",
|
|
bundle_identifier=None)
|
|
coll = COLLECT(exe,
|
|
a.binaries,
|
|
a.zipfiles,
|
|
a.datas,
|
|
strip=False,
|
|
upx=True,
|
|
upx_exclude=[],
|
|
name='deemix_gui')
|