pub fn fetch_binary(
asset: &Asset,
bin_name: &str,
dir: &Path,
) -> Result<PathBuf>Expand description
Download asset into dir, unpack it, and return the path to bin_name.
Handles tarballs, zips and bare executables — the three shapes essentially every CLI ships. The download is authenticated for the same reason the listing is: a private repository’s assets are not publicly readable, and failing here after listing succeeded would skip every release.