feat(app): add plugin (#345)

This commit is contained in:
Lucas Fernandes Nogueira
2023-05-08 08:55:50 -07:00
committed by GitHub
parent 02754f527c
commit bcb42b7343
19 changed files with 542 additions and 104 deletions
+18
View File
@@ -0,0 +1,18 @@
use tauri::{
plugin::{Builder, TauriPlugin},
Runtime,
};
mod commands;
pub fn init<R: Runtime>() -> TauriPlugin<R> {
Builder::new("app")
.invoke_handler(tauri::generate_handler![
commands::version,
commands::name,
commands::tauri_version,
commands::show,
commands::hide
])
.build()
}