mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
[v3 examples/build] Taskfile update
- add Linux production build - remove OS X env from basic build
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user