Skip to content

Instantly share code, notes, and snippets.

@R0GGER
Last active August 18, 2023 22:22
Show Gist options
  • Save R0GGER/f883520f7365d9f411fa2f48725de352 to your computer and use it in GitHub Desktop.
Save R0GGER/f883520f7365d9f411fa2f48725de352 to your computer and use it in GitHub Desktop.
Download Latest Release at Github of RustDesk

Download Latest Release at Github of RustDesk

Simple download script to download the latest stable RustDesk version, rename and move it to the correct folder.

Variables

  • license=rustdesk-licensed-KEY.exe
  • folder=/my/folder/path
#!/bin/sh
license=rustdesk-licensed-********.exe
folder=/my/folder/path
# -----------------------------------------------------------------------------------------------------------------------------------------#
assets=$(curl -s https://api.github.com/repos/rustdesk/rustdesk/releases/latest | jq -r '.assets[] | select(.name|match("x86_64.exe$")) | .browser_download_url')
for asset in $assets; do
curl -OL $asset --output-dir $folder
done
mv $folder/rustdesk-*-x86_64.exe $folder/$license
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment