Skip to content

Commit 32a6f24

Browse files
authored
fix: fixed perseus deploy target binary name on Windows (#156)
Signed-off-by: Mohammad Afiq <[email protected]>
1 parent 0c1b578 commit 32a6f24

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/perseus-cli/src/deploy.rs

+4
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@ fn deploy_full(dir: PathBuf, output: String) -> Result<i32, Error> {
6666
.into());
6767
}
6868
// Copy in the server executable
69+
#[cfg(target_os = "windows")]
70+
let to = output_path.join("server.exe");
71+
#[cfg(not(target_os = "windows"))]
6972
let to = output_path.join("server");
73+
7074
if let Err(err) = fs::copy(&server_path, &to) {
7175
return Err(DeployError::MoveAssetFailed {
7276
to: to.to_str().map(|s| s.to_string()).unwrap(),

0 commit comments

Comments
 (0)