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:
@@ -138,6 +138,7 @@ pub fn run() {
|
||||
.shell()
|
||||
.command(&engine_exe)
|
||||
.env("SF_PARENT_PID", std::process::id().to_string())
|
||||
.env("SF_RESOURCE_DIR", res_dir.to_string_lossy().to_string())
|
||||
.spawn()
|
||||
{
|
||||
Ok((_rx, child)) => {
|
||||
|
||||
@@ -93,6 +93,7 @@ mod native {
|
||||
if let Ok(res) = app.path().resource_dir() {
|
||||
candidates.push(res.join(name));
|
||||
candidates.push(res.join("native").join(name));
|
||||
candidates.push(res.join("native_host").join(name));
|
||||
}
|
||||
if let Ok(exe) = std::env::current_exe() {
|
||||
if let Some(dir) = exe.parent() {
|
||||
|
||||
@@ -33,7 +33,8 @@
|
||||
"icons/favicon.ico"
|
||||
],
|
||||
"resources": {
|
||||
"resources/daw_engine": "daw_engine/"
|
||||
"resources/daw_engine": "daw_engine/",
|
||||
"resources/native_host": "native_host/"
|
||||
},
|
||||
"externalBin": [],
|
||||
"windows": {
|
||||
|
||||
Reference in New Issue
Block a user