mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 15:57:25 +00:00
Merge branch 'master' into v1.2.4-dev
This commit is contained in:
6
.github/workflows/main.yml
vendored
6
.github/workflows/main.yml
vendored
@@ -78,7 +78,7 @@ jobs:
|
|||||||
name: ios_build
|
name: ios_build
|
||||||
path: result/
|
path: result/
|
||||||
Build_Android:
|
Build_Android:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: subosito/flutter-action@v2
|
- uses: subosito/flutter-action@v2
|
||||||
@@ -129,7 +129,7 @@ jobs:
|
|||||||
name: windows_build
|
name: windows_build
|
||||||
path: build/windows/Venera-*
|
path: build/windows/Venera-*
|
||||||
Build_Linux:
|
Build_Linux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: subosito/flutter-action@v2
|
- uses: subosito/flutter-action@v2
|
||||||
@@ -182,7 +182,7 @@ jobs:
|
|||||||
path: build/linux/x64/release/debian # This is a bug related to flutter_to_debian, but it's not a big deal.
|
path: build/linux/x64/release/debian # This is a bug related to flutter_to_debian, but it's not a big deal.
|
||||||
|
|
||||||
Release:
|
Release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
needs: [Build_MacOS, Build_IOS, Build_Android, Build_Windows, Build_Linux, Build_Linux_ARM64]
|
needs: [Build_MacOS, Build_IOS, Build_Android, Build_Windows, Build_Linux, Build_Linux_ARM64]
|
||||||
if: github.event_name == 'release' # 仅在 push 事件时执行
|
if: github.event_name == 'release' # 仅在 push 事件时执行
|
||||||
steps:
|
steps:
|
||||||
|
@@ -156,7 +156,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) {
|
||||||
|
@@ -15,9 +15,6 @@ extension TagsTranslation on String{
|
|||||||
static final Map<String, Map<String, String>> _data = {};
|
static final Map<String, Map<String, String>> _data = {};
|
||||||
|
|
||||||
static Future<void> readData() async{
|
static Future<void> readData() async{
|
||||||
if(App.locale.languageCode != "zh"){
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
var fileName = App.locale.countryCode == 'TW'
|
var fileName = App.locale.countryCode == 'TW'
|
||||||
? "assets/tags_tw.json"
|
? "assets/tags_tw.json"
|
||||||
: "assets/tags.json";
|
: "assets/tags.json";
|
||||||
|
@@ -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