diff --git a/src/main.rs b/src/main.rs index 1a24be6..fcd0c36 100644 --- a/src/main.rs +++ b/src/main.rs @@ -676,6 +676,7 @@ impl Build { .and_then(|target| target.metadata.as_ref()) .and_then(|metadata| metadata.name.clone()) .unwrap_or(to_title_case(&target_name)); + let target_name = target_name.replace('-', "_"); let source_path = self.make_source_dir(&overall_target_dir, &game_title)?; let dest_path = overall_target_dir.join(format!("{}.pdx", &game_title)); if dest_path.exists() {