From 5e019de7012a6bbf80938e3173a57dcff7b3a9a4 Mon Sep 17 00:00:00 2001 From: trivernis Date: Sat, 21 Jan 2023 21:27:39 +0100 Subject: [PATCH] Fix bin path for windows builds --- src/repository/node_path.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/repository/node_path.rs b/src/repository/node_path.rs index 2e2307c..92411a4 100644 --- a/src/repository/node_path.rs +++ b/src/repository/node_path.rs @@ -9,7 +9,13 @@ impl NodePath { Self { base } } + #[cfg(not(target_os = "windows"))] pub fn bin(&self) -> PathBuf { self.base.join("bin") } + + #[cfg(target_os = "windows")] + pub fn bin(&self) -> PathBuf { + self.base.to_owned() + } }