Files
tolaria/src-tauri/build.rs
lucaronin a22fd73c3b fix: resolve clippy single-element-loop in build.rs
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 16:20:23 +01:00

12 lines
444 B
Rust

fn main() {
// Ensure resource directory exists for the Tauri build.
// Gitignored and populated by bundle-mcp-server.mjs.
// Without a placeholder, `tauri build` / `cargo test` fails if the script hasn't run.
let path = std::path::Path::new("resources/mcp-server");
if !path.exists() {
std::fs::create_dir_all(path).ok();
std::fs::write(path.join(".placeholder"), "").ok();
}
tauri_build::build()
}