diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 1cb6633..82a4b77 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -14,17 +14,27 @@ builds: goarch: [amd64, arm64] archives: - - formats: [tar.gz] + - id: versioned + formats: [tar.gz] format_overrides: - goos: windows formats: [zip] name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" + # Same archives without the version, so docs can link a stable + # releases/latest/download/ URL. + - id: unversioned + formats: [tar.gz] + format_overrides: + - goos: windows + formats: [zip] + name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}" checksum: name_template: checksums.txt homebrew_casks: - name: webshare + ids: [versioned] repository: owner: webshare-proxy name: homebrew-tap diff --git a/README.md b/README.md index a562f5c..258a76e 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,8 @@ amd64 and arm64; each release includes a `checksums.txt`. ```sh # example: Linux on amd64 -tar -xzf webshare_*_linux_amd64.tar.gz +curl -fsSLO https://github.com/webshare-proxy/webshare-cli/releases/latest/download/webshare_linux_amd64.tar.gz +tar -xzf webshare_linux_amd64.tar.gz sudo mv webshare /usr/local/bin/ ```