RustDesk-Dev

#update hbb submodule

git submodule set-url libs/hbb_common https://github.com/IamTaoChen/hbb_common.git
git submodule sync
git submodule update --init --recursive
cd libs/hbb_common
git fetch
git checkout mine

#CI config

.github/workflows/flutter-build.yml  -> 47
DEFAULT_PASSWORD: "${{ secrets.DEFAULT_PASSWORD }}"
RENDEZVOUS_SERVER: "${{ secrets.RENDEZVOUS_SERVER }}"
RS_PUB_KEY: "${{ secrets.RS_PUB_KEY }}"
API_SERVER: "${{ secrets.API_SERVER }}"
#Config
libs/hbb_common/src/config.rs -> 74
# delete
pub static ref HARD_SETTINGS: RwLock<HashMap<String, String>> = Default::default();
pub static ref PROD_RENDEZVOUS_SERVER: RwLock<String> = RwLock::new("".to_owned());
pub const RS_PUB_KEY: ....
pub static ref HARD_SETTINGS: RwLock<HashMap<String, String>> = {
        match option_env!("DEFAULT_PASSWORD") {
            Some(password) if !password.is_empty() => {
                let mut map = HashMap::new();
                map.insert("password".to_string(), password.to_string());
                RwLock::new(map)
            }
            _ => Default::default(),
        }
    };
    pub static ref PROD_RENDEZVOUS_SERVER: RwLock<String> = RwLock::new(match option_env!("RENDEZVOUS_SERVER") {
        Some(key) if !key.is_empty() => key,
        _ => "",
    }.to_owned());
    
    
# 114    
pub const PUBLIC_RS_PUB_KEY: &str = "OeVuKk5nlHiXp+APNn0Y3pC1Iwpwn44JGqrQCsWqmBw=";
pub const RS_PUB_KEY: &str = match option_env!("RS_PUB_KEY") {
    Some(key) if !key.is_empty() => key,
    _ => PUBLIC_RS_PUB_KEY,
};

#UI

flutter/lib/desktop/pages/desktop_home_page.dart -> 400
'${translate("Your Desktop")} @ KyzDt',
flutter/lib/desktop/pages/desktop_home_page.dart -> 426
Widget buildHelpCards(String updateUrl) {
    // if (!bind.isCustomClient() &&
    //     updateUrl.isNotEmpty &&
    //     !isCardClosed &&
    //     bind.mainUriPrefixSync().contains('rustdesk')) {
    //   return buildInstallCard(
    //       "Status",
    //       "There is a newer version of ${bind.mainGetAppNameSync()} ${bind.mainGetNewVersion()} available.",
    //       "Click to download", () async {
    //     final Uri url = Uri.parse('https://rustdesk.com/download');
    //     await launchUrl(url);
    //   }, closeButton: true);
    // }


赞(0) 打赏
未经允许不得转载:建站相关 » RustDesk-Dev

评论 抢沙发

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏