mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-20 20:48:43 +00:00
Use the correct link name (#117)
On windows, but also use templating to render it correctly everywhere. Fixes #106 Fixes #111
This commit is contained in:
parent
856728b2c7
commit
62ec23e6f4
1 changed files with 2 additions and 2 deletions
|
@ -46,8 +46,8 @@ impl BinFile {
|
||||||
let dest_file_path = ctx.render("{ bin }-v{ version }{ binary-ext }")?;
|
let dest_file_path = ctx.render("{ bin }-v{ version }{ binary-ext }")?;
|
||||||
let dest = data.install_path.join(dest_file_path);
|
let dest = data.install_path.join(dest_file_path);
|
||||||
|
|
||||||
// Link at install dir + base name
|
// Link at install dir + base-name{.extension}
|
||||||
let link = data.install_path.join(&base_name);
|
let link = data.install_path.join(&ctx.render("{ bin }{ binary-ext }")?);
|
||||||
|
|
||||||
Ok(Self {
|
Ok(Self {
|
||||||
base_name,
|
base_name,
|
||||||
|
|
Loading…
Add table
Reference in a new issue