- added patch repositories mirrors
This commit is contained in:
Observer KRypt0n_ 2023-05-04 12:58:44 +02:00
parent 4144faf0cd
commit fb775feff6
No known key found for this signature in database
GPG key ID: 844DA47BA25FE1E2
4 changed files with 19 additions and 1 deletions

View file

@ -1,6 +1,6 @@
[package]
name = "anime-launcher-sdk"
version = "1.1.4"
version = "1.1.5"
authors = ["Nikita Podvirnyy <suimin.tu.mu.ga.mi@gmail.com>"]
license = "GPL-3.0"
readme = "README.md"

View file

@ -22,6 +22,7 @@ impl Default for Patch {
path: launcher_dir.join("patch"),
servers: vec![
String::from("https://codeberg.org/an-anime-team/dawn"),
String::from("https://notabug.org/Krock/dawn")
],
@ -57,6 +58,11 @@ impl From<&JsonValue> for Patch {
}
}
// Add repository mirror if it's not here (so old default installation)
if servers.as_ref() == ["https://notabug.org/Krock/dawn"] {
servers = default.servers;
}
servers
},
None => default.servers

View file

@ -22,6 +22,7 @@ impl Default for Patch {
path: launcher_dir.join("patch"),
servers: vec![
String::from("https://codeberg.org/an-anime-team/dusk"),
String::from("https://notabug.org/mkrsym1/dusk")
],
@ -57,6 +58,11 @@ impl From<&JsonValue> for Patch {
}
}
// Add repository mirror if it's not here (so old default installation)
if servers.as_ref() == ["https://notabug.org/mkrsym1/dusk"] {
servers = default.servers;
}
servers
},
None => default.servers

View file

@ -21,6 +21,7 @@ impl Default for Patch {
path: launcher_dir.join("patch"),
servers: vec![
String::from("https://codeberg.org/an-anime-team/astra"),
String::from("https://notabug.org/mkrsym1/astra")
],
@ -54,6 +55,11 @@ impl From<&JsonValue> for Patch {
}
}
// Add repository mirror if it's not here (so old default installation)
if servers.as_ref() == ["https://notabug.org/mkrsym1/astra"] {
servers = default.servers;
}
servers
},
None => default.servers