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
+5 -1
View File
@@ -11,7 +11,11 @@ def _ensure_fluidsynth_runtime() -> None:
if os.name != "nt":
return
root = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
candidates = [
candidates = []
res_dir = os.getenv("SF_RESOURCE_DIR")
if res_dir:
candidates.append(os.path.join(res_dir, "native_host", "fluidsynth_runtime"))
candidates += [
os.path.join(root, "native_host", "build", "Release", "fluidsynth_runtime"),
os.path.join(root, "native_host", "fluidsynth_runtime"),
]