mirror of
https://github.com/taigrr/wails.git
synced 2026-04-02 05:08:54 -07:00
Merge pull request #965 from stffabi/feature/winguildflag-crosscompile
[v2] Add windowsgui ldflag when crosscompiling for windows
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user