build.rs
Language Rust1.2 KB52 lines
// Every app command is declared here, which makes each one need an explicit// permission: the quick window's capability grants only the few it uses.const COMMANDS: &[&str] = &["app_info","window_ready","show_main","list_providers","save_provider","delete_provider","set_api_key","clear_api_key","has_api_key","list_models","refresh_models","list_conversations","get_conversation","create_conversation","rename_conversation","set_pinned","set_archived","delete_conversation","set_conversation_model","set_system_prompt","send_message","cancel_stream","truncate_from","estimate_prompt","search","spend_summary","usage_report","list_presets","save_preset","delete_preset","get_settings","save_settings","pick_attachments","attach_bytes","attachment_bytes","discard_attachment","export_conversation","choose_vault_folder","quick_open_in_main","hide_quick","resize_quick",];fn main() {tauri_build::try_build(tauri_build::Attributes::new().app_manifest(tauri_build::AppManifest::new().commands(COMMANDS)),).expect("tauri build script");}