modified .github/workflows/release.yml +7 -2
| @@ -166,8 +166,13 @@ jobs: |
| 166 | 166 | echo 'Download the archive for your platform, verify it, and drop the binary on your PATH:' |
| 167 | 167 | echo |
| 168 | 168 | 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' |
| 171 | 176 | echo 'install -m 0755 rickub /usr/local/bin/rickub' |
| 172 | 177 | echo '```' |
| 173 | 178 | 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 | echo | 167 | 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 | echo | 178 | echo |