correct issues with exe naming on windows

This commit is contained in:
Travis McLane 2020-04-06 13:57:10 -05:00 committed by Lea Anthony
commit 8d1238289f
2 changed files with 1 additions and 3 deletions

View file

@ -223,7 +223,7 @@ func BuildNative(binaryName string, forceRebuild bool, buildMode string, project
if binaryName != "" {
// Alter binary name based on OS
switch runtime.GOOS {
switch projectOptions.Platform {
case "windows":
if !strings.HasSuffix(binaryName, ".exe") {
binaryName += ".exe"

View file

@ -129,8 +129,6 @@ func (b *PackageHelper) packageOSX(po *ProjectOptions) error {
// We need to build!
return fmt.Errorf("Target '%s' not available. Has it been compiled yet?", exe)
}
fmt.Printf("Executable: %s\n", source)
// Remove the existing package
os.RemoveAll(appname)