Skip to content

Commit

Permalink
fix: fixed perseus deploy target binary name on Windows (#156)
Browse files Browse the repository at this point in the history
Signed-off-by: Mohammad Afiq <mohammadafiqrozelan@gmail.com>
  • Loading branch information
afiqzx committed Jul 13, 2022
1 parent 0c1b578 commit 32a6f24
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/perseus-cli/src/deploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ fn deploy_full(dir: PathBuf, output: String) -> Result<i32, Error> {
.into());
}
// Copy in the server executable
#[cfg(target_os = "windows")]
let to = output_path.join("server.exe");
#[cfg(not(target_os = "windows"))]
let to = output_path.join("server");

if let Err(err) = fs::copy(&server_path, &to) {
return Err(DeployError::MoveAssetFailed {
to: to.to_str().map(|s| s.to_string()).unwrap(),
Expand Down

0 comments on commit 32a6f24

Please sign in to comment.