refactor: always generate binaries on windows with an exe

This commit is contained in:
zhom
2025-08-10 02:37:05 +04:00
parent c0589d1278
commit 62144188bb
2 changed files with 45 additions and 18 deletions
+5 -1
View File
@@ -1313,7 +1313,11 @@ fn resolve_output_path(
app_name: &str,
custom_name: Option<&str>,
) -> Result<PathBuf> {
if let Some(path) = output_path {
if let Some(mut path) = output_path {
// On Windows, ensure .exe extension if none supplied
if Platform::current().is_windows() && path.extension().is_none() {
path.set_extension("exe");
}
return Ok(path);
}