mirror of
https://github.com/zhom/banderole.git
synced 2026-06-13 01:27:47 +02:00
refactor: always generate binaries on windows with an exe
This commit is contained in:
+5
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user