Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
571 B
Bash
Raw Permalink Normal View History

2025-05-09 02:27:15 +02:00
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl jq common-updater-scripts
set -eou pipefail
version=$(curl ${GITHUB_TOKEN:+-u ":$GITHUB_TOKEN"} -sfL "https://api.github.com/repos/Jojo4GH/nav/releases/latest" | jq -r .tag_name | sed 's/v//')
for cpu in "x86_64" "aarch64"; do
hash=$(nix-hash --type sha256 --to-sri $(curl ${GITHUB_TOKEN:+-u ":$GITHUB_TOKEN"} -sfL "https://github.com/Jojo4GH/nav/releases/download/v$version/nav-$cpu-unknown-linux-gnu.tar.gz.sha256"))
update-source-version nav $version $hash --system=$cpu-linux --ignore-same-version
done