Files
SonicForgeStudio/engine.spec
T
2026-08-08 09:51:46 +07:00

85 lines
2.1 KiB
RPMSpec

# engine.spec — PyInstaller config (spec desktop 2026-08-08 — daw_engine.exe)
# -*- mode: python ; coding: utf-8 -*-
import sys
import os
from PyInstaller.utils.hooks import collect_dynamic_libs, collect_data_files
block_cipher = None
# Collect native DLL files for pedalboard and soundfile
binaries = collect_dynamic_libs('pedalboard')
binaries += collect_dynamic_libs('soundfile')
binaries += collect_dynamic_libs('fluidsynth')
# Collect configuration files and default soundfont catalogs
datas = [
('app/storage', 'app/storage'),
('app/static', 'app/static'),
('app/templates', 'app/templates'),
]
a = Analysis(
['main.py'],
pathex=[],
binaries=binaries,
datas=datas,
hiddenimports=[
'uvicorn.logging',
'uvicorn.loops',
'uvicorn.loops.auto',
'uvicorn.protocols',
'uvicorn.protocols.http',
'uvicorn.protocols.http.auto',
'uvicorn.protocols.websockets',
'uvicorn.protocols.websockets.auto',
'pedalboard',
'soundfile',
'sf2utils',
'mido.backends.rtmidi',
'app.main',
'app.config',
'app.api.v1.desktop_plugins',
'app.core.vst_scanner',
'app.core.soundfont_scanner',
# Celery dynamic imports (PyInstaller không bắt được — 2026-08-08)
'celery.fixups',
'celery.fixups.django',
'celery.backends',
'celery.backends.redis',
'celery.schedules',
'celery.app.builtins',
'kombu.transport.redis',
'billiard',
'vine',
'redis',
],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
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='daw_engine',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=False, # Set to True for Debugging, False for Production
)