Skip to main content

tauri_plugin_hdiff_update/
lib.rs

1//! Tauri v2 plugin for signed HDiffPatch differential installer updates.
2
3use 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::prepare_with_cached_installer,
18            commands::download_and_install,
19            commands::try_install_with_cached_installer,
20            commands::run_installer,
21        ])
22        .build()
23}