-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgui.go
52 lines (48 loc) · 1.24 KB
/
gui.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package builtin
import (
"github.com/cardinalby/xgo-pack/pkg/build_go/config"
"github.com/cardinalby/xgo-pack/pkg/pipeline/config/cfgtypes"
typeutil "github.com/cardinalby/xgo-pack/pkg/util/type"
)
const GuiPresetName cfgtypes.PresetName = "xgo-pack:gui"
func init() {
Presets[GuiPresetName] = guiCfg
}
var guiCfg = cfgtypes.Config{
Targets: cfgtypes.Targets{
Common: cfgtypes.TargetsCommon{
GoBuild: config.TargetBuildConfig{
LdFlags: "-s -w",
},
HighDpi: typeutil.Ptr(true),
},
Windows: cfgtypes.TargetWindows{
Common: cfgtypes.TargetWindowsCommon{
TargetsCommon: cfgtypes.TargetsCommon{
GoBuild: config.TargetBuildConfig{
LdFlags: "-s -w -H windowsgui",
},
},
},
},
Macos: cfgtypes.TargetMacos{
Common: cfgtypes.TargetMacosCommon{
Dmg: cfgtypes.TargetMacosCommonDmg{
AddApplicationsSymlink: typeutil.Ptr(true),
},
},
},
Linux: cfgtypes.TargetLinux{
Common: cfgtypes.TargetLinuxCommon{
Deb: cfgtypes.TargetLinuxDeb{
DesktopEntry: cfgtypes.TargetLinuxDebDesktopEntry{
Terminal: typeutil.Ptr(false),
NoDisplay: typeutil.Ptr(false),
AddIcon: typeutil.Ptr(true),
AddDesktopEntry: typeutil.Ptr(true),
},
},
},
},
},
}