Skip to content

Instantly share code, notes, and snippets.

View shagr4th's full-sized avatar

Arnaud Brochard shagr4th

View GitHub Profile
@shagr4th
shagr4th / taskfile.yml
Created October 26, 2023 20:42
task for wails3 universal macos app
package-universal-darwin:
summary: Packages a production build of the application into an universal `.app` bundle
platform: darwin
cmds:
- task: pre-build
- task: build-frontend
- GOOS=darwin GOARCH=amd64 CGO_ENABLED=1 go build -tags production -a -ldflags="-w -s" -o bin/{{.APP_NAME}}_amd64
- GOOS=darwin GOARCH=arm64 CGO_ENABLED=1 go build -tags production -a -ldflags="-w -s" -o bin/{{.APP_NAME}}_arm64
- task: post-build
- task: generate-icons