From 948f39850938b3f195939836d314e71c45df0e1e Mon Sep 17 00:00:00 2001 From: naiba Date: Wed, 3 Nov 2021 09:36:18 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20macOS=20universal=20binaries=20s?= =?UTF-8?q?upport?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .goreleaser.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index 31fbe26..0d0a63d 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -5,6 +5,8 @@ builds: - id: nezha-agent env: - CGO_ENABLED=0 + ldflags: + - -s -w goos: - linux - windows @@ -25,6 +27,8 @@ builds: goarch: arm64 main: ./cmd/agent binary: nezha-agent +universal_binaries: + - replace: true checksum: name_template: "checksums.txt" snapshot: