Remove unpack zip functionality from unpack_tar_gz

This commit is contained in:
Felix Schütt
2022-11-16 13:58:37 +01:00
parent 6375a8d19b
commit aafd57ca9e
5 changed files with 17 additions and 83 deletions

View File

@@ -1579,6 +1579,17 @@ fn untar(tarball: std::path::PathBuf, target: std::path::PathBuf) -> Result<Vec<
.collect())
}
fn get_zig_exe_str() -> &'static str {
#[cfg(target_os = "windows")]
{
"zig.exe"
}
#[cfg(not(target_os = "windows"))]
{
"zig"
}
}
fn find_zig_binary(path: Option<PathBuf>) -> Result<PathBuf> {
use std::env::split_paths;
use std::ffi::OsStr;