From e12d87f2ce26886570514b36cd76200d66b44387 Mon Sep 17 00:00:00 2001 From: naiba Date: Wed, 3 Nov 2021 21:05: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 | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 0d0a63d..af53a52 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -5,8 +5,6 @@ builds: - id: nezha-agent env: - CGO_ENABLED=0 - ldflags: - - -s -w goos: - linux - windows @@ -28,16 +26,27 @@ builds: main: ./cmd/agent binary: nezha-agent universal_binaries: - - replace: true + - id: nezha-agent + name_template: "nezha-agent" + replace: true checksum: name_template: "checksums.txt" snapshot: name_template: "{{.ProjectName}}" archives: - - name_template: "nezha-agent_{{ .Os }}_{{ .Arch }}" + - name_template: "nezha-agent" + files: + - README.md + - LICENSE + - completions/* changelog: sort: asc + use: github filters: exclude: - - "^docs:" - - "^test:" + - '^docs:' + - '^test:' + - '^chore' + - Merge pull request + - Merge branch + - go mod tidy \ No newline at end of file