d:\develop\sqlitevector (Repo Root)d:\develop\sqlitevector\build_assets_tmp\src-tauri/target/debug/app.exe is run, but CWD is often src-tauri or Repo Root depending on launch config.bin/llama-server.exe (or build_assets_tmp/llama-server.exe if prepared)Based on target/release/bundle structure:
%ProgramFiles%\sqlitevector\sqlitevector.exeresources\ (Tauri flattens resources config here)
tauri.conf.json config: "resources": ["../../build_assets_tmp/**/*"]mcp.json -> resources/mcp.json (Directly under resources)config.json -> resources/config.jsonmodels/ -> resources/models/vec0.dll, llama.dll -> resources/vec0.dll, resources/llama.dllllama-server-x86_64-pc-windows-msvc.exe (placed next to main exe or in resources depending on externalBin usage)
tauri.conf.json: "externalBin": ["../../bin/llama-server"]resource_dir().join("build_assets_tmp").join("mcp.json")resource_dir().join("mcp.json")Tauri's resources option copies the contents of the specified directory if it ends in /**/*, or preserves structure otherwise.
["../../build_assets_tmp/**/*"]build_assets_tmp and put it at the root of the app's resources folder."We must support both structures:
RepoRoot/build_assets_tmp/mcp.jsonApp/resources/mcp.json (Flat)We should NOT try to force build_assets_tmp folder creation inside resources in Release mode, as flattening is standard Tauri behavior for top-level resource inclusion. Instead, lib.rs should be smart enough to check both.