mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 22:55:48 +01:00
[v2] Add windowsgui ldflag when crosscompiling for windows
This commit is contained in:
parent
f5f89c31eb
commit
5e2f25af9b
1 changed files with 1 additions and 1 deletions
|
|
@ -243,7 +243,7 @@ func (b *BaseBuilder) CompileProject(options *Options) error {
|
|||
|
||||
if options.Mode == Production {
|
||||
ldflags.Add("-w", "-s")
|
||||
if runtime.GOOS == "windows" {
|
||||
if options.Platform == "windows" {
|
||||
ldflags.Add("-H windowsgui")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue