pub async fn download_and_extract_release(
release_type: ReleaseType,
url: Option<String>,
version: Option<String>,
release_repo: &dyn SafeReleaseRepoActions,
verbosity: VerbosityLevel,
download_dir_path: Option<PathBuf>,
) -> Result<(PathBuf, String)>
Expand description
Downloads and extracts a release binary to a temporary location.
If the URL is supplied, that will be downloaded and extracted, and the binary inside the archive will be used; if the version is supplied, a specific version will be downloaded and used; otherwise the latest version will be downloaded and used.