mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 22:55:48 +01:00
correct issues with exe naming on windows
This commit is contained in:
parent
b232b608fa
commit
8d1238289f
2 changed files with 1 additions and 3 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue