FEAT: cài đặt các thư viện để chuẩn bị build exe trên window
This commit is contained in:
+73
@@ -0,0 +1,73 @@
|
||||
# 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',
|
||||
],
|
||||
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
|
||||
)
|
||||
Reference in New Issue
Block a user