change:修改部分axolotl为starlight
(不过怎么这么多)
This commit is contained in:
1043
packages/app-lib/java/hs_err_pid18436.log
Normal file
1043
packages/app-lib/java/hs_err_pid18436.log
Normal file
File diff suppressed because it is too large
Load Diff
14069
packages/app-lib/java/replay_pid18436.log
Normal file
14069
packages/app-lib/java/replay_pid18436.log
Normal file
File diff suppressed because one or more lines are too long
@ -1,11 +1,11 @@
|
||||
pub const PRODUCT_NAME: &str = "Axolotl Launcher";
|
||||
pub const SHORT_PRODUCT_NAME: &str = "Axolotl";
|
||||
pub const WEBSITE: &str = "https://www.ghs.red";
|
||||
pub const BUNDLE_IDENTIFIER: &str = "red.ghs.axolotl";
|
||||
pub const DEEP_LINK_SCHEME: &str = "axolotl";
|
||||
pub const PRODUCT_NAME: &str = "Starlight Launcher";
|
||||
pub const SHORT_PRODUCT_NAME: &str = "Starlight";
|
||||
pub const WEBSITE: &str = "https://skin.starlight.cool/";
|
||||
pub const BUNDLE_IDENTIFIER: &str = "cool.starlight.launcher";
|
||||
pub const DEEP_LINK_SCHEME: &str = "starlight";
|
||||
|
||||
pub fn user_agent(version: &str, os: &str) -> String {
|
||||
format!("garbage-human-studio/axolotl/{version} ({os})")
|
||||
format!("garbage-human-studio/starlight/{version} ({os})")
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
@ -16,7 +16,7 @@ mod tests {
|
||||
fn user_agent_is_unique_and_contains_no_contact_information() {
|
||||
let user_agent = user_agent("1.2.3", "windows");
|
||||
|
||||
assert_eq!(user_agent, "garbage-human-studio/axolotl/1.2.3 (windows)");
|
||||
assert_eq!(user_agent, "garbage-human-studio/starlight/1.2.3 (windows)");
|
||||
assert!(!user_agent.contains("ghs.red"));
|
||||
assert!(!user_agent.contains("http"));
|
||||
assert!(!user_agent.contains('@'));
|
||||
|
||||
Reference in New Issue
Block a user