Add CUFG (China Flutter User Group)

This commit is contained in:
MadDogOwner 2025-04-15 07:23:58 +08:00 committed by ccmywish
parent 5e0b02cf3f
commit b2a5b0add3
5 changed files with 39 additions and 8 deletions

View File

@ -66,6 +66,7 @@
#include "recipe/lang/Rust/rustup.c"
#include "recipe/lang/Rust/Cargo.c"
#include "recipe/lang/Dart/common.h"
#include "recipe/lang/Dart/Pub.c"
#include "recipe/lang/Dart/Flutter.c"

View File

@ -13,14 +13,21 @@
* ------------------------------------------------------------*/
/**
* @update 2024-10-31
* @update 2025-04-15
*/
static SourceProvider_t pl_dart_flutter_upstream =
{
def_upstream, "https://storage.googleapis.com",
{NotSkip, NA, NA, "https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_v1.0.0-stable.tar.xz"} // 231 MB
};
static Source_t pl_dart_flutter_sources[] =
{
{&UpstreamProvider, "https://storage.googleapis.com"},
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn"}, // 没有后缀,怀疑是否存在问题
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/git/flutter"}, // URL 带 git
{&Nju, "https://mirror.nju.edu.cn/flutter"}
{&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"}
};
def_sources_n(pl_dart_flutter);

View File

@ -12,11 +12,18 @@
* ------------------------------------------------------------*/
/**
* @update 2024-10-31
* @update 2025-04-15
*/
static SourceProvider_t pl_dart_upstream =
{
def_upstream, "https://pub.dev",
{NotSkip, NA, NA, "https://pub.dev/packages/flutter_vision/versions/1.1.4.tar.gz"} // 37.05 MB
};
static Source_t pl_dart_sources[] =
{
{&UpstreamProvider, "https://pub.dev"},
{&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"}

View File

@ -0,0 +1,16 @@
/** ------------------------------------------------------------
* SPDX-License-Identifier: GPL-3.0-or-later
* -------------------------------------------------------------
* File Authors : Aoran Zeng <ccmywish@qq.com>
* Contributors : czyt <czyt.go@gmail.com>
* |
* Created On : <2025-04-15>
* Major Revision : 1
* Last Modified : <2025-04-15>
* ------------------------------------------------------------*/
static MirrorSite_t FlutterCN =
{
"cfug", "CFUG", "China Flutter User Group", "https://flutter.cn/",
{NotSkip, NA, NA, "https://storage.flutter-io.cn/flutter_infra_release/releases/stable/linux/flutter_linux_v1.0.0-stable.tar.xz"} // 231 MB
};

View File

@ -167,7 +167,7 @@ available_mirrors[] = {
&Api7, &Fit2Cloud, &DaoCloud,
/* 专用镜像站 */
&RubyChina, &EmacsChina, &NpmMirror, &GoProxyIO, &GoProxyCN, &RsProxyCN,
&RubyChina, &EmacsChina, &NpmMirror, &GoProxyIO, &GoProxyCN, &RsProxyCN, &FlutterCN,
// 暂不支持 &NugetOrg
// 不要列出 &UpstreamProvider 和 &UserDefinedProvider