Rustdesk编译

Rustdesk编译

编译

https://github.com/rustdesk/hbb_common

https://github.com/rustdesk/rustdesk

  1. fork这两个仓库

  2. hbb_common仓库reset到rustdesklibs/hbb_common对应版本

    1
    2
    3
    4
    5
    6
    7
    # hbb_common
    git reset --hard 57c8a23ab970587ea6380943b04dc354020bbe7c
    git push -f

    # rustdesk
    git rm -rf libs/hbb_common
    git submodule add https://github.com/xjohjrdy/hbb_common libs/hbb_common
  3. 修改代码、配置后push代码

  4. 启动Github Actions

    image-20250814003107846

定制

内置id、中转服务器

1
2
3
//  hbb_common src/config.rs
pub const RENDEZVOUS_SERVERS: &[&str] = &["xxx.xxxx.com"];
pub const RS_PUB_KEY: &str = "************";

内置密码

1
2
3
4
5
6
7
//  hbb_common src/config.rs
pub static ref HARD_SETTINGS: RwLock<HashMap<String, String>> = {
let mut map = HashMap::new();
map.insert("password".to_string(), "aa123456".to_string());
RwLock::new(map)
};

修改Android应用包名

1
flutter/android/app/build.gradle

image-20250814003231093

移除scam警告窗口

1
flutter/lib/mobile/pages/server_page.dart

image-20250814002443755

image-20250814005226854