Simple download script to download the latest stable RustDesk version, rename and move it to the correct folder.
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 |