🎉 创世提交
This commit is contained in:
24
src-tauri/src/lib.rs
Normal file
24
src-tauri/src/lib.rs
Normal 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");
|
||||
}
|
||||
Reference in New Issue
Block a user