From 398e5b0ea6116237f7252ae5fd239778937e8102 Mon Sep 17 00:00:00 2001 From: rvcas Date: Fri, 31 May 2024 13:32:43 -0400 Subject: [PATCH] fix: should use .bat suffix on windows for symlinks --- src/cmd/install.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/cmd/install.rs b/src/cmd/install.rs index bac61f6..a52dc39 100644 --- a/src/cmd/install.rs +++ b/src/cmd/install.rs @@ -164,7 +164,12 @@ impl Args { } if !self.no_switch { + #[cfg(unix)] let sym_bin = bin_dir.join("aiken"); + + #[cfg(windows)] + let sym_bin = bin_dir.join("aiken.bat"); + let src_bin = if is_past_cut_off { install_dir .join(asset_name.replace(".tar.gz", ""))