Function tauri::updater::builder

source ·
pub fn builder<R: Runtime>(handle: AppHandle<R>) -> UpdateBuilder<R>
Available on crate feature updater only.
Expand description

Initializes the UpdateBuilder using the app configuration.

Examples found in repository?
src/updater/mod.rs (line 827)
821
822
823
824
825
826
827
828
829
830
pub(crate) fn listener<R: Runtime>(handle: AppHandle<R>) {
  // Wait to receive the event `"tauri://update"`
  let handle_ = handle.clone();
  handle.listen_global(EVENT_CHECK_UPDATE, move |_msg| {
    let handle_ = handle_.clone();
    crate::async_runtime::spawn(async move {
      let _ = builder(handle_.clone()).check().await;
    });
  });
}