build: bundle native_host bridges + fluidsynth runtime vao installer (build_windows.ps1 [4b/6], SF_RESOURCE_DIR fallback, tauri resources native_host)

This commit is contained in:
2026-08-11 18:48:06 +07:00
parent 94dc7dcf12
commit 916ce1334b
8 changed files with 45 additions and 4 deletions
+6 -2
View File
@@ -23,8 +23,12 @@ import numpy as np
from app.config import settings
_NATIVE_DIR = os.getenv("SONICFORGE_NATIVE_DIR") or os.path.join(
settings.BASE_DIR, "native_host", "build", "Release")
_RES_DIR = os.getenv("SF_RESOURCE_DIR")
_NATIVE_DIR = (
os.getenv("SONICFORGE_NATIVE_DIR")
or (os.path.join(_RES_DIR, "native_host") if _RES_DIR else None)
or os.path.join(settings.BASE_DIR, "native_host", "build", "Release")
)
_ERR = None
_LOCK = threading.Lock()