From 0223f381c9818f9968924fb20e5853aa7a58abec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Pi=C3=B1a?= Date: Tue, 8 Sep 2020 12:05:12 -0700 Subject: [PATCH] Offer .tar.gz releases The zip/unzip commands aren't installed by default on most Linux distros. However, tar is almost always installed. Additionally, users may get confused when they try to uncompress an archive with gzip/gunzip, only for it to fail because gunzip is for .gz files, not .zip. This change makes it a little easier to grab a copy of a nats-server release binary. --- .goreleaser.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index fc9fad12..8ce80fe9 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -52,6 +52,13 @@ archives: files: - README.md - LICENSE + - name_template: '{{.ProjectName}}-{{.Tag}}-{{.Os}}-{{.Arch}}{{if .Arm}}{{.Arm}}{{end}}' + id: targz-archives + wrap_in_directory: true + format: tar.gz + files: + - README.md + - LICENSE checksum: name_template: 'SHA256SUMS'