[v3 examples/build] Taskfile update

- add Linux production build
- remove OS X env from basic build
This commit is contained in:
Travis McLane
2023-11-06 10:41:14 -06:00
parent 8dbbdc4bf2
commit 7f1706fc74
+7 -4
View File
@@ -8,10 +8,6 @@ tasks:
summary: Builds the application
cmds:
- go build -gcflags=all="-N -l" -o bin/{{.APP_NAME}}
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"
package:
summary: Packages a production build of the application into a `.app` or `.exe` bundle
@@ -40,6 +36,13 @@ tasks:
MACOSX_DEPLOYMENT_TARGET: "10.13"
GOARCH: '{{.GOARCH}}'
build:production:linux:
summary: Creates a production build of the application
cmds:
- GOOS=linux GOARCH={{.GOARCH}} go build -tags production -ldflags="-w -s" -o build/bin/{{.APP_NAME}}
env:
GOARCH: '{{.GOARCH}}'
generate:app_bundle:
summary: Builds a `.app` bundle
cmds: