0% found this document useful (0 votes)
293 views

Setup Rustdesk Development On Windows

Uploaded by

fthsdr
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
293 views

Setup Rustdesk Development On Windows

Uploaded by

fthsdr
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Setup rustdesk development on Windows.

1) Download LLVM version 15.0.6:


https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.6/LLVM-15.0.6-win64.exe

2) Download Flutter version 3.16.9


https://storage.googleapis.com/flutter_infra_release/releases/stable/windows/flutter_windows_3.
16.9-stable.zip

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

4) Download Rust Development Environment


https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe

5) Download Python 3 (if you don't already have it installed)


https://www.python.org/ftp/python/3.12.2/python-3.12.2-amd64.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.

11) Install vcpkg.


-Open a powershell (click the windows START button, type powershell, open
powershell), run the following commands one at a time, pressing Enter after each line:
-type: pushd c:\
-type: git clone https://github.com/microsoft/vcpkg.git
-type: pushd vcpkg
-type: git checkout 8eb57355a4ffb410a2e94c07b4dca2dffbee8e50
-Close the powershell window.

12) Add Flutter and vcpkg to the PATH environment variable:


- Click the windows START button and type: environment select and open "Edit the
system environment variables"
- Click Environment Variables button near the bottom of this window.
- In the top section (User variables) select the Variable labelled Path, then click "Edit..."
- Now click "New", and add the line C:\flutter\bin (or wherever you saved flutter in the
previous step)
- Click "New", and add the line c:\vcpkg
- Click OK at the bottom, then click OK at the bottom of the previous window, and click
OK on the System Properties window also

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

15) You will now have a file rustdesk\target\release\rustdesk-portable-packer.exe, and if you


change the filename to have “install” (rustdesk-1.2.4-install.exe) in the name, it will open the
installer when opened, otherwise it will default to opening rustdesk in portable mode. This file
will not be signed, but you can sign it if you have your own code certificate.

You might also like