mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 22:50:59 +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 {
|
if options.Mode == Production {
|
||||||
ldflags.Add("-w", "-s")
|
ldflags.Add("-w", "-s")
|
||||||
if runtime.GOOS == "windows" {
|
if options.Platform == "windows" {
|
||||||
ldflags.Add("-H windowsgui")
|
ldflags.Add("-H windowsgui")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user