DownloadUpdate

Function DownloadUpdate 

Source
pub async fn DownloadUpdate(
    url: String,
    destination: String,
    checksum: Option<String>,
) -> Result<DownloadResultDTO, String>
Expand description

Command: Download Update

Downloads an application update from the specified URL. Delegates to Air’s download service.

§Arguments

  • app_handle - Tauri application handle
  • url - URL to download the update from
  • destination - Local destination path for the download
  • checksum - Optional SHA256 checksum for verification

§Returns

DownloadResultDTO with download status