Skip to content

Commit

Permalink
Add tags to build
Browse files Browse the repository at this point in the history
  • Loading branch information
leaanthony committed Oct 25, 2020
1 parent f87a0f0 commit 9098632
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/wails/4_build.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ func init() {
var verbose = false
var platform = ""
var ldflags = ""
var tags = ""

buildSpinner := spinner.NewSpinner()
buildSpinner.SetSpinSpeed(50)
Expand All @@ -44,7 +45,8 @@ func init() {
BoolFlag("verbose", "Verbose output", &verbose).
StringFlag("t", "Generate Typescript definitions to given file (at runtime)", &typescriptFilename).
StringFlag("ldflags", "Extra options for -ldflags", &ldflags).
StringFlag("gopath", "Specify your GOPATH location. Mounted to /go during cross-compilation.", &gopath)
StringFlag("gopath", "Specify your GOPATH location. Mounted to /go during cross-compilation.", &gopath).
StringFlag("tags", "Build tags to pass to the go compiler (quoted and space separated)", &tags)

var b strings.Builder
for _, plat := range getSupportedPlatforms() {
Expand Down Expand Up @@ -106,6 +108,9 @@ func init() {
projectOptions.LdFlags = ldflags
projectOptions.GoPath = gopath

// Add tags
projectOptions.Tags = tags

// Validate config
// Check if we have a frontend
err = cmd.ValidateFrontendConfig(projectOptions)
Expand Down

0 comments on commit 9098632

Please sign in to comment.