1.1.5
- added patch repositories mirrors
This commit is contained in:
parent
4144faf0cd
commit
fb775feff6
4 changed files with 19 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "anime-launcher-sdk"
|
name = "anime-launcher-sdk"
|
||||||
version = "1.1.4"
|
version = "1.1.5"
|
||||||
authors = ["Nikita Podvirnyy <suimin.tu.mu.ga.mi@gmail.com>"]
|
authors = ["Nikita Podvirnyy <suimin.tu.mu.ga.mi@gmail.com>"]
|
||||||
license = "GPL-3.0"
|
license = "GPL-3.0"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|
|
@ -22,6 +22,7 @@ impl Default for Patch {
|
||||||
path: launcher_dir.join("patch"),
|
path: launcher_dir.join("patch"),
|
||||||
|
|
||||||
servers: vec![
|
servers: vec![
|
||||||
|
String::from("https://codeberg.org/an-anime-team/dawn"),
|
||||||
String::from("https://notabug.org/Krock/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
|
servers
|
||||||
},
|
},
|
||||||
None => default.servers
|
None => default.servers
|
||||||
|
|
|
@ -22,6 +22,7 @@ impl Default for Patch {
|
||||||
path: launcher_dir.join("patch"),
|
path: launcher_dir.join("patch"),
|
||||||
|
|
||||||
servers: vec![
|
servers: vec![
|
||||||
|
String::from("https://codeberg.org/an-anime-team/dusk"),
|
||||||
String::from("https://notabug.org/mkrsym1/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
|
servers
|
||||||
},
|
},
|
||||||
None => default.servers
|
None => default.servers
|
||||||
|
|
|
@ -21,6 +21,7 @@ impl Default for Patch {
|
||||||
path: launcher_dir.join("patch"),
|
path: launcher_dir.join("patch"),
|
||||||
|
|
||||||
servers: vec![
|
servers: vec![
|
||||||
|
String::from("https://codeberg.org/an-anime-team/astra"),
|
||||||
String::from("https://notabug.org/mkrsym1/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
|
servers
|
||||||
},
|
},
|
||||||
None => default.servers
|
None => default.servers
|
||||||
|
|
Loading…
Reference in a new issue