mirror of
https://github.com/RubyMetric/chsrc
synced 2025-08-07 11:29:39 +08:00
Add accurate speed url for Dart
This commit is contained in:
parent
6e40cfe238
commit
4010970b7f
@ -7,12 +7,14 @@
|
||||
* |
|
||||
* Created On : <2023-09-10>
|
||||
* Major Revision : 2
|
||||
* Last Modified : <2025-06-19>
|
||||
* Last Modified : <2025-07-11>
|
||||
*
|
||||
* 2024-09-14: 不得不将Dart和Flutter拆分为两个Target,
|
||||
* 因为3家教育网镜像站给出的 Dart 和 Flutter 换源URL模式都不一样
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
#define PL_Dart_Flutter_Speed_URL_Postfix "/flutter_infra_release/releases/stable/linux/flutter_linux_v1.0.0-stable.tar.xz"
|
||||
|
||||
/**
|
||||
* @update 2025-04-15
|
||||
*/
|
||||
@ -24,11 +26,15 @@ static SourceProvider_t pl_dart_flutter_upstream =
|
||||
|
||||
static Source_t pl_dart_flutter_sources[] =
|
||||
{
|
||||
{&pl_dart_flutter_upstream, "https://storage.googleapis.com"},
|
||||
{&FlutterCN, "https://storage.flutter-io.cn"},
|
||||
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn"}, // 没有后缀,怀疑是否存在问题
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/flutter"},
|
||||
{&Nju, "https://mirror.nju.edu.cn/flutter"}
|
||||
{&pl_dart_flutter_upstream, "https://storage.googleapis.com", DelegateToUpstream},
|
||||
{&FlutterCN, "https://storage.flutter-io.cn", DelegateToMirror},
|
||||
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn", NULL }, /* 官方文档也没有给后缀,怀疑是否存在问题 */
|
||||
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/flutter",
|
||||
"https://mirrors.tuna.tsinghua.edu.cn/flutter" PL_Dart_Flutter_Speed_URL_Postfix},
|
||||
|
||||
{&Nju, "https://mirror.nju.edu.cn/flutter",
|
||||
"https://mirror.nju.edu.cn/flutter" PL_Dart_Flutter_Speed_URL_Postfix}
|
||||
};
|
||||
def_sources_n(pl_dart_flutter);
|
||||
|
||||
|
@ -7,11 +7,13 @@
|
||||
* |
|
||||
* Created On : <2023-09-10>
|
||||
* Major Revision : 3
|
||||
* Last Modified : <2025-06-19>
|
||||
* Last Modified : <2025-07-11>
|
||||
*
|
||||
* Dart Pub 软件仓库
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
#define PL_Dart_Pub_Speed_URL_Postfix "/packages/flutter_vision/versions/1.1.4.tar.gz
|
||||
|
||||
/**
|
||||
* @update 2025-04-15
|
||||
*/
|
||||
@ -23,11 +25,19 @@
|
||||
|
||||
static Source_t pl_dart_sources[] =
|
||||
{
|
||||
{&pl_dart_upstream, "https://pub.dev"},
|
||||
{&FlutterCN, "https://pub.flutter-io.cn"},
|
||||
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/dart-pub"},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/dart-pub"},
|
||||
{&Nju, "https://mirror.nju.edu.cn/dart-pub"}
|
||||
{&pl_dart_upstream, "https://pub.dev", DelegateToUpstream},
|
||||
|
||||
{&FlutterCN, "https://pub.flutter-io.cn",
|
||||
"https://pub.flutter-io.cn" PL_Dart_Pub_Speed_URL_Postfix},
|
||||
|
||||
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/dart-pub",
|
||||
"https://mirror.sjtu.edu.cn/dart-pub" PL_Dart_Pub_Speed_URL_Postfix},
|
||||
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/dart-pub",
|
||||
"https://mirrors.tuna.tsinghua.edu.cn/dart-pub" PL_Dart_Pub_Speed_URL_Postfix},
|
||||
|
||||
{&Nju, "https://mirror.nju.edu.cn/dart-pub",
|
||||
"https://mirror.nju.edu.cn/dart-pub" PL_Dart_Pub_Speed_URL_Postfix}
|
||||
};
|
||||
def_sources_n(pl_dart);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user