Upload files to "/"

This commit is contained in:
2025-12-22 15:13:52 +00:00
parent 6015ca963f
commit 0e53a7b269
264 changed files with 24582 additions and 3 deletions

27
lib.rs Normal file
View File

@@ -0,0 +1,27 @@
use tauri::Manager;
mod commands;
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
tauri::Builder::default()
.setup(|app| {
let version = app
.config()
.version
.clone()
.unwrap_or_else(|| "".to_string());
let title = format!("Angel C2 - v{}", version);
let window = app.get_webview_window("main").unwrap();
window.set_title(&title).unwrap();
Ok(())
})
.plugin(tauri_plugin_shell::init())
.invoke_handler(tauri::generate_handler![
commands::validate_username,
commands::validate_license,
commands::get_app_version,
])
.run(tauri::generate_context!())
.expect("error while running tauri application");
}