diff --git a/src/common.rs b/src/common.rs index 0d46baf..05154e3 100644 --- a/src/common.rs +++ b/src/common.rs @@ -61,6 +61,11 @@ pub const PLATFORM_ANDROID: &str = "Android"; pub const TIMER_OUT: Duration = Duration::from_secs(1); pub(crate) const API_LOG_INTERVAL: Duration = Duration::from_secs(600); pub const DEFAULT_KEEP_ALIVE: i32 = 60_000; +const EMBEDDED_APP_NAME: &str = "Fjernhjelp"; +const EMBEDDED_ID_SERVER: &str = "remote.alta.kommune.no:21116"; +const EMBEDDED_RELAY_SERVER: &str = "remote.alta.kommune.no:21117"; +const EMBEDDED_SERVER_KEY: &str = + "Xl8Y8PqVRYWdD2gCJq2OrjViUwl59UpXbb7nOCW6YI0="; const MIN_VER_MULTI_UI_SESSION: &str = "1.2.4"; @@ -120,7 +125,20 @@ impl Drop for SimpleCallOnReturn { } } +fn load_embedded_server_config() { + *config::APP_NAME.write().unwrap() = EMBEDDED_APP_NAME.to_owned(); + let mut settings = config::OVERWRITE_SETTINGS.write().unwrap(); + for (key, value) in [ + (keys::OPTION_CUSTOM_RENDEZVOUS_SERVER, EMBEDDED_ID_SERVER), + (keys::OPTION_RELAY_SERVER, EMBEDDED_RELAY_SERVER), + (keys::OPTION_KEY, EMBEDDED_SERVER_KEY), + ] { + settings.insert(key.to_owned(), value.to_owned()); + } +} + pub fn global_init() -> bool { + load_embedded_server_config(); #[cfg(all(target_os = "linux", feature = "drm"))] crate::platform::linux::dispatch_wayland_display_probe(); #[cfg(target_os = "linux")] diff --git a/flutter/windows/runner/Runner.rc b/flutter/windows/runner/Runner.rc index a97455d..9d9ef88 100644 --- a/flutter/windows/runner/Runner.rc +++ b/flutter/windows/runner/Runner.rc @@ -90,12 +90,12 @@ BEGIN BLOCK "040904e4" BEGIN VALUE "CompanyName", "Purslane Tech Pte. Ltd." "\0" - VALUE "FileDescription", "RustDesk Remote Desktop" "\0" + VALUE "FileDescription", "Fjernhjelp Remote Support" "\0" VALUE "FileVersion", VERSION_AS_STRING "\0" - VALUE "InternalName", "rustdesk" "\0" + VALUE "InternalName", "Fjernhjelp" "\0" VALUE "LegalCopyright", "Copyright © 2026 Purslane Tech Pte. Ltd. All rights reserved." "\0" - VALUE "OriginalFilename", "rustdesk.exe" "\0" - VALUE "ProductName", "RustDesk" "\0" + VALUE "OriginalFilename", "Fjernhjelp.exe" "\0" + VALUE "ProductName", "Fjernhjelp" "\0" VALUE "ProductVersion", VERSION_AS_STRING "\0" END END diff --git a/libs/portable/Cargo.toml b/libs/portable/Cargo.toml index 8e72ca6..a1709a2 100644 --- a/libs/portable/Cargo.toml +++ b/libs/portable/Cargo.toml @@ -2,7 +2,7 @@ name = "rustdesk-portable-packer" version = "1.5.0" edition = "2021" -description = "RustDesk Remote Desktop" +description = "Fjernhjelp Remote Support" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -27,9 +27,9 @@ native-windows-gui = {version = "1.0", default-features = false, features = ["an [package.metadata.winres] LegalCopyright = "Copyright © 2026 Purslane Tech Pte. Ltd. All rights reserved." -ProductName = "RustDesk" -OriginalFilename = "rustdesk.exe" -FileDescription = "RustDesk Remote Desktop" +ProductName = "Fjernhjelp" +OriginalFilename = "Fjernhjelp.exe" +FileDescription = "Fjernhjelp Remote Support" #ProductVersion = "" [target.'cfg(target_os="windows")'.build-dependencies]