作者: Hugh

  • Build Pre-configured RustDesk Client on GitHub

    1. Fork Repositories

    2. Configure Server Details

    • Go to your forked hbb_common repository.
    • Edit hbb_common/src/config.rs and find the RENDEZVOUS_SERVERS constant (around line 109).
    • Replace rs-ny.rustdesk.com with your RustDesk server address.
    • Replace the default key OeVu... with your RustDesk public key.
    • Commit changes.
    • Copy your hbb_common repository URL (e.g., https://github.com/YourUsername/hbb_common).

    3. Update Submodule Pointer

    • Go to your forked rustdesk repository.
    • Edit the .gitmodules file (in the root directory).
    • Find line 3 (url = ...).
    • Replace the default URL with the link to your own hbb_common fork.
    • 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 (or flutter-build.yml).
    • Find the last line: upload-artifact: false.
    • Change false to true.
    • 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 line let option = keys::OPTION_ALLOW_WEBSOCKET;
    • Commit changes.

    6. Build

    • Go to the Actions tab in your rustdesk repository.
    • Select “Full Flutter CI” (or the corresponding build workflow).
    • Click “Run workflow”.
    • Wait about 1 hour for it to complete, then download the artifact.
  • Hugh’s site 1st show

    很开心搭建自己的blog,来记录生活的点滴。

    这是我的Bengal cat,刚满一岁。喵!!!