2026-09-21 10:45:53 -04:00
|
|
|
mod commands;
|
|
|
|
|
mod models;
|
|
|
|
|
mod services;
|
|
|
|
|
|
2026-09-21 11:10:20 -04:00
|
|
|
use commands::{dependencies, media_analysis, video};
|
2026-09-21 10:50:24 -04:00
|
|
|
|
2026-09-21 10:45:53 -04:00
|
|
|
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
|
|
|
|
pub fn run() {
|
|
|
|
|
tauri::Builder::default()
|
|
|
|
|
.plugin(tauri_plugin_shell::init())
|
|
|
|
|
.plugin(tauri_plugin_dialog::init())
|
|
|
|
|
.plugin(tauri_plugin_store::Builder::new().build())
|
|
|
|
|
.plugin(tauri_plugin_process::init())
|
2026-09-21 10:50:24 -04:00
|
|
|
.invoke_handler(tauri::generate_handler![
|
|
|
|
|
dependencies::check_dependencies,
|
|
|
|
|
dependencies::install_dependency,
|
2026-09-21 10:57:43 -04:00
|
|
|
video::resolve_url,
|
2026-09-21 11:00:46 -04:00
|
|
|
video::start_download,
|
2026-09-21 11:10:20 -04:00
|
|
|
media_analysis::extract_keyframes,
|
2026-09-21 11:12:36 -04:00
|
|
|
media_analysis::extract_waveform,
|
2026-09-21 11:16:10 -04:00
|
|
|
media_analysis::extract_thumbnails,
|
2026-09-21 11:18:14 -04:00
|
|
|
media_analysis::cleanup_thumbnails,
|
2026-09-21 10:50:24 -04:00
|
|
|
])
|
2026-09-21 10:45:53 -04:00
|
|
|
.run(tauri::generate_context!())
|
|
|
|
|
.expect("error while running tauri application");
|
|
|
|
|
}
|