feat: align motrix-style download UI/actions and stabilize aria2 ops

This commit is contained in:
tongki078
2026-02-24 12:00:30 +09:00
parent 845d5ca65c
commit 552f27c002
29 changed files with 2164 additions and 226 deletions

View File

@@ -1,14 +1,17 @@
mod engine;
use engine::{
aria2_add_torrent, aria2_add_uri, aria2_list_tasks, engine_start, engine_status, engine_stop,
load_torrent_file, EngineState,
aria2_add_torrent, aria2_add_uri, aria2_list_tasks, aria2_pause_all, aria2_pause_task,
aria2_remove_task, aria2_remove_task_record, aria2_resume_all, aria2_resume_task,
detect_aria2_binary, engine_start, engine_status, engine_stop, load_torrent_file,
open_path_in_file_manager, EngineState,
};
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
tauri::Builder::default()
.manage(EngineState::default())
.plugin(tauri_plugin_dialog::init())
.setup(|app| {
if cfg!(debug_assertions) {
app.handle().plugin(
@@ -23,10 +26,18 @@ pub fn run() {
engine_start,
engine_stop,
engine_status,
detect_aria2_binary,
aria2_add_torrent,
aria2_add_uri,
aria2_list_tasks,
load_torrent_file
aria2_pause_task,
aria2_resume_task,
aria2_remove_task,
aria2_remove_task_record,
aria2_pause_all,
aria2_resume_all,
load_torrent_file,
open_path_in_file_manager
])
.run(tauri::generate_context!())
.expect("error while running tauri application");