Function ajour_core::utility::download_update_to_temp_file [−][src]
pub async fn download_update_to_temp_file(
bin_name: String,
release: Release
) -> Result<(PathBuf, PathBuf), DownloadError>
Downloads the latest release file that matches bin_name
, renames the current
executable to a temp path, renames the new version as the original file name,
then returns both the original file name (new version) and temp path (old version)