mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
Improve default taskfile
This commit is contained in:
parent
61c8c9eac0
commit
ea44cf850c
1 changed files with 9 additions and 9 deletions
|
|
@ -29,16 +29,16 @@ tasks:
|
|||
- task: generate:icons
|
||||
- task: generate:syso
|
||||
vars:
|
||||
ARCH: {{ "{{.ARCH}}" }}
|
||||
ARCH: {{ "'{{.ARCH}}'" }}
|
||||
cmds:
|
||||
- go build {{ "{{.BUILD_FLAGS}}" }} -o {{ "{{.BIN_DIR}}" }}/{{.ProjectName}}.exe
|
||||
vars:
|
||||
BUILD_FLAGS: {{ "{{if eq .PRODUCTION \"true\"}}-tags production -ldflags=\"-w -s\"{{else}}-gcflags=all=\"-N -l\"{{end}}" }}
|
||||
BUILD_FLAGS: {{ "'{{if eq .PRODUCTION \"true\"}}-tags production -ldflags=\"-w -s\"{{else}}-gcflags=all=\"-N -l\"{{end}}'" }}
|
||||
env:
|
||||
GOOS: windows
|
||||
CGO_ENABLED: 0
|
||||
GOARCH: {{ "{{.ARCH | default ARCH}}" }}
|
||||
PRODUCTION: {{ "{{.PRODUCTION | default \"false\"}}" }}
|
||||
GOARCH: {{ "'{{.ARCH | default ARCH}}'" }}
|
||||
PRODUCTION: {{ "'{{.PRODUCTION | default \"false\"}}'" }}
|
||||
|
||||
build:windows:prod:arm64:
|
||||
summary: Creates a production build of the application
|
||||
|
|
@ -84,11 +84,11 @@ tasks:
|
|||
env:
|
||||
GOOS: darwin
|
||||
CGO_ENABLED: 1
|
||||
GOARCH: {{ "{{.ARCH | default ARCH}}" }}
|
||||
GOARCH: {{ "'{{.ARCH | default ARCH}}'" }}
|
||||
CGO_CFLAGS: "-mmacosx-version-min=10.13"
|
||||
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
|
||||
MACOSX_DEPLOYMENT_TARGET: "10.13"
|
||||
PRODUCTION: {{ "{{.PRODUCTION | default \"false\"}}" }}
|
||||
PRODUCTION: {{ "'{{.PRODUCTION | default \"false\"}}'" }}
|
||||
|
||||
build:darwin:prod:arm64:
|
||||
summary: Creates a production build of the application
|
||||
|
|
@ -142,9 +142,9 @@ tasks:
|
|||
cmds:
|
||||
- task: create:nsis:installer
|
||||
vars:
|
||||
ARCH: {{ "{{.ARCH}}" }}
|
||||
ARCH: {{ "'{{.ARCH}}'" }}
|
||||
vars:
|
||||
ARCH: {{ "{{.ARCH | default ARCH}}" }}
|
||||
ARCH: {{ "'{{.ARCH | default ARCH}}'" }}
|
||||
|
||||
package:windows:arm64:
|
||||
summary: Packages a production build of the application into a `.exe` bundle
|
||||
|
|
@ -166,7 +166,7 @@ tasks:
|
|||
cmds:
|
||||
- wails3 generate syso -arch {{ "{{.ARCH}}" }} -icon icon.ico -manifest wails.exe.manifest -info info.json -out ../wails.syso
|
||||
vars:
|
||||
ARCH: {{ "{{.ARCH | default ARCH}}" }}
|
||||
ARCH: {{ "'{{.ARCH | default ARCH}}'" }}
|
||||
|
||||
create:nsis:installer:
|
||||
summary: Creates an NSIS installer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue