Skip to content

Instantly share code, notes, and snippets.

@JanMalch
Created February 19, 2026 16:42
Show Gist options
  • Select an option

  • Save JanMalch/ef879d0ebd16e8353de946d7525e34ce to your computer and use it in GitHub Desktop.

Select an option

Save JanMalch/ef879d0ebd16e8353de946d7525e34ce to your computer and use it in GitHub Desktop.
Bash script to download GitHub release artifacts
#!/bin/sh
platform="roar-arm64-darwin"
url=$(curl -s https://api.github.com/repos/JanMalch/roar/releases/latest | grep "browser_download_url.*${platform}" | cut -d : -f 2,3 | tr -d '"' | xargs echo -n)
curl -sS -L -o "$(dirname "$0")/roar" "$url"
chmod +x "$(dirname "$0")/roar"
# for OS X (optional), see https://superuser.com/a/28400
# xattr -d com.apple.quarantine "$(dirname "$0")/roar"
roar -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment