rickub/clipublic Fork
⑂ f4dae4e
Commits
⬇ Clone ▾
git clone https://git.rickub.com/rickub/cli.git
git clone ssh://git@rickub.com/rickub/cli.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP

release notes: derive os/arch and fetch from releases/downloadUnverified

Fixes #5

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FgkcT3UPxwxukBKojB5eg4
Olivier Girardot committed 2026-09-03T07:26:56+02:00 Browse files
f4dae4e parent: 4f4e452
modified .github/workflows/release.yml +7 -2
@@ -166,8 +166,13 @@ jobs:
166166 echo 'Download the archive for your platform, verify it, and drop the binary on your PATH:'
167167 echo
168168 echo '```sh'
169- echo "tar -xzf rickub_${TAG#v}_\$(uname -s | tr '[:upper:]' '[:lower:]')_amd64.tar.gz"
170- echo 'sha256sum -c SHA256SUMS --ignore-missing'
169+ echo "v=${TAG#v}"
170+ echo "os=\$(uname -s | tr '[:upper:]' '[:lower:]')"
171+ echo "arch=\$(uname -m); case \"\$arch\" in x86_64) arch=amd64 ;; aarch64) arch=arm64 ;; esac"
172+ echo "base=\${RICKUB_GITHUB_SERVER_URL:-https://rickub.com}/${GITHUB_REPOSITORY}/releases/download/${TAG}"
173+ echo 'curl -fsSLO "$base/rickub_${v}_${os}_${arch}.tar.gz" && curl -fsSLO "$base/SHA256SUMS"'
174+ echo 'sha256sum -c SHA256SUMS --ignore-missing # shasum -a 256 -c on macOS'
175+ echo 'tar -xzf "rickub_${v}_${os}_${arch}.tar.gz" rickub'
171176 echo 'install -m 0755 rickub /usr/local/bin/rickub'
172177 echo '```'
173178 echo
@@ -166,8 +166,13 @@ jobs:
166 echo 'Download the archive for your platform, verify it, and drop the binary on your PATH:'166 echo 'Download the archive for your platform, verify it, and drop the binary on your PATH:'
167 echo167 echo
168 echo '```sh'168 echo '```sh'
169- echo "tar -xzf rickub_${TAG#v}_\$(uname -s | tr '[:upper:]' '[:lower:]')_amd64.tar.gz"169+ echo "v=${TAG#v}"
170- echo 'sha256sum -c SHA256SUMS --ignore-missing'170+ echo "os=\$(uname -s | tr '[:upper:]' '[:lower:]')"
171+ echo "arch=\$(uname -m); case \"\$arch\" in x86_64) arch=amd64 ;; aarch64) arch=arm64 ;; esac"
172+ echo "base=\${RICKUB_GITHUB_SERVER_URL:-https://rickub.com}/${GITHUB_REPOSITORY}/releases/download/${TAG}"
173+ echo 'curl -fsSLO "$base/rickub_${v}_${os}_${arch}.tar.gz" && curl -fsSLO "$base/SHA256SUMS"'
174+ echo 'sha256sum -c SHA256SUMS --ignore-missing # shasum -a 256 -c on macOS'
175+ echo 'tar -xzf "rickub_${v}_${os}_${arch}.tar.gz" rickub'
171 echo 'install -m 0755 rickub /usr/local/bin/rickub'176 echo 'install -m 0755 rickub /usr/local/bin/rickub'
172 echo '```'177 echo '```'
173 echo178 echo