From 2f0de01e6270be631c11e8b1a29070015429d34c Mon Sep 17 00:00:00 2001 From: Abhimanyu Sharma Date: Fri, 24 Dec 2021 11:53:01 +0530 Subject: [PATCH] adding support for mac fat binary and nfpms --- .goreleaser.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 84fd4ee..48f718a 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -12,10 +12,13 @@ builds: - main: ./main.go binary: sttr goos: ['linux', 'darwin', 'windows'] - goarch: ['386', 'amd64'] + goarch: ['386', 'amd64', 'arm64'] env: - CGO_ENABLED=0 +universal_binaries: +- replace: true + changelog: sort: 'asc' filters: @@ -39,6 +42,19 @@ brews: test: | system "#{bin}/sttr -v" +nfpms: + - builds: + - sttr + vendor: abhimanyu003 + homepage: "https://github.com/abhimanyu003/sttr/" + maintainer: "Abhimanyu Sharma " + description: "A cross-platform, cli app to perform various operations on string" + license: MIT + formats: + - deb + - rpm + bindir: /usr/bin + snapcrafts: - name: sttr publish: true