🎉 创世提交

This commit is contained in:
柚子
2025-01-22 01:48:07 +08:00
commit 5d3481b9ea
92 changed files with 11705 additions and 0 deletions

24
src-tauri/src/lib.rs Normal file
View File

@@ -0,0 +1,24 @@
mod models;
mod handlers;
mod utils;
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
tauri::Builder::default()
.plugin(tauri_plugin_opener::init())
.plugin(tauri_plugin_clipboard_manager::init())
.invoke_handler(tauri::generate_handler![
handlers::category::get_all_categories,
handlers::category::get_category_apps,
handlers::category::get_all_apps,
handlers::server::get_target_arch_to_store,
handlers::server::get_json_server_url,
handlers::server::get_img_server_url,
handlers::app::get_app_info,
handlers::app::search_all_apps,
handlers::home::get_home_links,
utils::get_user_agent,
])
.run(tauri::generate_context!())
.expect("error while running tauri application");
}