mirror of
https://github.com/taigrr/wails.git
synced 2026-04-02 05:08:54 -07:00
correct issues with exe naming on windows
This commit is contained in:
committed by
Lea Anthony
parent
b232b608fa
commit
8d1238289f
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user