👷 macOS universal binaries support

This commit is contained in:
naiba 2021-11-03 09:36:18 +08:00
parent 2289d16f03
commit 948f398509

View File

@ -5,6 +5,8 @@ builds:
- id: nezha-agent - id: nezha-agent
env: env:
- CGO_ENABLED=0 - CGO_ENABLED=0
ldflags:
- -s -w
goos: goos:
- linux - linux
- windows - windows
@ -25,6 +27,8 @@ builds:
goarch: arm64 goarch: arm64
main: ./cmd/agent main: ./cmd/agent
binary: nezha-agent binary: nezha-agent
universal_binaries:
- replace: true
checksum: checksum:
name_template: "checksums.txt" name_template: "checksums.txt"
snapshot: snapshot: