70 lines
2.0 KiB
Rust
70 lines
2.0 KiB
Rust
const APP_COMMANDS: &[&str] = &[
|
||
"api_request",
|
||
"get_software_info",
|
||
"sync_auth_session",
|
||
"get_app_config",
|
||
"get_app_config_last_message",
|
||
"get_server_app_config",
|
||
"get_app_config_detail",
|
||
"list_local_app_config",
|
||
"set_local_app_config",
|
||
"delete_local_app_config",
|
||
"run_quickjs_script",
|
||
"run_quickjs_script_source",
|
||
"list_quickjs_scripts",
|
||
"run_nodejs_script",
|
||
"run_nodejs_script_source",
|
||
"list_nodejs_scripts",
|
||
"run_python_script",
|
||
"run_python_script_source",
|
||
"list_python_scripts",
|
||
"stop_python_script",
|
||
"read_local_file_base64",
|
||
"write_local_file_base64",
|
||
"get_media_duration_seconds",
|
||
"copy_local_file",
|
||
"write_local_text_file",
|
||
"temp_voice_reference_path",
|
||
"stage_voice_reference_audio",
|
||
"import_voice_clone_reference",
|
||
"reveal_local_file_in_folder",
|
||
"stop_nodejs_script",
|
||
"list_avatars",
|
||
"insert_avatar",
|
||
"update_avatar_name",
|
||
"delete_avatar",
|
||
"avatar_name_exists",
|
||
"import_avatar_video",
|
||
"list_materials",
|
||
"update_material_name",
|
||
"delete_material",
|
||
"import_material_files",
|
||
"update_generated_audio_name",
|
||
"list_asr_history",
|
||
"delete_asr_history",
|
||
"update_asr_history_name",
|
||
"transcribe_media_file",
|
||
"list_generated_audios",
|
||
"insert_generated_audio",
|
||
"delete_generated_audio",
|
||
"list_generated_videos",
|
||
"insert_generated_video",
|
||
"import_generated_video",
|
||
"delete_generated_video",
|
||
"publish_list_accounts",
|
||
"publish_login",
|
||
"publish_check_login",
|
||
"publish_execute",
|
||
"publish_delete_account",
|
||
];
|
||
|
||
fn main() {
|
||
// 勿再用 winres:tauri-build 已写入 VERSION 资源,重复会导致 LNK1123 / CVT1100。
|
||
// 本地版本比对优先读同目录 aiclient.version(见 zip-portable.cjs、updater engine)。
|
||
tauri_build::try_build(
|
||
tauri_build::Attributes::new()
|
||
.app_manifest(tauri_build::AppManifest::new().commands(APP_COMMANDS)),
|
||
)
|
||
.expect("failed to run tauri build script");
|
||
}
|