V45.34: ban cai phai SACH - engine.spec loai dev config (DB/.secret_key/plugin_dirs.json/sf_scan_state.json) khoi bundle; build_install.ps1 + build_windows.ps1 fail-fast neu dist dinh config dev (reset ve mac dinh cho nguoi dung moi)

This commit is contained in:
2026-09-01 11:31:10 +07:00
parent 4713f8a8a1
commit 1932467539
3 changed files with 28 additions and 2 deletions
+7 -1
View File
@@ -42,7 +42,13 @@ if _SPEC_ROOT not in _sys.path:
# Assets cua app: bundle QUA IMPORT SYSTEM (collect_data_files) — an toan nhat.
# Loai tru storage (57MB soundfonts/uploads — vo ich, config.py da chuyen
# storage sang %APPDATA%\\SonicForgeDAW khi frozen) va __pycache__.
datas = collect_data_files('app', excludes=['**/storage/**', '**/__pycache__/**', '**/*.pyc'])
# LOAI CA DEV CONFIG O app/ ROOT: bundle cai dat phai SAC — khong duoc mang
# theo DB/password/secret/scan-state cua dev sang may nguoi dung moi.
datas = collect_data_files('app', excludes=[
'**/storage/**', '**/__pycache__/**', '**/*.pyc',
'**/*.db', '**/.secret_key', '**/plugin_dirs.json', '**/sf_scan_state.json',
'**/*.bak-root',
])
# Fallback cuoi cung: neu collect_data_files van tra ve rong (phong moi truong
# hop ky la), dung datas TINH absolute — tinh huong xau nhat van co du assets.
if not datas: