1. Fork Repositories
- Fork both
rustdesk/rustdeskandrustdesk/hbb_commonto your account. - https://github.com/rustdesk/rustdesk
- https://github.com/rustdesk/hbb_common
2. Configure Server Details
- Go to your forked
hbb_commonrepository. - Edit
hbb_common/src/config.rsand find theRENDEZVOUS_SERVERSconstant (around line 109). - Replace
rs-ny.rustdesk.comwith your RustDesk server address. - Replace the default key
OeVu...with your RustDesk public key. - Commit changes.
- Copy your
hbb_commonrepository URL (e.g.,https://github.com/YourUsername/hbb_common).
3. Update Submodule Pointer
- Go to your forked
rustdeskrepository. - Edit the
.gitmodulesfile (in the root directory). - Find line 3 (
url = ...). - Replace the default URL with the link to your own
hbb_commonfork. - Commit changes.
[submodule "libs/hbb_common"]
path = libs/hbb_common
url = https://github.com/your_username/hbb_common
4. Enable Artifacts Upload
- Edit
.github/workflows/flutter-ci.yml(orflutter-build.yml). - Find the last line:
upload-artifact: false. - Change
falsetotrue. - Commit changes.
pub fn use_ws() -> bool {
return true; // <--- Insert this line
let option = keys::OPTION_ALLOW_WEBSOCKET;
option2bool(option, &Config::get_option(option))
}
5. Extra Step: Force Enable WebSocket
- Go back to
hbb_common/src/config.rs. - Search for the function
pub fn use_ws() -> bool. - Insert
return true;immediately above the linelet option = keys::OPTION_ALLOW_WEBSOCKET; - Commit changes.
6. Build
- Go to the Actions tab in your
rustdeskrepository. - Select “Full Flutter CI” (or the corresponding build workflow).
- Click “Run workflow”.
- Wait about 1 hour for it to complete, then download the artifact.
