Merge pull request #138 from Amagah/fix/131-sidecar-resource-dir

Create the sidecar resource dir in build.rs so a fresh clone builds
This commit is contained in:
Rohit Prasad
2026-08-23 21:50:01 -07:00
committed by GitHub
+7
View File
@@ -1,3 +1,10 @@
fn main() {
// tauri-build validates every `bundle.resources` path on every build, dev included, but
// `binaries/sidecar` is only staged by the release scripts and `/binaries` is gitignored —
// so a fresh checkout died on `resource path 'binaries/sidecar' doesn't exist`. Dev needs no
// packaged server (`server_bin()` falls back to the venv) and empty resource dirs are
// skipped, so a placeholder is enough.
std::fs::create_dir_all("binaries/sidecar").expect("create the sidecar resource dir");
tauri_build::build()
}