36 lines
1.1 KiB
Rust
36 lines
1.1 KiB
Rust
mod commands;
|
|
|
|
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
|
pub fn run() {
|
|
tauri::Builder::default()
|
|
.plugin(tauri_plugin_fs::init())
|
|
.plugin(tauri_plugin_dialog::init())
|
|
.plugin(tauri_plugin_shell::init())
|
|
.setup(|app| {
|
|
if cfg!(debug_assertions) {
|
|
app.handle().plugin(
|
|
tauri_plugin_log::Builder::default()
|
|
.level(log::LevelFilter::Warn) // Reduce log level to reduce noise
|
|
.filter(|metadata| {
|
|
// Filter out tao event loop warnings
|
|
!metadata.target().contains("tao::platform_impl::platform::event_loop")
|
|
})
|
|
.build(),
|
|
)?;
|
|
}
|
|
Ok(())
|
|
})
|
|
.invoke_handler(tauri::generate_handler![
|
|
commands::greet,
|
|
commands::process_video,
|
|
commands::analyze_audio,
|
|
commands::get_project_info,
|
|
commands::save_project,
|
|
commands::load_project,
|
|
commands::generate_ai_video,
|
|
commands::batch_generate_ai_videos
|
|
])
|
|
.run(tauri::generate_context!())
|
|
.expect("error while running tauri application");
|
|
}
|