mod: taskfile

This commit is contained in:
2026-02-05 15:38:48 +08:00
parent 7a258d28a2
commit 99c71f5179
2 changed files with 0 additions and 2 deletions

View File

@@ -50,7 +50,6 @@ tasks:
- task: generate:dotdesktop
cmds:
- go build {{.BUILD_FLAGS}} -o {{.OUTPUT}}
- upx --best --lzma {{.OUTPUT}}
vars:
BUILD_FLAGS: '{{if eq .DEV "true"}}-buildvcs=false -gcflags=all="-l"{{else}}-tags production -trimpath -buildvcs=false -ldflags="-w -s"{{end}}'
DEFAULT_OUTPUT: "{{.BIN_DIR}}/{{.APP_NAME}}"