customizing
This commit is contained in:
parent
fc36941ffe
commit
0a1c951a06
@ -1,11 +1,11 @@
|
||||
[package]
|
||||
name = "rustdesk"
|
||||
name = "raindesk"
|
||||
version = "1.2.4"
|
||||
authors = ["rustdesk <info@rustdesk.com>"]
|
||||
authors = ["rustdesk <lm@rainss.cn>"]
|
||||
edition = "2021"
|
||||
build= "build.rs"
|
||||
description = "RustDesk Remote Desktop"
|
||||
default-run = "rustdesk"
|
||||
default-run = "raindesk"
|
||||
rust-version = "1.75"
|
||||
|
||||
[lib]
|
||||
@ -194,7 +194,7 @@ os-version = "0.2"
|
||||
hound = "3.5"
|
||||
|
||||
[package.metadata.bundle]
|
||||
name = "RustDesk See Rain"
|
||||
name = "RainDesk"
|
||||
identifier = "com.carriez.rustdesk"
|
||||
icon = ["res/32x32.png", "res/128x128.png", "res/128x128@2x.png"]
|
||||
osx_minimum_system_version = "10.14"
|
||||
|
||||
@ -1607,7 +1607,7 @@ class _AboutState extends State<_About> {
|
||||
child: SingleChildScrollView(
|
||||
controller: scrollController,
|
||||
physics: DraggableNeverScrollableScrollPhysics(),
|
||||
child: _Card(title: '${translate('About')} RustDesk', children: [
|
||||
child: _Card(title: '${translate('About')} RustDesk For 浅语', children: [
|
||||
Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
@ -1633,7 +1633,7 @@ class _AboutState extends State<_About> {
|
||||
).marginSymmetric(vertical: 4.0)),
|
||||
InkWell(
|
||||
onTap: () {
|
||||
launchUrlString('https://rustdesk.com');
|
||||
launchUrlString('https://rainss.cn');
|
||||
},
|
||||
child: Text(
|
||||
translate('Website'),
|
||||
|
||||
@ -776,7 +776,7 @@ function getApiServer() {
|
||||
return `http://${s}`;
|
||||
}
|
||||
}
|
||||
return 'https://admin.rustdesk.com';
|
||||
return 'https://raindesk.suger.live';
|
||||
}
|
||||
|
||||
function getAuditServer(typ) {
|
||||
|
||||
@ -62,7 +62,7 @@ lazy_static::lazy_static! {
|
||||
_ => "",
|
||||
}.to_owned());
|
||||
pub static ref EXE_RENDEZVOUS_SERVER: RwLock<String> = Default::default();
|
||||
pub static ref APP_NAME: RwLock<String> = RwLock::new("RustDesk".to_owned());
|
||||
pub static ref APP_NAME: RwLock<String> = RwLock::new("RainDesk".to_owned());
|
||||
static ref KEY_PAIR: Mutex<Option<KeyPair>> = Default::default();
|
||||
static ref USER_DEFAULT_CONFIG: RwLock<(UserDefaultConfig, Instant)> = RwLock::new((UserDefaultConfig::load(), Instant::now()));
|
||||
pub static ref NEW_STORED_PEER_CONFIG: Mutex<HashSet<String>> = Default::default();
|
||||
@ -101,7 +101,7 @@ const CHARS: &[char] = &[
|
||||
'm', 'n', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
|
||||
];
|
||||
|
||||
pub const RENDEZVOUS_SERVERS: &[&str] = &["hbbs.rains.autos"];
|
||||
pub const RENDEZVOUS_SERVERS: &[&str] = &["hbbs.raindesk.suger.live"];
|
||||
pub const PUBLIC_RS_PUB_KEY: &str = "RBpKEUU0Sjr0+z41zqbaIPGF96HMVgdRzHyj4GoQE90=";
|
||||
|
||||
pub const RS_PUB_KEY: &str = match option_env!("RS_PUB_KEY") {
|
||||
|
||||
@ -1055,12 +1055,12 @@ pub fn get_api_server(api: String, custom: String) -> String {
|
||||
return format!("http://{}", s);
|
||||
}
|
||||
}
|
||||
"https://admin.rustdesk.com".to_owned()
|
||||
"https://raindesk.suger.live".to_owned()
|
||||
}
|
||||
|
||||
pub fn get_audit_server(api: String, custom: String, typ: String) -> String {
|
||||
let url = get_api_server(api, custom);
|
||||
if url.is_empty() || url.contains("rustdesk.com") {
|
||||
if url.is_empty() || url.contains("suger.live") {
|
||||
return "".to_owned();
|
||||
}
|
||||
format!("{}/api/audit/{}", url, typ)
|
||||
|
||||
@ -141,7 +141,7 @@ fn heartbeat_url() -> String {
|
||||
Config::get_option("api-server"),
|
||||
Config::get_option("custom-rendezvous-server"),
|
||||
);
|
||||
if url.is_empty() || url.contains("rustdesk.com") {
|
||||
if url.is_empty() || url.contains("suger.live") {
|
||||
return "".to_owned();
|
||||
}
|
||||
format!("{}/api/heartbeat", url)
|
||||
|
||||
@ -42,7 +42,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("starts with a letter", "以字母开头"),
|
||||
("allowed characters", "使用允许的字符"),
|
||||
("id_change_tip", "只可以使用字母 a-z, A-Z, 0-9, _ (下划线)。首字母必须是 a-z, A-Z。长度在 6 与 16 之间。"),
|
||||
("Website", "网站"),
|
||||
("Website", "浅语的站点"),
|
||||
("About", "关于"),
|
||||
("Slogan_tip", ""),
|
||||
("Privacy Statement", "隐私声明"),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user