mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-22 05:28:42 +00:00
fix: binary is not in a extracted folder
This commit is contained in:
parent
5c56c930e4
commit
90edbba221
1 changed files with 5 additions and 1 deletions
|
@ -199,7 +199,11 @@ async fn main() -> Result<(), anyhow::Error> {
|
|||
// Generate install paths
|
||||
// Source path is the download dir + the generated binary path
|
||||
let source_file_path = bin_ctx.render(&meta.bin_dir)?;
|
||||
let source = bin_path.join(&source_file_path);
|
||||
let source = if meta.pkg_fmt == PkgFmt::Bin {
|
||||
bin_path.clone()
|
||||
} else {
|
||||
bin_path.join(&source_file_path)
|
||||
};
|
||||
|
||||
// Destination path is the install dir + base-name-version{.format}
|
||||
let dest_file_path = bin_ctx.render("{ bin }-v{ version }{ format }")?;
|
||||
|
|
Loading…
Add table
Reference in a new issue