mirror of
https://github.com/tinyhumansai/openhuman.git
synced 2026-07-27 20:46:24 +00:00
22 lines
556 B
Rust
22 lines
556 B
Rust
// Standard Tauri v2 plugin build script.
|
|
// Generates iOS Swift package metadata consumed by `tauri-plugin`.
|
|
const COMMANDS: &[&str] = &[
|
|
"start_listening",
|
|
"stop_listening",
|
|
"speak",
|
|
"cancel_speech",
|
|
"list_voices",
|
|
];
|
|
|
|
fn main() {
|
|
std::env::set_var(
|
|
"IPHONEOS_DEPLOYMENT_TARGET",
|
|
std::env::var("IPHONEOS_DEPLOYMENT_TARGET").unwrap_or_else(|_| "16.0".to_string()),
|
|
);
|
|
|
|
tauri_plugin::Builder::new(COMMANDS)
|
|
.ios_path("ios")
|
|
.try_build()
|
|
.expect("failed to run tauri-plugin build");
|
|
}
|