mirror of
https://github.com/Drop-OSS/drop
synced 2026-08-27 14:23:05 -04:00
24 lines
579 B
Rust
24 lines
579 B
Rust
mod unpacker;
|
|
|
|
use tauri::Runtime;
|
|
use unpacker::unpack;
|
|
|
|
#[tauri::command]
|
|
async fn unpack_debug<R: Runtime>(
|
|
app: tauri::AppHandle<R>,
|
|
window: tauri::Window<R>,
|
|
) -> Result<String, String> {
|
|
|
|
unpack().unwrap();
|
|
|
|
return Ok("Successful".to_string());
|
|
}
|
|
|
|
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
|
pub fn run() {
|
|
tauri::Builder::default()
|
|
.plugin(tauri_plugin_shell::init())
|
|
.invoke_handler(tauri::generate_handler![unpack_debug])
|
|
.run(tauri::generate_context!())
|
|
.expect("error while running tauri application");
|
|
}
|