diff --git a/v3/examples/build/Taskfile.yml b/v3/examples/build/Taskfile.yml index 11418e5a..332eb608 100644 --- a/v3/examples/build/Taskfile.yml +++ b/v3/examples/build/Taskfile.yml @@ -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: