Skip to content

Commit

Permalink
Add MACOSX_DEPLOYMENT_TARGET to taskfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
leaanthony committed Sep 8, 2023
1 parent b6fc66b commit 00feccb
Show file tree
Hide file tree
Showing 19 changed files with 46 additions and 5 deletions.
3 changes: 3 additions & 0 deletions v3/examples/build/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ tasks:
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"

build:backend:darwin:
summary: Builds the application
Expand All @@ -59,6 +60,7 @@ tasks:
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"

build:windows:
summary: Builds the application for Windows
Expand Down Expand Up @@ -109,6 +111,7 @@ tasks:
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"
vars:
ARCH: $GOARCH

Expand Down
3 changes: 3 additions & 0 deletions v3/examples/dev/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ tasks:
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"

build:backend:darwin:
summary: Builds the application
Expand All @@ -59,6 +60,7 @@ tasks:
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"

build:windows:
summary: Builds the application for Windows
Expand Down Expand Up @@ -109,6 +111,7 @@ tasks:
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"
vars:
ARCH: $GOARCH

Expand Down
1 change: 1 addition & 0 deletions v3/examples/dialogs/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ tasks:
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"

build:windows:
summary: Builds the application for Windows
Expand Down
1 change: 1 addition & 0 deletions v3/examples/plugins/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ tasks:
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"

generate-icons:
summary: Generates Windows `.ico` and Mac `.icns` files from an image
Expand Down
3 changes: 3 additions & 0 deletions v3/internal/templates/_base/default/Taskfile.tmpl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ tasks:
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"

build:backend:darwin:
summary: Builds the application
Expand All @@ -59,6 +60,7 @@ tasks:
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"

build:windows:
summary: Builds the application for Windows
Expand Down Expand Up @@ -109,6 +111,7 @@ tasks:
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"
vars:
ARCH: $GOARCH

Expand Down
5 changes: 4 additions & 1 deletion v3/internal/templates/lit-ts/Taskfile.tmpl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,16 @@ tasks:
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"

build:windows:
summary: Builds the application for Windows
platforms:
- windows
cmds:
- task: pre-build
- task: build-frontend - go build -gcflags=all="-N -l" -o bin/testapp.exe
- task: build-frontend
- go build -gcflags=all="-N -l" -o bin/testapp.exe
- task: post-build

build:
Expand All @@ -78,6 +80,7 @@ tasks:
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"
vars:
ARCH: $GOARCH

Expand Down
8 changes: 5 additions & 3 deletions v3/internal/templates/lit/Taskfile.tmpl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,13 @@ tasks:
- darwin
cmds:
- task: pre-build
- task: build-frontend
- go build -gcflags=all="-N -l" -o bin/testapp
- task: post-build
- task: build-frontend
- go build -gcflags=all="-N -l" -o bin/testapp
- task: post-build
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"

build:windows:
summary: Builds the application for Windows
Expand Down Expand Up @@ -79,6 +80,7 @@ tasks:
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"
vars:
ARCH: $GOARCH

Expand Down
2 changes: 2 additions & 0 deletions v3/internal/templates/preact-ts/Taskfile.tmpl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ tasks:
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"

build:windows:
summary: Builds the application for Windows
Expand Down Expand Up @@ -79,6 +80,7 @@ tasks:
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"
vars:
ARCH: $GOARCH

Expand Down
2 changes: 2 additions & 0 deletions v3/internal/templates/preact/Taskfile.tmpl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ tasks:
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"

build:windows:
summary: Builds the application for Windows
Expand Down Expand Up @@ -79,6 +80,7 @@ tasks:
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"
vars:
ARCH: $GOARCH

Expand Down
5 changes: 4 additions & 1 deletion v3/internal/templates/react-swc-ts/Taskfile.tmpl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,16 @@ tasks:
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"

build:windows:
summary: Builds the application for Windows
platforms:
- windows
cmds:
- task: pre-build
- task: build-frontend - go build -gcflags=all="-N -l" -o bin/testapp.exe
- task: build-frontend
- go build -gcflags=all="-N -l" -o bin/testapp.exe
- task: post-build

build:
Expand All @@ -78,6 +80,7 @@ tasks:
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"
vars:
ARCH: $GOARCH

Expand Down
2 changes: 2 additions & 0 deletions v3/internal/templates/react-swc/Taskfile.tmpl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ tasks:
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"

build:windows:
summary: Builds the application for Windows
Expand Down Expand Up @@ -79,6 +80,7 @@ tasks:
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"
vars:
ARCH: $GOARCH

Expand Down
2 changes: 2 additions & 0 deletions v3/internal/templates/react-ts/Taskfile.tmpl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ tasks:
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"

build:windows:
summary: Builds the application for Windows
Expand Down Expand Up @@ -79,6 +80,7 @@ tasks:
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"
vars:
ARCH: $GOARCH

Expand Down
2 changes: 2 additions & 0 deletions v3/internal/templates/react/Taskfile.tmpl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ tasks:
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"

build:windows:
summary: Builds the application for Windows
Expand Down Expand Up @@ -79,6 +80,7 @@ tasks:
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"
vars:
ARCH: $GOARCH

Expand Down
2 changes: 2 additions & 0 deletions v3/internal/templates/svelte-ts/Taskfile.tmpl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ tasks:
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"

build:windows:
summary: Builds the application for Windows
Expand Down Expand Up @@ -79,6 +80,7 @@ tasks:
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"
vars:
ARCH: $GOARCH

Expand Down
2 changes: 2 additions & 0 deletions v3/internal/templates/svelte/Taskfile.tmpl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ tasks:
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"

build:windows:
summary: Builds the application for Windows
Expand Down Expand Up @@ -79,6 +80,7 @@ tasks:
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"
vars:
ARCH: $GOARCH

Expand Down
2 changes: 2 additions & 0 deletions v3/internal/templates/vanilla-ts/Taskfile.tmpl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ tasks:
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"

build:windows:
summary: Builds the application for Windows
Expand Down Expand Up @@ -79,6 +80,7 @@ tasks:
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"
vars:
ARCH: $GOARCH

Expand Down
2 changes: 2 additions & 0 deletions v3/internal/templates/vanilla/Taskfile.tmpl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ tasks:
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"

build:windows:
summary: Builds the application for Windows
Expand Down Expand Up @@ -79,6 +80,7 @@ tasks:
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"
vars:
ARCH: $GOARCH

Expand Down
2 changes: 2 additions & 0 deletions v3/internal/templates/vue-ts/Taskfile.tmpl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ tasks:
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"

build:windows:
summary: Builds the application for Windows
Expand Down Expand Up @@ -79,6 +80,7 @@ tasks:
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"
vars:
ARCH: $GOARCH

Expand Down
2 changes: 2 additions & 0 deletions v3/internal/templates/vue/Taskfile.tmpl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ tasks:
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"

build:windows:
summary: Builds the application for Windows
Expand Down Expand Up @@ -79,6 +80,7 @@ tasks:
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
MACOSX_DEPLOYMENT_TARGET: "10.13"
vars:
ARCH: $GOARCH

Expand Down

0 comments on commit 00feccb

Please sign in to comment.