mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 07:47:24 +00:00
replace raw.githubusercontent.com
This commit is contained in:
@@ -155,7 +155,7 @@ class _Settings with ChangeNotifier {
|
|||||||
'customImageProcessing': defaultCustomImageProcessing,
|
'customImageProcessing': defaultCustomImageProcessing,
|
||||||
'sni': true,
|
'sni': true,
|
||||||
'autoAddLanguageFilter': 'none', // none, chinese, english, japanese
|
'autoAddLanguageFilter': 'none', // none, chinese, english, japanese
|
||||||
'comicSourceListUrl': "https://raw.githubusercontent.com/venera-app/venera-configs/master/index.json",
|
'comicSourceListUrl': "https://cdn.jsdelivr.net/gh/venera-app/venera-configs@latest/index.json",
|
||||||
};
|
};
|
||||||
|
|
||||||
operator [](String key) {
|
operator [](String key) {
|
||||||
|
@@ -86,7 +86,7 @@ class _AboutSettingsState extends State<AboutSettings> {
|
|||||||
|
|
||||||
Future<bool> checkUpdate() async {
|
Future<bool> checkUpdate() async {
|
||||||
var res = await AppDio().get(
|
var res = await AppDio().get(
|
||||||
"https://raw.githubusercontent.com/venera-app/venera/refs/heads/master/pubspec.yaml");
|
"https://cdn.jsdelivr.net/gh/venera-app/venera@latest/pubspec.yaml");
|
||||||
if (res.statusCode == 200) {
|
if (res.statusCode == 200) {
|
||||||
var data = loadYaml(res.data);
|
var data = loadYaml(res.data);
|
||||||
if (data["version"] != null) {
|
if (data["version"] != null) {
|
||||||
|
@@ -29,7 +29,7 @@ file.close()
|
|||||||
|
|
||||||
if not os.path.exists("windows/ChineseSimplified.isl"):
|
if not os.path.exists("windows/ChineseSimplified.isl"):
|
||||||
# download ChineseSimplified.isl
|
# download ChineseSimplified.isl
|
||||||
url = "https://raw.githubusercontent.com/kira-96/Inno-Setup-Chinese-Simplified-Translation/refs/heads/main/ChineseSimplified.isl"
|
url = "https://cdn.jsdelivr.net/gh/kira-96/Inno-Setup-Chinese-Simplified-Translation@latest/ChineseSimplified.isl"
|
||||||
response = httpx.get(url)
|
response = httpx.get(url)
|
||||||
with open('windows/ChineseSimplified.isl', 'wb') as file:
|
with open('windows/ChineseSimplified.isl', 'wb') as file:
|
||||||
file.write(response.content)
|
file.write(response.content)
|
||||||
|
Reference in New Issue
Block a user