This commit is contained in:
nora 2023-04-11 12:10:24 +02:00
parent d97dbd6a94
commit 6eaf188597

View file

@ -208,7 +208,11 @@ cargo check
fn build(path: &Path) -> Result<()> {
let (_tempdir, proj_dir) = setup_dir(path).context("setting up tempdir")?;
let cargo_minimize = Path::new("target/debug/cargo-minimize")
let mut cargo_minimize_path = PathBuf::from("target/debug/cargo-minimize");
if cfg!(windows) {
cargo_minimize_path.set_extension("exe");
}
let cargo_minimize = cargo_minimize_path
.canonicalize()
.context("canonicalizing target/debug/cargo-minimize")?;