14 lines
500 B
Bash
14 lines
500 B
Bash
#!/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 |