@todesktop/tauri
v0.1.1
Published
The JavaScript API of tauri-plugin-todesktop: ToDesktop updates for Tauri apps
Readme
@todesktop/tauri
The JavaScript API of the tauri-plugin-todesktop crate: ToDesktop updates for
Tauri apps. Install both at the same version, the ToDesktop runtime version:
cd src-tauri && cargo add tauri-plugin-todesktop
npm install @todesktop/tauriRegister the plugin with tauri_plugin_todesktop::init() and allow
todesktop:default in a capability. Then:
import { updates, install, channels, health } from '@todesktop/tauri';
updates.subscribe((state) => console.log(state.status));The plugin follows the update policy in your todesktop.ts; this package
observes its state and calls its actions (check, download, restart,
installOnQuit, install.info, channels.join, health.ready). It needs
@tauri-apps/api 2.
