Skip to content

Commit 82d7802

Browse files
Add windows config for correct exe file name (#4985)
1 parent 4fd7fe5 commit 82d7802

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/cli/src/cli/update.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,12 @@ impl SelfUpdate {
159159
.extract_into(&install_dir)
160160
.context("Failed to extract update")?;
161161

162-
let executable = install_dir.join("dx");
162+
let exe = if cfg!(target_os = "windows") {
163+
"dx.exe"
164+
} else {
165+
"dx"
166+
};
167+
let executable = install_dir.join(exe);
163168
if !executable.exists() {
164169
bail!("Executable not found in {}", install_dir.display());
165170
}

0 commit comments

Comments
 (0)