mirror of
https://github.com/Drop-OSS/drop-app.git
synced 2026-07-24 08:53:18 +10:00
initial commit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
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");
|
||||
}
|
||||
Reference in New Issue
Block a user