Skip to content

Commit

Permalink
fix: Check for exe
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin Blackman committed Dec 1, 2023
1 parent e56e809 commit dad19d6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/binary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,11 @@ pub fn install(binary_package: metadata::BinaryPackage) -> Result<String> {
.join(binary_package.package.clone())
.join(binary_package.version.clone());
let cache_bin_path = cache_path.join("bin").join(bin_name);
let mut cache_bin_path_win = cache_bin_path.clone();
cache_bin_path_win.set_extension("exe");

if !path::Path::new(&cache_bin_path).exists() {
if !path::Path::new(&cache_bin_path).exists() && !path::Path::new(&cache_bin_path_win).exists()
{
fs::create_dir_all(&cache_path)?;
if binary_package.bin_target.is_none()
&& binary_package.features.is_none()
Expand Down

0 comments on commit dad19d6

Please sign in to comment.