mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-12 23:19:29 +08:00
Fix example building
This commit is contained in:
parent
69c513e33d
commit
67c493f1a8
@ -132,8 +132,10 @@ tasks:
|
|||||||
- task: format
|
- task: format
|
||||||
# - task: docs:update:api
|
# - task: docs:update:api
|
||||||
|
|
||||||
test:example:
|
test:example:darwin:
|
||||||
dir: 'examples/{{.DIR}}'
|
dir: 'examples/{{.DIR}}'
|
||||||
|
platforms:
|
||||||
|
- darwin
|
||||||
cmds:
|
cmds:
|
||||||
- echo "Building example {{.DIR}}"
|
- echo "Building example {{.DIR}}"
|
||||||
- go mod tidy
|
- go mod tidy
|
||||||
@ -142,6 +144,16 @@ tasks:
|
|||||||
CGO_LDFLAGS: -framework UniformTypeIdentifiers -mmacosx-version-min=10.13
|
CGO_LDFLAGS: -framework UniformTypeIdentifiers -mmacosx-version-min=10.13
|
||||||
CGO_CFLAGS: -mmacosx-version-min=10.13
|
CGO_CFLAGS: -mmacosx-version-min=10.13
|
||||||
|
|
||||||
|
test:example:notdarwin:
|
||||||
|
dir: 'examples/{{.DIR}}'
|
||||||
|
platforms:
|
||||||
|
- linux
|
||||||
|
- windows
|
||||||
|
cmds:
|
||||||
|
- echo "Building example {{.DIR}}"
|
||||||
|
- go mod tidy
|
||||||
|
- go build -o "testbuild-{{.DIR}}{{exeExt}}"
|
||||||
|
|
||||||
|
|
||||||
test:examples:
|
test:examples:
|
||||||
summary: Builds the examples
|
summary: Builds the examples
|
||||||
@ -169,6 +181,10 @@ tasks:
|
|||||||
wml
|
wml
|
||||||
cmds:
|
cmds:
|
||||||
- for: { var: EXAMPLEDIRS }
|
- for: { var: EXAMPLEDIRS }
|
||||||
task: test:example
|
task: test:example:darwin
|
||||||
|
vars:
|
||||||
|
DIR: "{{.ITEM}}"
|
||||||
|
- for: { var: EXAMPLEDIRS }
|
||||||
|
task: test:example:notdarwin
|
||||||
vars:
|
vars:
|
||||||
DIR: "{{.ITEM}}"
|
DIR: "{{.ITEM}}"
|
||||||
|
Loading…
Reference in New Issue
Block a user