use tauri::{
plugin::{Builder as PluginBuilder, TauriPlugin},
Runtime,
};
mod commands;
pub fn init<R: Runtime>() -> TauriPlugin<R> {
PluginBuilder::new("hdiff-update")
.invoke_handler(tauri::generate_handler![
commands::artifact_sha256,
commands::create_patch,
commands::apply_patch,
commands::download_and_apply,
commands::prepare_with_cached_installer,
commands::download_and_install,
commands::try_install_with_cached_installer,
commands::run_installer,
])
.build()
}