CLI tool for RDGen
Generate custom RustDesk clients via command interface instead of using web browser.
Help page:
usage: rdgen_cli.py [-h] -f FILE -s SERVER [--set-version SET_VERSION] [--set-platform SET_PLATFORM] [-v] [-p] [-d] [--allow-partial]
options:
-h, --help show this help message and exit
-f FILE, --file FILE Input configuration file (JSON)
-s SERVER, --server SERVER Address of RDGen server. HTTP (:80) is the default scheme
--set-version SET_VERSION Override the 'version' key in the configuration JSON
--set-platform SET_PLATFORM Override the 'platform' key in the configuration JSON
-v, --verbose Increase output verbosity
-p, --preserve-log Preserve build status log
-d, --disable-download Disable automatic result download
--allow-partial Exit successfully even if some downloads fail (e.g. mac x86_64)- Download executable file from the Releases page.
- Obtain configuration JSON file. You can download the template.json from this repository or download it from RDGen web-page.
- Open a terminal and run the executable with the flags specified in the help page above.
Example run:
chmod +x rdgen-cli-linux-x64
./rdgen-cli-linux-x64 -f my_config.json -s https://rdgen.crayoneater.org
Install requirements:
python -m pip install -r requirements.txtor (for externally-managed-environment)
# Debian-based:
apt install python3-requests
# RHEL-based:
dnf install python3-requestsClone repository:
git clone --depth 1 https://github.com/AlekseyLapunov/rdgen-cli
cd rdgen-cliExample run:
cp template.json my_config.json
# ... making changes to my_config.json ...
python rdgen_cli.py -v -f my_config.json -s https://rdgen.crayoneater.orgSpecial thanks to bryangerlach for creating the awesome RDGen service and contributing to this CLI tool in particular.
Although you can specify custom port and basic authorization data in this tool, it won't work with vanilla RDGen as of now. But it should be easy to modify RDGen Actions pipelines to enable such functionality.