mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 20:51:38 +08:00
[v2] Add windowsgui ldflag when crosscompiling for windows
This commit is contained in:
parent
f5f89c31eb
commit
5e2f25af9b
@ -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…
Reference in New Issue
Block a user