Setup Rustdesk Development On Windows
Setup Rustdesk Development On Windows
3) Download Git For Windows (if you don't already have git installed)
https://github.com/git-for-windows/git/releases/download/v2.44.0.windows.1/Git-2.44.0-64-
bit.exe
6) Install LLVM, make sure to select "Add LLVM to the system PATH for all users"
7) Extract the flutter folder from the downloaded flutter zip file, and save it to C:\flutter (or
anywhere else you want to have it).
8) Install Rustup-init.exe.
- Select option 1, it will download the installer, click Continue through any prompts that
pop up.
- Click Install when finally given the option. This will take some time to download.
- Click close on the window after installation is complete, it will open the visual studio
window asking to sign in, just click "Skip this for now". For Development settings, select "Visual
C++", click Start Visual Studio.
- Now click "Continue without code", open the Tools menu and select Get Tools and
Features...
- In the Workloads tab, in the Desktop & Mobile section, select the option "Desktop
development with C++"
- Click Modify at the bottom right, click Continue if prompted and follow through with the
install. This will take a few minutes to complete
9) After this installation finishes, close the Visual Studio Installer window, and back at the
rustup-init command window, enter option 1. After this finishes, press Enter.
10) Install Git, just go through the installation using default options or make changes if you
know what you're doing.
13) Install python. On the first install page, select the option "Add python.exe to PATH" and
click Install Now.
14) Download rustdesk source code.
- Open a new powershell window (click windows start button, type powershell, select and
open powershell), run the following commands one at a time, pressing Enter after each line:
- type: git clone https://github.com/rustdesk/rustdesk.git
- type: pushd rustdesk
- type: cargo install flutter_rust_bridge_codegen --version 1.80.1 --features "uuid"
- type: Push-Location flutter ; flutter pub get ; Pop-Location
- type: ~/.cargo/bin/flutter_rust_bridge_codegen --rust-input ./src/flutter_ffi.rs --dart-
output ./flutter/lib/generated_bridge.dart
- type: python .\build.py --portable --hwcodec --flutter --gpucodec --skip-portable-pack
- type: mv ./flutter/build/windows/x64/runner/Release ./rustdesk
- type: pushd ./libs/portable
- type: pip3 install -r requirements.txt
- type: python3 ./generate.py -f ../../rustdesk/ -o . -e ../../rustdesk/rustdesk.exe