tauri_plugin_hdiff_update/
lib.rs1use tauri::{
4 plugin::{Builder as PluginBuilder, TauriPlugin},
5 Runtime,
6};
7
8mod commands;
9
10pub fn init<R: Runtime>() -> TauriPlugin<R> {
11 PluginBuilder::new("hdiff-update")
12 .invoke_handler(tauri::generate_handler![
13 commands::artifact_sha256,
14 commands::create_patch,
15 commands::apply_patch,
16 commands::download_and_apply,
17 commands::download_and_install,
18 commands::try_install_with_cached_installer,
19 commands::run_installer,
20 ])
21 .build()
22}