Skip to main content

extract_binary

Function extract_binary 

Source
pub async fn extract_binary(
    archive_path: &Path,
    dest_dir: &Path,
) -> Result<PathBuf, UpdateKitError>
Expand description

Extract a binary from an archive file. Returns the path to the extracted binary.

Supports .tar.gz, .tgz, .zip, and bare binaries.