const COMMANDS: &[&str] = &[
"hotswap_check",
"hotswap_apply",
"hotswap_download",
"hotswap_activate",
"hotswap_rollback",
"hotswap_current_version",
"hotswap_notify_ready",
"hotswap_configure",
"hotswap_get_config",
];
fn main() {
// `cargo publish` verifies a packaged copy under `target/package/...`.
// The tauri plugin builder writes autogenerated permission files into
// the source tree, which is forbidden during package verification.
// Skip regeneration in that context and rely on committed files.
if let Ok(manifest_dir) = std::env::var("CARGO_MANIFEST_DIR") {
if manifest_dir.contains("/target/package/") || manifest_dir.contains("\\target\\package\\")
{
return;
}
}
tauri_plugin::Builder::new(COMMANDS).build();
}