mirror of
https://ghfast.top/https://github.com/StarCitizenToolBox/app.git
synced 2025-06-28 05:34:45 +08:00
迁移至自建服务
This commit is contained in:
@ -174,6 +174,7 @@ class HomeUIModel extends BaseUIModel {
|
||||
final t = await RSSApi.getRssText();
|
||||
rssTextItems = t;
|
||||
notifyListeners();
|
||||
dPrint("RSS update Success !");
|
||||
}
|
||||
|
||||
VoidCallback? doCheck() {
|
||||
|
@ -132,7 +132,7 @@ class LocalizationUIModel extends BaseUIModel {
|
||||
return () async {
|
||||
AnalyticsApi.touch("install_localization");
|
||||
final downloadUrl =
|
||||
"${AppConf.gitlabLocalizationUrl}/-/archive/${value.versionName}/LocalizationData-${value.versionName}.tar.bz2";
|
||||
"${AppConf.gitlabLocalizationUrl}/archive/${value.versionName}.tar.gz";
|
||||
final savePath =
|
||||
File("${downloadDir.absolute.path}\\${value.versionName}.sclang");
|
||||
try {
|
||||
@ -284,7 +284,7 @@ class LocalizationUIModel extends BaseUIModel {
|
||||
static StringBuffer _readArchive(String savePath) {
|
||||
final inputStream = InputFileStream(savePath);
|
||||
final archive =
|
||||
TarDecoder().decodeBytes(BZip2Decoder().decodeBuffer(inputStream));
|
||||
TarDecoder().decodeBytes(GZipDecoder().decodeBuffer(inputStream));
|
||||
StringBuffer globalIni = StringBuffer("");
|
||||
for (var element in archive.files) {
|
||||
if (element.name.contains("global.ini")) {
|
||||
|
@ -34,7 +34,8 @@ class UpgradeDialogUI extends BaseUI<UpgradeDialogUIModel> {
|
||||
),
|
||||
)
|
||||
] else
|
||||
...makeMarkdownView(model.description!),
|
||||
...makeMarkdownView(model.description!,
|
||||
attachmentsUrl: AppConf.giteaAttachmentsUrl),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
@ -24,12 +24,11 @@ class UpgradeDialogUIModel extends BaseUIModel {
|
||||
? AppConf.networkVersionData!.mSELastVersion!
|
||||
: AppConf.networkVersionData!.lastVersion!;
|
||||
final r = await Api.getAppReleaseDataByVersionName(targetVersion);
|
||||
description = r["description"];
|
||||
final assetsLinks = List.of(r["assets"]?["links"] ?? []);
|
||||
for (var link in assetsLinks) {
|
||||
if (link["name"].toString().contains("SETUP.exe")) {
|
||||
downloadUrl = link["direct_asset_url"];
|
||||
break;
|
||||
description = r["body"];
|
||||
final assets = List.of(r["assets"] ?? []);
|
||||
for (var asset in assets) {
|
||||
if (asset["name"].toString().endsWith("SETUP.exe")) {
|
||||
downloadUrl = asset["browser_download_url"];
|
||||
}
|
||||
}
|
||||
notifyListeners();
|
||||
|
Reference in New Issue
Block a user