feat: extension store (#1301)

This commit is contained in:
Levi authored and GitHub committed 2026-03-06 21:53:19 +08:00
1 parent bc5c818eae
commit d36b345f92
12 files changed
+1791 -425

No files matched your search

+2 -2
View File
@@ -11,6 +11,7 @@ import 'package:path_provider/path_provider.dart';
import 'package:url_launcher/url_launcher.dart';
import '../api/api.dart';
import '../api/gopeed_site_api.dart';
import '../app/views/outlined_button_loading.dart';
import 'arch/arch.dart';
import 'github_mirror.dart';
@@ -70,8 +71,7 @@ Future<VersionInfo?> checkUpdate() async {
"https://api.github.com/repos/GopeedLab/gopeed/releases/latest"))
.data;
} catch (e) {
releaseDataStr =
(await proxyRequest("https://gopeed.com/api/release")).data;
releaseDataStr = jsonEncode(await GopeedSiteApi.instance.getRelease());
}
if (releaseDataStr == null) {
return null;