#!/usr/bin/env bash CURRENT_VERSION=$(head -1 version) URL="https://github.com/rustdesk/rustdesk-server/releases/download/${CURRENT_VERSION}/rustdesk-server-linux-amd64.zip" wget "${URL}" -O "rustdesk-server-linux-amd64.zip" unzip "rustdesk-server-linux-amd64.zip" mkdir -p bin mv -v amd64/* bin/ rmdir -v amd64