Skip to content

Instantly share code, notes, and snippets.

@thejimnicholson
Last active November 25, 2023 20:27
Show Gist options
  • Save thejimnicholson/e79bca2630eb54a7b6a14dd1137fbe9d to your computer and use it in GitHub Desktop.
Save thejimnicholson/e79bca2630eb54a7b6a14dd1137fbe9d to your computer and use it in GitHub Desktop.
Download latest released .deb from github releases
#!/usr/bin/env bash
PROJECT='eugeny/tabby'
API_LATEST=https://api.github.com/repos/$PROJECT/releases/latest
TARGET=$(curl -s $API_LATEST | jq ' .assets[].browser_download_url' | grep \.linux-x64\.deb | tr -d '"')
PACKAGE=$(basename $TARGET)
curl -s -o $PACKAGE --max-redirs 5 -L $TARGET
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment