Skip to content

Commit 05dc4a9

Browse files
committed
release script updates
1 parent 90d1d74 commit 05dc4a9

2 files changed

Lines changed: 12 additions & 7 deletions

File tree

‎.goreleaser.yaml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,12 @@ archives:
6161
- goos: windows
6262
formats:
6363
- zip
64+
# Deliberately version-LESS names (no {{ .Version }}) so a stable URL like
65+
# https://github.com/embeddedci-com/benchpod-cli/releases/latest/download/benchpod_Darwin_arm64.tar.gz
66+
# always resolves to the newest release. The version is still recoverable from
67+
# `benchpod --version`, the release tag, and checksums.txt.
6468
name_template: >-
65-
benchpod_{{ .Version }}_
69+
benchpod_
6670
{{- title .Os }}_
6771
{{- if eq .Arch "amd64" }}x86_64
6872
{{- else if eq .Arch "arm64" }}arm64

‎README.md‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,21 @@ notarized build (not currently produced) or build from source.
2727

2828
### Direct download
2929

30-
Grab the archive for your OS/arch from the releases page and put the binary on
31-
your `PATH`. For example, macOS arm64:
30+
Grab the archive for your OS/arch and put the binary on your `PATH`. The
31+
`releases/latest/download/…` URLs always point at the newest release. For
32+
example, macOS arm64:
3233

3334
```sh
34-
VER=v0.1.0 # pick the latest release tag
3535
curl -fsSL -o benchpod.tar.gz \
36-
"https://github.com/embeddedci-com/benchpod-cli/releases/download/${VER}/benchpod_${VER#v}_Darwin_arm64.tar.gz"
36+
https://github.com/embeddedci-com/benchpod-cli/releases/latest/download/benchpod_Darwin_arm64.tar.gz
3737
tar -xzf benchpod.tar.gz benchpod
3838
sudo mv benchpod /usr/local/bin/
3939
benchpod --version
4040
```
4141

42-
On Windows download the `..._Windows_x86_64.zip` archive and extract
43-
`benchpod.exe`. `checksums.txt` in each release verifies the download.
42+
Swap `Darwin_arm64` for `Darwin_x86_64`, `Linux_x86_64`, `Linux_arm64`, etc. On
43+
Windows download `benchpod_Windows_x86_64.zip` and extract `benchpod.exe`.
44+
`releases/latest/download/checksums.txt` verifies the download.
4445

4546
> **macOS, direct download only:** if you fetch the archive with a *browser*
4647
> (not curl/Homebrew) it gets the quarantine flag and double-clicking is

0 commit comments

Comments
 (0)