From 7f1706fc742911d7228a5ba54b8b1c3662fd2176 Mon Sep 17 00:00:00 2001 From: Travis McLane Date: Wed, 1 Nov 2023 10:25:28 -0500 Subject: [PATCH] [v3 examples/build] Taskfile update - add Linux production build - remove OS X env from basic build --- v3/examples/build/Taskfile.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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: