mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-15 07:05:50 +01:00
Update v3/internal/commands/build_assets/linux/Taskfile.yml
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
5c64e18e9d
commit
3916554e54
1 changed files with 8 additions and 1 deletions
|
|
@ -18,7 +18,14 @@ tasks:
|
|||
cmds:
|
||||
- go build {{.BUILD_FLAGS}} -o {{.BIN_DIR}}/{{.APP_NAME}}
|
||||
vars:
|
||||
BUILD_FLAGS: '{{if eq .STATIC "true"}}-tags production -trimpath -buildvcs=false -ldflags="-w -s -linkmode external -extldflags '\''-static'\''"{{else if eq .PRODUCTION "true"}}-tags production -trimpath -buildvcs=false -ldflags="-w -s"{{else}}-buildvcs=false -gcflags=all="-l"{{end}}'
|
||||
BUILD_FLAGS: >-
|
||||
{{ if eq .STATIC "true" }}
|
||||
-tags production -trimpath -buildvcs=false -ldflags="-w -s -linkmode external -extldflags '-static'"
|
||||
{{ else if eq .PRODUCTION "true" }}
|
||||
-tags production -trimpath -buildvcs=false -ldflags="-w -s"
|
||||
{{ else }}
|
||||
-buildvcs=false -gcflags=all="-l"
|
||||
{{ end }}
|
||||
env:
|
||||
GOOS: linux
|
||||
CGO_ENABLED: 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue