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:
Félix Saparelli 2022-04-29 09:24:19 +12:00 committed by GitHub
parent 856728b2c7
commit 62ec23e6f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,8 +46,8 @@ impl BinFile {
let dest_file_path = ctx.render("{ bin }-v{ version }{ binary-ext }")?;
let dest = data.install_path.join(dest_file_path);
// Link at install dir + base name
let link = data.install_path.join(&base_name);
// Link at install dir + base-name{.extension}
let link = data.install_path.join(&ctx.render("{ bin }{ binary-ext }")?);
Ok(Self {
base_name,