From 8d1238289fd39ce8d51fbbb4083f57518e26fe00 Mon Sep 17 00:00:00 2001 From: Travis McLane Date: Mon, 6 Apr 2020 13:57:10 -0500 Subject: [PATCH] correct issues with exe naming on windows --- cmd/helpers.go | 2 +- cmd/package.go | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/helpers.go b/cmd/helpers.go index e43949050..a4b620720 100644 --- a/cmd/helpers.go +++ b/cmd/helpers.go @@ -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" diff --git a/cmd/package.go b/cmd/package.go index 7f6183a39..ceb9a44b4 100644 --- a/cmd/package.go +++ b/cmd/package.go @@ -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)