fn main() {
// Skip tauri_build during cargo publish verification to avoid modifying the
// source directory outside of OUT_DIR. The gen/schemas directory is pre-generated
// and included in the published crate.
if std::env::var("TAURI_ENV").is_err()
&& std::path::Path::new("gen/schemas/desktop-schema.json").exists()
{
return;
}
tauri_build::build()
}