Format code

This commit is contained in:
Aoran Zeng 2024-11-22 11:43:18 +08:00
parent 6e7b4bf985
commit 526a7feb89
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
57 changed files with 525 additions and 489 deletions

View File

@ -24,79 +24,93 @@
* *
* Wiki中的排序是根据 https://github.com/mirrorz-org/oh-my-mirrorz 挑选速度前10位 * Wiki中的排序是根据 https://github.com/mirrorz-org/oh-my-mirrorz 挑选速度前10位
*/ */
MirrorSite_t MirrorSite_t MirrorZ =
MirrorZ = { {
"mirrorz", "MirrorZ", "MirrorZ 校园网镜像站", "https://mirrors.cernet.edu.cn/", "mirrorz", "MirrorZ", "MirrorZ 校园网镜像站", "https://mirrors.cernet.edu.cn/",
{SKIP, "功能特殊无法测速,跳过", "SKIP because of its special function"} {SKIP, "功能特殊无法测速,跳过", "SKIP because of its special function"}
}, },
Tuna = { Tuna =
{
"tuna", "TUNA", "清华大学开源软件镜像站", "https://mirrors.tuna.tsinghua.edu.cn/", "tuna", "TUNA", "清华大学开源软件镜像站", "https://mirrors.tuna.tsinghua.edu.cn/",
{NotSkip, NA, NA, "https://mirrors.tuna.tsinghua.edu.cn/speedtest/1000mb.bin"} {NotSkip, NA, NA, "https://mirrors.tuna.tsinghua.edu.cn/speedtest/1000mb.bin"}
}, },
Sjtug_Zhiyuan = { Sjtug_Zhiyuan =
{
"sjtu", "SJTUG-zhiyuan", "上海交通大学致远镜像站", "https://mirrors.sjtug.sjtu.edu.cn/", "sjtu", "SJTUG-zhiyuan", "上海交通大学致远镜像站", "https://mirrors.sjtug.sjtu.edu.cn/",
{NotSkip, NA, NA, "https://mirrors.sjtug.sjtu.edu.cn/ctan" Big_File_ctan} {NotSkip, NA, NA, "https://mirrors.sjtug.sjtu.edu.cn/ctan" Big_File_ctan}
}, },
Zju = { Zju =
{
"zju", "ZJU", "浙江大学开源软件镜像站", "https://mirrors.zju.edu.cn/", "zju", "ZJU", "浙江大学开源软件镜像站", "https://mirrors.zju.edu.cn/",
{NotSkip, NA, NA, "https://mirrors.zju.edu.cn/ubuntu-releases" Big_File_ubuntu} {NotSkip, NA, NA, "https://mirrors.zju.edu.cn/ubuntu-releases" Big_File_ubuntu}
}, },
Lzuoss = { Lzuoss =
{
"lzu", "LZUOSS", "兰州大学开源社区镜像站", "https://mirror.lzu.edu.cn/", "lzu", "LZUOSS", "兰州大学开源社区镜像站", "https://mirror.lzu.edu.cn/",
{NotSkip, NA, NA, "https://mirror.lzu.edu.cn/CTAN" Big_File_ctan} {NotSkip, NA, NA, "https://mirror.lzu.edu.cn/CTAN" Big_File_ctan}
}, },
Jlu = { Jlu =
{
"jlu", "JLU", "吉林大学开源镜像站", "https://mirrors.jlu.edu.cn/", "jlu", "JLU", "吉林大学开源镜像站", "https://mirrors.jlu.edu.cn/",
{NotSkip, NA, NA, "https://mirrors.jlu.edu.cn/_static/speedtest.bin"} {NotSkip, NA, NA, "https://mirrors.jlu.edu.cn/_static/speedtest.bin"}
}, },
Bfsu = { Bfsu =
{
"bfsu", "BFSU", "北京外国语大学开源软件镜像站", "https://mirrors.bfsu.edu.cn/", "bfsu", "BFSU", "北京外国语大学开源软件镜像站", "https://mirrors.bfsu.edu.cn/",
{NotSkip, NA, NA, "https://mirrors.bfsu.edu.cn/speedtest/1000mb.bin"} {NotSkip, NA, NA, "https://mirrors.bfsu.edu.cn/speedtest/1000mb.bin"}
}, },
Pku = { Pku =
{
"pku", "PKU", "北京大学开源镜像站", "https://mirrors.pku.edu.cn/", "pku", "PKU", "北京大学开源镜像站", "https://mirrors.pku.edu.cn/",
{NotSkip, NA, NA, "https://mirrors.pku.edu.cn/ubuntu-releases" Big_File_ubuntu} {NotSkip, NA, NA, "https://mirrors.pku.edu.cn/ubuntu-releases" Big_File_ubuntu}
}, },
Bjtu = { Bjtu =
{
"bjtu", "BJTU", "北京交通大学自由与开源软件镜像站", "https://mirror.bjtu.edu.cn/", "bjtu", "BJTU", "北京交通大学自由与开源软件镜像站", "https://mirror.bjtu.edu.cn/",
{NotSkip, NA, NA, "https://mirror.bjtu.edu.cn/archlinux" Big_File_archlinux} {NotSkip, NA, NA, "https://mirror.bjtu.edu.cn/archlinux" Big_File_archlinux}
}, },
Sustech = { Sustech =
{
"sustech", "SUSTech", "南方科技大学开源软件镜像站", "https://mirrors.sustech.edu.cn/", "sustech", "SUSTech", "南方科技大学开源软件镜像站", "https://mirrors.sustech.edu.cn/",
{NotSkip, NA, NA, "https://mirrors.sustech.edu.cn/site/speedtest/1000mb.bin"} {NotSkip, NA, NA, "https://mirrors.sustech.edu.cn/site/speedtest/1000mb.bin"}
}, },
Ustc = { Ustc =
{
"ustc", "USTC", "中国科学技术大学开源镜像站", "https://mirrors.ustc.edu.cn/", "ustc", "USTC", "中国科学技术大学开源镜像站", "https://mirrors.ustc.edu.cn/",
{NotSkip, NA, NA, "https://mirrors.ustc.edu.cn/ubuntu-releases" Big_File_ubuntu} {NotSkip, NA, NA, "https://mirrors.ustc.edu.cn/ubuntu-releases" Big_File_ubuntu}
}, },
Hust = { Hust =
{
"hust", "HUST", "华中科技大学开源镜像站", "https://mirrors.hust.edu.cn/", "hust", "HUST", "华中科技大学开源镜像站", "https://mirrors.hust.edu.cn/",
{NotSkip, NA, NA, "https://mirrors.hust.edu.cn/ubuntu-releases" Big_File_ubuntu} {NotSkip, NA, NA, "https://mirrors.hust.edu.cn/ubuntu-releases" Big_File_ubuntu}
}, },
// 速度暂时处于10位以后但是目前可用的源 // 速度暂时处于10位以后但是目前可用的源
Iscas = { Iscas =
{
"iscas", "ISCAS", "中科院软件所智能软件研究中心开源镜像站", "https://mirror.iscas.ac.cn/", "iscas", "ISCAS", "中科院软件所智能软件研究中心开源镜像站", "https://mirror.iscas.ac.cn/",
{NotSkip, NA, NA, "https://mirror.iscas.ac.cn/ubuntu-releases" Big_File_ubuntu} {NotSkip, NA, NA, "https://mirror.iscas.ac.cn/ubuntu-releases" Big_File_ubuntu}
}, },
Scau = { Scau =
{
"scau", "SCAU", "华南农业大学开源软件镜像站", "https://mirrors.scau.edu.cn/", "scau", "SCAU", "华南农业大学开源软件镜像站", "https://mirrors.scau.edu.cn/",
{NotSkip, NA, NA, "https://mirrors.scau.edu.cn/ubuntu-releases" Big_File_ubuntu} {NotSkip, NA, NA, "https://mirrors.scau.edu.cn/ubuntu-releases" Big_File_ubuntu}
}, },
Nju = { Nju =
{
"nju", "NJU", "南京大学开源镜像站", "https://mirrors.nju.edu.cn/", "nju", "NJU", "南京大学开源镜像站", "https://mirrors.nju.edu.cn/",
{NotSkip, NA, NA, "https://mirrors.nju.edu.cn/archlinux" Big_File_archlinux} {NotSkip, NA, NA, "https://mirrors.nju.edu.cn/archlinux" Big_File_archlinux}
}; };
@ -104,7 +118,8 @@ Nju = {
/** /**
* @note 2023-09-05 使5ip封杀了 * @note 2023-09-05 使5ip封杀了
* *
* Cqu = { * Cqu =
* {
* "cqu", "CQU", "重庆大学开源软件镜像站", "https://mirrors.cqu.edu.cn/", * "cqu", "CQU", "重庆大学开源软件镜像站", "https://mirrors.cqu.edu.cn/",
* {NotSkip, NA, NA, "https://mirrors.cqu.edu.cn/speedtest/1000mb.bin"} * {NotSkip, NA, NA, "https://mirrors.cqu.edu.cn/speedtest/1000mb.bin"}
* }; * };
@ -116,58 +131,67 @@ Nju = {
/** /**
* *
*/ */
MirrorSite_t MirrorSite_t Ali =
Ali = { {
"ali", "Ali OPSX Public", "阿里巴巴开源镜像站(公网)", "https://developer.aliyun.com/mirror/", "ali", "Ali OPSX Public", "阿里巴巴开源镜像站(公网)", "https://developer.aliyun.com/mirror/",
{NotSkip, NA, NA, "https://mirrors.aliyun.com/deepin-cd" Big_File_deepin} {NotSkip, NA, NA, "https://mirrors.aliyun.com/deepin-cd" Big_File_deepin}
}, },
/* /*
// https://mirrors.cloud.aliyuncs.com/ // https://mirrors.cloud.aliyuncs.com/
Ali_ECS_VPC = { Ali_ECS_VPC =
{
"ali-ECS-VPC", "Ali OPSX ECS VPC", "阿里巴巴开源镜像站(ECS VPC网络)", "https://developer.aliyun.com/mirror/", "ali-ECS-VPC", "Ali OPSX ECS VPC", "阿里巴巴开源镜像站(ECS VPC网络)", "https://developer.aliyun.com/mirror/",
{NotSkip, NA, NA, "https://mirrors.cloud.aliyuncs.com/deepin-cd" Big_File_deepin} {NotSkip, NA, NA, "https://mirrors.cloud.aliyuncs.com/deepin-cd" Big_File_deepin}
}, },
// https://mirrors.aliyuncs.com/ // https://mirrors.aliyuncs.com/
Ali_ECS_classic = { Ali_ECS_classic =
{
"ali-ECS", "Ali OPSX ECS", "阿里巴巴开源镜像站(ECS 经典网络)", "https://developer.aliyun.com/mirror/", "ali-ECS", "Ali OPSX ECS", "阿里巴巴开源镜像站(ECS 经典网络)", "https://developer.aliyun.com/mirror/",
{NotSkip, NA, NA, "https://mirrors.aliyuncs.com/deepin-cd" Big_File_deepin} {NotSkip, NA, NA, "https://mirrors.aliyuncs.com/deepin-cd" Big_File_deepin}
}, },
*/ */
Tencent = { Tencent =
{
"tencent", "Tencent Public", "腾讯软件源(公网)", "https://mirrors.tencent.com/", "tencent", "Tencent Public", "腾讯软件源(公网)", "https://mirrors.tencent.com/",
{NotSkip, NA, NA, "https://mirrors.cloud.tencent.com/ubuntu-releases" Big_File_ubuntu} {NotSkip, NA, NA, "https://mirrors.cloud.tencent.com/ubuntu-releases" Big_File_ubuntu}
}, },
/* /*
Tencent_Intra = { Tencent_Intra =
{
"tencent-intra", "Tencent Intranet", "腾讯软件源(内网)", "https://mirrors.tencent.com/", "tencent-intra", "Tencent Intranet", "腾讯软件源(内网)", "https://mirrors.tencent.com/",
{NotSkip, NA, NA, "https://mirrors.cloud.tencentyun.com/ubuntu-releases" Big_File_ubuntu} {NotSkip, NA, NA, "https://mirrors.cloud.tencentyun.com/ubuntu-releases" Big_File_ubuntu}
}, },
*/ */
Huawei = { Huawei =
{
"huawei", "Huawei Cloud", "华为开源镜像站", "https://mirrors.huaweicloud.com/", "huawei", "Huawei Cloud", "华为开源镜像站", "https://mirrors.huaweicloud.com/",
{NotSkip, NA, NA, "https://mirrors.huaweicloud.com/ubuntu-releases" Big_File_ubuntu} {NotSkip, NA, NA, "https://mirrors.huaweicloud.com/ubuntu-releases" Big_File_ubuntu}
}, },
Volcengine = { Volcengine =
{
"volc", "Volcengine", "火山引擎开源软件镜像站(公网)", "https://developer.volcengine.com/mirror/", "volc", "Volcengine", "火山引擎开源软件镜像站(公网)", "https://developer.volcengine.com/mirror/",
{NotSkip, NA, NA, "https://mirrors.volces.com/ubuntu-releases" Big_File_ubuntu} {NotSkip, NA, NA, "https://mirrors.volces.com/ubuntu-releases" Big_File_ubuntu}
}, },
/* /*
Volceengine_Intra = { Volceengine_Intra =
{
"volc-intra", "Volcengine Intranet", "火山引擎开源软件镜像站(内网)", "volc-intra", "Volcengine Intranet", "火山引擎开源软件镜像站(内网)",
"https://developer.volcengine.com/mirror/", "https://developer.volcengine.com/mirror/",
"https://mirrors.ivolces.com/ubuntu-releases" Big_File_ubuntu }, "https://mirrors.ivolces.com/ubuntu-releases" Big_File_ubuntu },
*/ */
Netease = { Netease =
{
"netease", "Netease", "网易开源镜像站", "https://mirrors.163.com/", "netease", "Netease", "网易开源镜像站", "https://mirrors.163.com/",
{NotSkip, NA, NA, "https://mirrors.163.com/deepin-cd" Big_File_deepin} {NotSkip, NA, NA, "https://mirrors.163.com/deepin-cd" Big_File_deepin}
}, },
Sohu = { Sohu =
{
"sohu", "SOHU", "搜狐开源镜像站", "https://mirrors.sohu.com/", "sohu", "SOHU", "搜狐开源镜像站", "https://mirrors.sohu.com/",
{NotSkip, NA, NA, "https://mirrors.sohu.com/deepin-cd" Big_File_deepin} {NotSkip, NA, NA, "https://mirrors.sohu.com/deepin-cd" Big_File_deepin}
}; };

View File

@ -38,14 +38,14 @@ SourceProvider_t;
typedef SourceProvider_t MirrorSite_t; typedef SourceProvider_t MirrorSite_t;
SourceProvider_t SourceProvider_t UpstreamProvider =
UpstreamProvider = { {
"upstream", "Upstream", "上游默认源", NULL, "upstream", "Upstream", "上游默认源", NULL,
{SKIP, "上游默认源不测速", "SKIP for upstream source", NULL} {SKIP, "上游默认源不测速", "SKIP for upstream source", NULL}
}; },
SourceProvider_t UserDefinedProvider =
UserDefinedProvider = { {
"user", "用户自定义", "用户自定义", NULL, "user", "用户自定义", "用户自定义", NULL,
{SKIP, "用户自定义源不测速", "SKIP for user-defined source", NULL} {SKIP, "用户自定义源不测速", "SKIP for user-defined source", NULL}
}; };

View File

@ -11,11 +11,11 @@
* @time 2023-09-10 * @time 2023-09-10
* @note * @note
*/ */
static Source_t static Source_t pl_clojure_sources[] =
pl_clojure_sources[] = { {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/help/clojars/"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/help/clojars/"},
{&Ustc, "https://mirrors.ustc.edu.cn/help/clojars.html"} {&Ustc, "https://mirrors.ustc.edu.cn/help/clojars.html"}
}; };
def_sources_n(pl_clojure); def_sources_n(pl_clojure);

View File

@ -15,12 +15,12 @@
/** /**
* @update 2024-10-31 * @update 2024-10-31
*/ */
static Source_t static Source_t pl_dart_flutter_sources[] =
pl_dart_flutter_sources[] = { {
{&UpstreamProvider, "https://storage.googleapis.com"}, {&UpstreamProvider, "https://storage.googleapis.com"},
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn"}, // 没有后缀,怀疑是否存在问题 {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn"}, // 没有后缀,怀疑是否存在问题
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/git/flutter"}, // URL 带 git {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/git/flutter"}, // URL 带 git
{&Nju, "https://mirror.nju.edu.cn/flutter"} {&Nju, "https://mirror.nju.edu.cn/flutter"}
}; };
def_sources_n(pl_dart_flutter); def_sources_n(pl_dart_flutter);

View File

@ -14,12 +14,12 @@
/** /**
* @update 2024-10-31 * @update 2024-10-31
*/ */
static Source_t static Source_t pl_dart_sources[] =
pl_dart_sources[] = { {
{&UpstreamProvider, "https://pub.dev"}, {&UpstreamProvider, "https://pub.dev"},
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/dart-pub"}, {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/dart-pub"},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/dart-pub"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/dart-pub"},
{&Nju, "https://mirror.nju.edu.cn/dart-pub"} {&Nju, "https://mirror.nju.edu.cn/dart-pub"}
}; };
def_sources_n(pl_dart); def_sources_n(pl_dart);

View File

@ -9,13 +9,14 @@
* Last Modified : <2024-10-31> * Last Modified : <2024-10-31>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
static MirrorSite_t static MirrorSite_t GoProxyCN =
GoProxyCN = { {
"goproxy.cn", "Goproxy.cn", "Goproxy.cn (七牛云)", "https://goproxy.cn/", "goproxy.cn", "Goproxy.cn", "Goproxy.cn (七牛云)", "https://goproxy.cn/",
{NotSkip, NA, NA, "https://goproxy.cn/github.com/aws/aws-sdk-go/@v/v1.45.2.zip"} // 30 MB {NotSkip, NA, NA, "https://goproxy.cn/github.com/aws/aws-sdk-go/@v/v1.45.2.zip"} // 30 MB
}, },
GoProxyIO = { GoProxyIO =
{
"goproxy.io", "GOPROXY.IO", "GOPROXY.IO", "https://goproxy.io/", "goproxy.io", "GOPROXY.IO", "GOPROXY.IO", "https://goproxy.io/",
{NotSkip, NA, NA, "https://goproxy.io/github.com/aws/aws-sdk-go/@v/v1.45.2.zip"} // 30 MB {NotSkip, NA, NA, "https://goproxy.io/github.com/aws/aws-sdk-go/@v/v1.45.2.zip"} // 30 MB
}; };
@ -25,13 +26,13 @@ GoProxyIO = {
* @update 2024-10-31 * @update 2024-10-31
* @note * @note
*/ */
static Source_t static Source_t pl_go_sources[] =
pl_go_sources[] = { {
{&UpstreamProvider, "https://proxy.golang.org"}, {&UpstreamProvider, "https://proxy.golang.org"},
{&GoProxyCN, "https://goproxy.cn"}, {&GoProxyCN, "https://goproxy.cn"},
{&Ali, "https://mirrors.aliyun.com/goproxy/"}, {&Ali, "https://mirrors.aliyun.com/goproxy/"},
{&Huawei, "https://mirrors.huaweicloud.com/goproxy/"}, {&Huawei, "https://mirrors.huaweicloud.com/goproxy/"},
{&GoProxyIO, "https://goproxy.io"} {&GoProxyIO, "https://goproxy.io"}
}; };
def_sources_n(pl_go); def_sources_n(pl_go);

View File

@ -8,15 +8,15 @@
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
/** /**
* @time 2023-09-10 * @update 2023-09-10
*/ */
static Source_t static Source_t pl_haskell_sources[] =
pl_haskell_sources[] = { {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/hackage"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/hackage"},
{&Bfsu, "https://mirrors.bfsu.edu.cn/hackage"}, {&Bfsu, "https://mirrors.bfsu.edu.cn/hackage"},
{&Nju, "https://mirror.nju.edu.cn/hackage"}, {&Nju, "https://mirror.nju.edu.cn/hackage"},
{&Ustc, "https://mirrors.ustc.edu.cn/hackage"} {&Ustc, "https://mirrors.ustc.edu.cn/hackage"}
}; };
def_sources_n(pl_haskell); def_sources_n(pl_haskell);

View File

@ -11,12 +11,12 @@
* @time 2024-04-18 * @time 2024-04-18
* @note * @note
*/ */
static Source_t static Source_t pl_java_sources[] =
pl_java_sources[] = { {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL},
{&Ali, "https://maven.aliyun.com/repository/public/"}, {&Ali, "https://maven.aliyun.com/repository/public/"},
{&Huawei, "https://mirrors.huaweicloud.com/repository/maven/"}, {&Huawei, "https://mirrors.huaweicloud.com/repository/maven/"},
{&Netease, "http://mirrors.163.com/maven/repository/maven-public/"} // 网易的24小时更新一次 {&Netease, "http://mirrors.163.com/maven/repository/maven-public/"} // 网易的24小时更新一次
}; };
def_sources_n(pl_java); def_sources_n(pl_java);

View File

@ -8,15 +8,15 @@
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
/** /**
* @time 2023-09-05 * @update 2023-09-05
* @note * @note
*/ */
static Source_t static Source_t pl_julia_sources[] =
pl_julia_sources[] = { {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL},
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/julia"}, {&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/julia"},
{&Pku, "https://mirrors.pku.edu.cn/julia"}, {&Pku, "https://mirrors.pku.edu.cn/julia"},
{&Nju, "https://mirror.nju.edu.cn/julia"} {&Nju, "https://mirror.nju.edu.cn/julia"}
}; };
def_sources_n(pl_julia); def_sources_n(pl_julia);

View File

@ -7,21 +7,21 @@
* Last Modified : <2024-08-09> * Last Modified : <2024-08-09>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
static MirrorSite_t static MirrorSite_t Api7 =
Api7 = { {
"api7", "api7.ai", "深圳支流科技有限公司", "https://www.apiseven.com/", "api7", "api7.ai", "深圳支流科技有限公司", "https://www.apiseven.com/",
{SKIP, ToFill, ToFill, NULL} {SKIP, ToFill, ToFill, NULL}
}; };
/** /**
* @time 2023-09-27 * @update 2023-09-27
* @note * @note
*/ */
static Source_t static Source_t pl_lua_sources[] =
pl_lua_sources[] = { {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL},
{&Api7, "https://luarocks.cn"}, {&Api7, "https://luarocks.cn"},
}; };
def_sources_n(pl_lua); def_sources_n(pl_lua);

View File

@ -7,8 +7,9 @@
* Last Modified : <2024-08-09> * Last Modified : <2024-08-09>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
static MirrorSite_t static MirrorSite_t NugetOrg =
NugetOrg = {"nuget.org", "NuGet Org", "Nuget Organization", "https://www.nuget.org/", {
"nuget.org", "NuGet Org", "Nuget Organization", "https://www.nuget.org/",
{SKIP, ToFill, ToFill, NULL} {SKIP, ToFill, ToFill, NULL}
}; };
@ -19,11 +20,11 @@ NugetOrg = {"nuget.org", "NuGet Org", "Nuget Organization", "https://www.nuget.o
* https://mirrors.huaweicloud.com/mirrorDetail/5ebf85de07b41baf6d0882ab?mirrorName=nuget&catalog=language * https://mirrors.huaweicloud.com/mirrorDetail/5ebf85de07b41baf6d0882ab?mirrorName=nuget&catalog=language
* } * }
*/ */
static Source_t static Source_t pl_nuget_sources[] =
pl_nuget_sources[] = { {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL},
{&NugetOrg, "https://www.nuget.org/api/v2/"}, {&NugetOrg, "https://www.nuget.org/api/v2/"},
{&Huawei, "https://mirrors.huaweicloud.com/repository/nuget/v3"} {&Huawei, "https://mirrors.huaweicloud.com/repository/nuget/v3"}
}; };
def_sources_n(pl_nuget); def_sources_n(pl_nuget);

View File

@ -10,10 +10,10 @@
/** /**
* @update 2023-09-15 * @update 2023-09-15
*/ */
static Source_t static Source_t pl_ocaml_sources[] =
pl_ocaml_sources[] = { {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL},
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/git/opam-repository.git"} {&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/git/opam-repository.git"}
}; };
def_sources_n(pl_ocaml); def_sources_n(pl_ocaml);

View File

@ -11,13 +11,13 @@
* @update 2024-09-14 * @update 2024-09-14
* @note * @note
*/ */
static Source_t static Source_t pl_php_sources[] =
pl_php_sources[] = { {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL},
{&Ali, "https://mirrors.aliyun.com/composer/"}, {&Ali, "https://mirrors.aliyun.com/composer/"},
{&Tencent, "https://mirrors.tencent.com/composer/"}, {&Tencent, "https://mirrors.tencent.com/composer/"},
// {&Tencent_Intra, "https://mirrors.tencentyun.com/composer/"}, // {&Tencent_Intra, "https://mirrors.tencentyun.com/composer/"},
{&Huawei, "https://mirrors.huaweicloud.com/repository/php/"} {&Huawei, "https://mirrors.huaweicloud.com/repository/php/"}
}; };
def_sources_n(pl_php); def_sources_n(pl_php);

View File

@ -10,15 +10,15 @@
/** /**
* @update 2024-05-24 * @update 2024-05-24
*/ */
static Source_t static Source_t pl_perl_sources[] =
pl_perl_sources[] = { {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL},
{&Bfsu, "https://mirrors.bfsu.edu.cn/CPAN/"}, {&Bfsu, "https://mirrors.bfsu.edu.cn/CPAN/"},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/CPAN/"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/CPAN/"},
{&Bjtu, "https://mirror.bjtu.edu.cn/cpan/"}, {&Bjtu, "https://mirror.bjtu.edu.cn/cpan/"},
{&Hust, "https://mirrors.hust.edu.cn/CPAN/"}, {&Hust, "https://mirrors.hust.edu.cn/CPAN/"},
{&Ali, "https://mirrors.aliyun.com/CPAN/"}, {&Ali, "https://mirrors.aliyun.com/CPAN/"},
{&Lzuoss, "https://mirror.lzu.edu.cn/CPAN/"} {&Lzuoss, "https://mirror.lzu.edu.cn/CPAN/"}
}; };
def_sources_n(pl_perl); def_sources_n(pl_perl);

View File

@ -18,8 +18,8 @@ static SourceProvider_t UpstreamPython =
* @update 2024-09-14 * @update 2024-09-14
* @note Zjupypi在校外访问会自动转向Tuna * @note Zjupypi在校外访问会自动转向Tuna
*/ */
static Source_t static Source_t pl_python_sources[] =
pl_python_sources[] = { {
{&UpstreamPython, "https://pypi.org/simple"}, {&UpstreamPython, "https://pypi.org/simple"},
{&Bfsu, "https://mirrors.bfsu.edu.cn/pypi/web/simple"}, {&Bfsu, "https://mirrors.bfsu.edu.cn/pypi/web/simple"},
{&Lzuoss, "https://mirror.lzu.edu.cn/pypi/web/simple"}, {&Lzuoss, "https://mirror.lzu.edu.cn/pypi/web/simple"},

View File

@ -14,12 +14,12 @@
* cran的同时bioconductor * cran的同时bioconductor
* } * }
*/ */
static Source_t static Source_t pl_r_sources[] =
pl_r_sources[] = { {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL},
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/cran/"}, {&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/cran/"},
// {&Ali, "https://mirrors.aliyun.com/CRAN/"}, // {&Ali, "https://mirrors.aliyun.com/CRAN/"},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/CRAN/"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/CRAN/"},
// {&Sustech, "https://mirrors.sustech.edu.cn/CRAN"}, // {&Sustech, "https://mirrors.sustech.edu.cn/CRAN"},
// {&Bfsu, "https://mirrors.bfsu.edu.cn/CRAN/"}, // {&Bfsu, "https://mirrors.bfsu.edu.cn/CRAN/"},
// {&Bjtu, "https://mirror.bjtu.edu.cn/cran/"}, // {&Bjtu, "https://mirror.bjtu.edu.cn/cran/"},

View File

@ -12,8 +12,8 @@
* @note `sparse+` * @note `sparse+`
* @note `/` * @note `/`
*/ */
static Source_t static Source_t pl_rust_cargo_sources[] =
pl_rust_cargo_sources[] = { {
{&UpstreamProvider, "https://index.crates.io/"}, // @help 是这个吗? {&UpstreamProvider, "https://index.crates.io/"}, // @help 是这个吗?
{&MirrorZ, "https://mirrors.cernet.edu.cn/crates.io-index/"}, {&MirrorZ, "https://mirrors.cernet.edu.cn/crates.io-index/"},
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/crates.io-index/"}, {&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/crates.io-index/"},

View File

@ -7,8 +7,8 @@
* Last Modified : <2024-11-21> * Last Modified : <2024-11-21>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
static MirrorSite_t static MirrorSite_t RsProxyCN =
RsProxyCN = { {
"rsproxycn", "RsProxy.cn", "字节跳动基础架构Dev Infra", "https://rsproxy.cn/", "rsproxycn", "RsProxy.cn", "字节跳动基础架构Dev Infra", "https://rsproxy.cn/",
{SKIP, ToFill, ToFill, NULL} {SKIP, ToFill, ToFill, NULL}
}; };

View File

@ -11,15 +11,15 @@
/** /**
* @update 2024-10-02 * @update 2024-10-02
*/ */
static Source_t static Source_t pl_rust_rustup_sources[] =
pl_rust_rustup_sources[] = { {
{&UpstreamProvider, "https://static.rust-lang.org"}, {&UpstreamProvider, "https://static.rust-lang.org"},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/rustup"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/rustup"},
{&Ustc, "https://mirrors.ustc.edu.cn/rust-static"}, {&Ustc, "https://mirrors.ustc.edu.cn/rust-static"},
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/rust-static"}, {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/rust-static"},
{&Zju, "https://mirrors.zju.edu.cn/rustup"}, {&Zju, "https://mirrors.zju.edu.cn/rustup"},
{&Iscas, "https://mirror.iscas.ac.cn/rustup"}, {&Iscas, "https://mirror.iscas.ac.cn/rustup"},
{&RsProxyCN, "https://rsproxy.cn"} {&RsProxyCN, "https://rsproxy.cn"}
}; };
def_sources_n(pl_rust_rustup); def_sources_n(pl_rust_rustup);

View File

@ -79,7 +79,7 @@ static const char
*os_rockylinux [] = {"rocky", "rockylinux", NULL, t(&os_rockylinux_target)}, *os_rockylinux [] = {"rocky", "rockylinux", NULL, t(&os_rockylinux_target)},
*os_almalinux [] = {"alma", "almalinux", NULL, t(&os_almalinux_target)}, *os_almalinux [] = {"alma", "almalinux", NULL, t(&os_almalinux_target)},
*os_alpine [] = {"alpine", NULL, t(&os_alpine_target)}, *os_alpine [] = {"alpine", NULL, t(&os_alpine_target)},
*os_void [] = {"void", "voidlinux", NULL, t(&os_void_target)}, *os_voidlinux [] = {"void", "voidlinux", NULL, t(&os_voidlinux_target)},
*os_solus [] = {"solus", NULL, t(&os_solus_target)}, *os_solus [] = {"solus", NULL, t(&os_solus_target)},
*os_trisquel [] = {"trisquel", NULL, t(&os_trisquel_target)}, *os_trisquel [] = {"trisquel", NULL, t(&os_trisquel_target)},
*os_linuxlite [] = {"lite", "linuxlite", NULL, t(&os_linuxlite_target)}, *os_linuxlite [] = {"lite", "linuxlite", NULL, t(&os_linuxlite_target)},
@ -110,7 +110,7 @@ static const char
os_arch, os_archlinuxcn, os_manjaro, os_gentoo, os_arch, os_archlinuxcn, os_manjaro, os_gentoo,
os_alpine, os_void, os_solus, os_alpine, os_voidlinux, os_solus,
os_msys2, os_msys2,
os_freebsd, os_netbsd, os_openbsd, os_freebsd, os_netbsd, os_openbsd,

View File

@ -13,16 +13,17 @@
* @update 2024-11-21 * @update 2024-11-21
*/ */
static Source_t static Source_t
os_armbian_sources[] = { os_armbian_sources[] =
{&UpstreamProvider, "http://apt.armbian.com"}, {
{&MirrorZ, "https://mirrors.cernet.edu.cn/armbian"}, {&UpstreamProvider, "http://apt.armbian.com"},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/armbian"}, {&MirrorZ, "https://mirrors.cernet.edu.cn/armbian"},
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/armbian"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/armbian"},
{&Bfsu, "https://mirrors.bfsu.edu.cn/armbian"}, {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/armbian"},
{&Sustech, "https://mirrors.sustech.edu.cn/armbian"}, {&Bfsu, "https://mirrors.bfsu.edu.cn/armbian"},
{&Ustc, "https://mirrors.ustc.edu.cn/armbian"}, {&Sustech, "https://mirrors.sustech.edu.cn/armbian"},
{&Nju, "https://mirrors.nju.edu.cn/armbian"}, {&Ustc, "https://mirrors.ustc.edu.cn/armbian"},
{&Ali, "https://mirrors.aliyun.com/armbian"}, {&Nju, "https://mirrors.nju.edu.cn/armbian"},
{&Ali, "https://mirrors.aliyun.com/armbian"},
}; };
def_sources_n(os_armbian); def_sources_n(os_armbian);

View File

@ -12,19 +12,19 @@
/** /**
* @update 2024-11-21 * @update 2024-11-21
*/ */
static Source_t static Source_t os_debian_sources[] =
os_debian_sources[] = { {
{&UpstreamProvider, "http://deb.debian.org/debian"}, {&UpstreamProvider, "http://deb.debian.org/debian"},
{&MirrorZ, "https://mirrors.cernet.edu.cn/debian/"}, {&MirrorZ, "https://mirrors.cernet.edu.cn/debian/"},
{&Ali, "https://mirrors.aliyun.com/debian"}, {&Ali, "https://mirrors.aliyun.com/debian"},
{&Volcengine, "https://mirrors.volces.com/debian"}, {&Volcengine, "https://mirrors.volces.com/debian"},
{&Bfsu, "https://mirrors.bfsu.edu.cn/debian"}, {&Bfsu, "https://mirrors.bfsu.edu.cn/debian"},
{&Ustc, "https://mirrors.ustc.edu.cn/debian"}, {&Ustc, "https://mirrors.ustc.edu.cn/debian"},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/debian"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/debian"},
{&Tencent, "https://mirrors.tencent.com/debian"}, {&Tencent, "https://mirrors.tencent.com/debian"},
// {&Tencent_Intra, "https://mirrors.tencentyun.com/debian"}, // {&Tencent_Intra, "https://mirrors.tencentyun.com/debian"},
{&Netease, "https://mirrors.163.com/debian"}, {&Netease, "https://mirrors.163.com/debian"},
{&Sohu, "https://mirrors.sohu.com/debian"} {&Sohu, "https://mirrors.sohu.com/debian"}
}; };
def_sources_n(os_debian); def_sources_n(os_debian);

View File

@ -12,20 +12,20 @@
/** /**
* @update 2024-11-21 * @update 2024-11-21
*/ */
static Source_t static Source_t os_kali_sources[] =
os_kali_sources[] = { {
{&UpstreamProvider, "http://http.kali.org/kali"}, {&UpstreamProvider, "http://http.kali.org/kali"},
{&MirrorZ, "https://mirrors.cernet.edu.cn/kali"}, {&MirrorZ, "https://mirrors.cernet.edu.cn/kali"},
{&Ali, "https://mirrors.aliyun.com/kali"}, {&Ali, "https://mirrors.aliyun.com/kali"},
{&Volcengine, "https://mirrors.volces.com/kali"}, {&Volcengine, "https://mirrors.volces.com/kali"},
{&Bfsu, "https://mirrors.bfsu.edu.cn/kali"}, {&Bfsu, "https://mirrors.bfsu.edu.cn/kali"},
{&Ustc, "https://mirrors.ustc.edu.cn/kali"}, {&Ustc, "https://mirrors.ustc.edu.cn/kali"},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/kali"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/kali"},
{&Tencent, "https://mirrors.tencent.com/kali"}, {&Tencent, "https://mirrors.tencent.com/kali"},
// {&Tencent_Intra, "https://mirrors.tencentyun.com/kali"}, // {&Tencent_Intra, "https://mirrors.tencentyun.com/kali"},
{&Huawei, "https://mirrors.huaweicloud.com/kali"}, {&Huawei, "https://mirrors.huaweicloud.com/kali"},
{&Netease, "https://mirrors.163.com/kali"}, {&Netease, "https://mirrors.163.com/kali"},
{&Sohu, "https://mirrors.sohu.com/kali"} {&Sohu, "https://mirrors.sohu.com/kali"}
}; };
def_sources_n(os_kali); def_sources_n(os_kali);

View File

@ -11,12 +11,12 @@
/** /**
* @update 2024-11-21 * @update 2024-11-21
*/ */
static Source_t static Source_t os_linuxlite_sources[] =
os_linuxlite_sources[] = { {
{&UpstreamProvider, "http://repo.linuxliteos.com/linuxlite/"}, {&UpstreamProvider, "http://repo.linuxliteos.com/linuxlite/"},
{&MirrorZ, "https://mirrors.cernet.edu.cn/linuxliteos/"}, {&MirrorZ, "https://mirrors.cernet.edu.cn/linuxliteos/"},
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/linuxliteos/"}, {&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/linuxliteos/"},
{&Nju, "https://mirror.nju.edu.cn/linuxliteos/"} {&Nju, "https://mirror.nju.edu.cn/linuxliteos/"}
}; };
def_sources_n(os_linuxlite); def_sources_n(os_linuxlite);

View File

@ -11,22 +11,22 @@
* @update 2024-11-21 * @update 2024-11-21
* @note Ubuntu的不太一样 * @note Ubuntu的不太一样
*/ */
static Source_t static Source_t os_linuxmint_sources[] =
os_linuxmint_sources[] = { {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL},
{&MirrorZ, "https://mirrors.cernet.edu.cn/linuxmint/"}, {&MirrorZ, "https://mirrors.cernet.edu.cn/linuxmint/"},
{&Ali, "http://mirrors.aliyun.com/linuxmint-packages/"}, {&Ali, "http://mirrors.aliyun.com/linuxmint-packages/"},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/linuxmint/"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/linuxmint/"},
{&Bfsu, "https://mirrors.bfsu.edu.cn/linuxmint/"}, {&Bfsu, "https://mirrors.bfsu.edu.cn/linuxmint/"},
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/linuxmint/"}, {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/linuxmint/"},
{&Jlu, "https://mirrors.jlu.edu.cn/linuxmint/"}, {&Jlu, "https://mirrors.jlu.edu.cn/linuxmint/"},
{&Ustc, "https://mirrors.ustc.edu.cn/linuxmint/"}, {&Ustc, "https://mirrors.ustc.edu.cn/linuxmint/"},
{&Bjtu, "https://mirror.bjtu.edu.cn/linuxmint/"}, {&Bjtu, "https://mirror.bjtu.edu.cn/linuxmint/"},
{&Zju, "https://mirrors.zju.edu.cn/linuxmint/"}, {&Zju, "https://mirrors.zju.edu.cn/linuxmint/"},
{&Sustech, "https://mirrors.sustech.edu.cn/linuxmint/"}, {&Sustech, "https://mirrors.sustech.edu.cn/linuxmint/"},
{&Iscas, "https://mirror.iscas.ac.cn/linuxmint/"}, {&Iscas, "https://mirror.iscas.ac.cn/linuxmint/"},
{&Scau, "https://mirrors.scau.edu.cn/linuxmint/"}, {&Scau, "https://mirrors.scau.edu.cn/linuxmint/"},
{&Netease, "https://mirrors.163.com/linuxmint/packages/"}, {&Netease, "https://mirrors.163.com/linuxmint/packages/"},
}; };
def_sources_n(os_linuxmint); def_sources_n(os_linuxmint);

View File

@ -10,18 +10,18 @@
/** /**
* @update 2024-04-18 * @update 2024-04-18
*/ */
static Source_t static Source_t os_ros_sources[] =
os_ros_sources[] = { {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL},
{&Ali, "https://mirrors.aliyun.com"}, {&Ali, "https://mirrors.aliyun.com"},
{&Bfsu, "https://mirrors.bfsu.edu.cn"}, {&Bfsu, "https://mirrors.bfsu.edu.cn"},
{&Ustc, "https://mirrors.ustc.edu.cn"}, {&Ustc, "https://mirrors.ustc.edu.cn"},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn"},
{&Tencent, "https://mirrors.tencent.com"}, {&Tencent, "https://mirrors.tencent.com"},
// {&Tencent_Intra, "https://mirrors.tencentyun.com"}, // {&Tencent_Intra, "https://mirrors.tencentyun.com"},
{&Huawei, "https://mirrors.huaweicloud.com"}, {&Huawei, "https://mirrors.huaweicloud.com"},
{&Netease, "https://mirrors.163.com"}, {&Netease, "https://mirrors.163.com"},
{&Sohu, "https://mirrors.sohu.com"} {&Sohu, "https://mirrors.sohu.com"}
}; };
def_sources_n(os_ros); def_sources_n(os_ros);

View File

@ -12,15 +12,15 @@
/** /**
* @time 2023-09-29 * @time 2023-09-29
*/ */
static Source_t static Source_t os_raspberrypi_sources[] =
os_raspberrypi_sources[] = { {
{&UpstreamProvider, "https://archive.raspberrypi.com/"}, // https://archive.raspberrypi.org/ until Debian "bullseye" release {&UpstreamProvider, "https://archive.raspberrypi.com/"}, // https://archive.raspberrypi.org/ until Debian "bullseye" release
{&MirrorZ, "https://mirrors.cernet.edu.cn/raspberrypi/"}, {&MirrorZ, "https://mirrors.cernet.edu.cn/raspberrypi/"},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/raspberrypi/"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/raspberrypi/"},
{&Bfsu, "https://mirrors.bfsu.edu.cn/raspberrypi/"}, {&Bfsu, "https://mirrors.bfsu.edu.cn/raspberrypi/"},
{&Ustc, "https://mirrors.ustc.edu.cn/raspberrypi/"}, {&Ustc, "https://mirrors.ustc.edu.cn/raspberrypi/"},
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/raspberrypi/"}, {&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/raspberrypi/"},
{&Sustech, "https://mirrors.sustech.edu.cn/raspberrypi/"} {&Sustech, "https://mirrors.sustech.edu.cn/raspberrypi/"}
}; };
def_sources_n(os_raspberrypi); def_sources_n(os_raspberrypi);

View File

@ -10,16 +10,16 @@
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
/** /**
* @time 2024-11-21 * @update 2024-11-21
*/ */
static Source_t static Source_t os_trisquel_sources[] =
os_trisquel_sources[] = { {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL},
{&MirrorZ, "https://mirrors.cernet.edu.cn/trisquel/"}, {&MirrorZ, "https://mirrors.cernet.edu.cn/trisquel/"},
{&Ali, "https://mirrors.aliyun.com/trisquel/"}, {&Ali, "https://mirrors.aliyun.com/trisquel/"},
{&Nju, "https://mirror.nju.edu.cn/trisquel/"}, {&Nju, "https://mirror.nju.edu.cn/trisquel/"},
{&Ustc, "https://mirrors.ustc.edu.cn/trisquel/"}, {&Ustc, "https://mirrors.ustc.edu.cn/trisquel/"},
{&Iscas, "https://mirror.iscas.ac.cn/trisquel/"} {&Iscas, "https://mirror.iscas.ac.cn/trisquel/"}
}; };
def_sources_n(os_trisquel); def_sources_n(os_trisquel);

View File

@ -12,17 +12,17 @@
/** /**
* @update 2024-09-14 * @update 2024-09-14
*/ */
static Source_t static Source_t os_deepin_sources[] =
os_deepin_sources[] = { {
{&UpstreamProvider, "https://community-packages.deepin.com/deepin"}, {&UpstreamProvider, "https://community-packages.deepin.com/deepin"},
{&Ali, "https://mirrors.aliyun.com/deepin"}, {&Ali, "https://mirrors.aliyun.com/deepin"},
{&Bfsu, "https://mirrors.bfsu.edu.cn/deepin"}, {&Bfsu, "https://mirrors.bfsu.edu.cn/deepin"},
{&Ustc, "https://mirrors.ustc.edu.cn/deepin"}, {&Ustc, "https://mirrors.ustc.edu.cn/deepin"},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/deepin"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/deepin"},
{&Tencent, "https://mirrors.tencent.com/deepin"}, {&Tencent, "https://mirrors.tencent.com/deepin"},
// {&Tencent_Intra, "https://mirrors.tencentyun.com/deepin"}, // {&Tencent_Intra, "https://mirrors.tencentyun.com/deepin"},
{&Netease, "https://mirrors.163.com/deepin"}, {&Netease, "https://mirrors.163.com/deepin"},
{&Sohu, "https://mirrors.sohu.com/deepin"} {&Sohu, "https://mirrors.sohu.com/deepin"}
}; };
def_sources_n(os_deepin); def_sources_n(os_deepin);

View File

@ -13,11 +13,11 @@
/** /**
* @time 2023-09-29 * @time 2023-09-29
*/ */
static Source_t static Source_t os_openkylin_sources[] =
os_openkylin_sources[] = { {
{&UpstreamProvider, "https://archive.openkylin.top/openkylin/"}, {&UpstreamProvider, "https://archive.openkylin.top/openkylin/"},
{&Ali, "https://mirrors.aliyun.com/openkylin/"}, {&Ali, "https://mirrors.aliyun.com/openkylin/"},
{&Netease, "https://mirrors.163.com/openkylin/"}, {&Netease, "https://mirrors.163.com/openkylin/"},
}; };
def_sources_n(os_openkylin); def_sources_n(os_openkylin);

View File

@ -10,18 +10,18 @@
/** /**
* @update 2024-09-14 * @update 2024-09-14
*/ */
static Source_t static Source_t os_alpine_sources[] =
os_alpine_sources[] = { {
{&UpstreamProvider, "http://dl-cdn.alpinelinux.org/alpine"}, {&UpstreamProvider, "http://dl-cdn.alpinelinux.org/alpine"},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/alpine"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/alpine"},
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/alpine"}, {&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/alpine"},
{&Sustech, "https://mirrors.sustech.edu.cn/alpine"}, {&Sustech, "https://mirrors.sustech.edu.cn/alpine"},
{&Zju, "https://mirrors.zju.edu.cn/alpine"}, {&Zju, "https://mirrors.zju.edu.cn/alpine"},
{&Lzuoss, "https://mirror.lzu.edu.cn/alpine"}, {&Lzuoss, "https://mirror.lzu.edu.cn/alpine"},
{&Ali, "https://mirrors.aliyun.com/alpine"}, {&Ali, "https://mirrors.aliyun.com/alpine"},
{&Tencent, "https://mirrors.cloud.tencent.com/alpine"}, {&Tencent, "https://mirrors.cloud.tencent.com/alpine"},
// {&Tencent_Intra, "https://mirrors.cloud.tencentyun.com/alpine"}, // {&Tencent_Intra, "https://mirrors.cloud.tencentyun.com/alpine"},
{&Huawei, "https://mirrors.huaweicloud.com/alpine"} {&Huawei, "https://mirrors.huaweicloud.com/alpine"}
}; };
def_sources_n(os_alpine); def_sources_n(os_alpine);

View File

@ -9,19 +9,19 @@
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
/** /**
* @time 2023-09-27 * @update 2023-09-27
* *
* @note by:ccmywish { * @note {
* [2023-09-24] USTC, NJU, Netease freebsd-pkg freebsd-ports * 2023-09-24: USTC, NJU, Netease freebsd-pkg freebsd-ports
* [2023-09-27] Nju前面有至少一个镜像 freebsd * 2023-09-27: Nju前面有至少一个镜像 freebsd
* } * }
*/ */
static Source_t static Source_t os_freebsd_sources[] =
os_freebsd_sources[] = { {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL},
{&Ustc, "mirrors.ustc.edu.cn"}, {&Ustc, "mirrors.ustc.edu.cn"},
{&Nju, "mirror.nju.edu.cn"}, {&Nju, "mirror.nju.edu.cn"},
{&Netease, "mirrors.163.com"}, {&Netease, "mirrors.163.com"},
}; };
def_sources_n(os_freebsd); def_sources_n(os_freebsd);

View File

@ -11,17 +11,17 @@
/** /**
* @update 2024-09-14 * @update 2024-09-14
*/ */
static Source_t static Source_t os_netbsd_sources[] =
os_netbsd_sources[] = { {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL},
{&Ali, "https://mirrors.aliyun.com/pkgsrc/packages/NetBSD/"}, {&Ali, "https://mirrors.aliyun.com/pkgsrc/packages/NetBSD/"},
{&Bfsu, "https://mirrors.bfsu.edu.cn/pkgsrc/packages/NetBSD/"}, {&Bfsu, "https://mirrors.bfsu.edu.cn/pkgsrc/packages/NetBSD/"},
{&Ustc, "https://mirrors.ustc.edu.cn/pkgsrc/packages/NetBSD/"}, {&Ustc, "https://mirrors.ustc.edu.cn/pkgsrc/packages/NetBSD/"},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/pkgsrc/packages/NetBSD/"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/pkgsrc/packages/NetBSD/"},
{&Tencent, "https://mirrors.tencent.com/pkgsrc/packages/NetBSD/"}, {&Tencent, "https://mirrors.tencent.com/pkgsrc/packages/NetBSD/"},
// {&Tencent_Intra, "https://mirrors.tencentyun.com/pkgsrc/packages/NetBSD/"}, // {&Tencent_Intra, "https://mirrors.tencentyun.com/pkgsrc/packages/NetBSD/"},
{&Netease, "https://mirrors.163.com/pkgsrc/packages/NetBSD/"}, {&Netease, "https://mirrors.163.com/pkgsrc/packages/NetBSD/"},
{&Sohu, "https://mirrors.sohu.com/pkgsrc/packages/NetBSD/"} {&Sohu, "https://mirrors.sohu.com/pkgsrc/packages/NetBSD/"}
}; };
def_sources_n(os_netbsd); def_sources_n(os_netbsd);

View File

@ -11,17 +11,17 @@
/** /**
* @update 2024-09-14 * @update 2024-09-14
*/ */
static Source_t static Source_t os_openbsd_sources[] =
os_openbsd_sources[] = { {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL},
{&Ali, "https://mirrors.aliyun.com/OpenBSD/"}, {&Ali, "https://mirrors.aliyun.com/OpenBSD/"},
{&Bfsu, "https://mirrors.bfsu.edu.cn/OpenBSD/"}, {&Bfsu, "https://mirrors.bfsu.edu.cn/OpenBSD/"},
{&Ustc, "https://mirrors.ustc.edu.cn/OpenBSD/"}, {&Ustc, "https://mirrors.ustc.edu.cn/OpenBSD/"},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/OpenBSD/"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/OpenBSD/"},
{&Tencent, "https://mirrors.tencent.com/OpenBSD/"}, {&Tencent, "https://mirrors.tencent.com/OpenBSD/"},
// {&Tencent_Intra, "https://mirrors.tencentyun.com/OpenBSD/"}, // {&Tencent_Intra, "https://mirrors.tencentyun.com/OpenBSD/"},
{&Netease, "https://mirrors.163.com/OpenBSD/"}, {&Netease, "https://mirrors.163.com/OpenBSD/"},
{&Sohu, "https://mirrors.sohu.com/OpenBSD/"} {&Sohu, "https://mirrors.sohu.com/OpenBSD/"}
}; };
def_sources_n(os_openbsd); def_sources_n(os_openbsd);

View File

@ -10,17 +10,17 @@
/** /**
* @update 2024-09-14 * @update 2024-09-14
*/ */
static Source_t static Source_t os_gentoo_sources[] =
os_gentoo_sources[] = { {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL},
{&Ali, "mirrors.aliyun.com"}, {&Ali, "mirrors.aliyun.com"},
{&Bfsu, "mirrors.bfsu.edu.cn"}, {&Bfsu, "mirrors.bfsu.edu.cn"},
{&Ustc, "mirrors.ustc.edu.cn"}, {&Ustc, "mirrors.ustc.edu.cn"},
{&Tuna, "mirrors.tuna.tsinghua.edu.cn"}, {&Tuna, "mirrors.tuna.tsinghua.edu.cn"},
{&Tencent, "mirrors.tencent.com"}, {&Tencent, "mirrors.tencent.com"},
// {&Tencent_Intra, "mirrors.tencentyun.com"}, // {&Tencent_Intra, "mirrors.tencentyun.com"},
{&Netease, "mirrors.163.com"}, {&Netease, "mirrors.163.com"},
{&Sohu, "mirrors.sohu.com"} {&Sohu, "mirrors.sohu.com"}
}; };
def_sources_n(os_gentoo); def_sources_n(os_gentoo);

View File

@ -10,18 +10,18 @@
/** /**
* @update 2024-08-08 * @update 2024-08-08
*/ */
static Source_t static Source_t os_openwrt_sources[] =
os_openwrt_sources[] = { {
{&UpstreamProvider, "http://downloads.openwrt.org"}, {&UpstreamProvider, "http://downloads.openwrt.org"},
{&MirrorZ, "https://mirrors.cernet.edu.cn/openwrt"}, {&MirrorZ, "https://mirrors.cernet.edu.cn/openwrt"},
{&Ali, "https://mirrors.aliyun.com/openwrt"}, {&Ali, "https://mirrors.aliyun.com/openwrt"},
{&Tencent, "https://mirrors.cloud.tencent.com/openwrt"}, {&Tencent, "https://mirrors.cloud.tencent.com/openwrt"},
// {&Tencent_Intra, "https://mirrors.cloud.tencentyun.com/openwrt"}, // {&Tencent_Intra, "https://mirrors.cloud.tencentyun.com/openwrt"},
{&Tuna, "https://mirror.tuna.tsinghua.edu.cn/openwrt"}, {&Tuna, "https://mirror.tuna.tsinghua.edu.cn/openwrt"},
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/openwrt"}, {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/openwrt"},
{&Ustc, "https://mirrors.ustc.edu.cn/openwrt"}, {&Ustc, "https://mirrors.ustc.edu.cn/openwrt"},
{&Pku, "https://mirrors.pku.edu.cn/openwrt"}, {&Pku, "https://mirrors.pku.edu.cn/openwrt"},
{&Sustech, "https://mirrors.sustech.edu.cn/openwrt"}, {&Sustech, "https://mirrors.sustech.edu.cn/openwrt"},
}; };
def_sources_n(os_openwrt); def_sources_n(os_openwrt);

View File

@ -8,20 +8,20 @@
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
/** /**
* @time 2023-09-29 * @update 2023-09-29
*/ */
static Source_t static Source_t os_solus_sources[] =
os_solus_sources[] = { {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/solus/packages/shannon/eopkg-index.xml.xz"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/solus/packages/shannon/eopkg-index.xml.xz"},
{&Bfsu, "https://mirrors.bfsu.edu.cn/solus/packages/shannon/eopkg-index.xml.xz"}, {&Bfsu, "https://mirrors.bfsu.edu.cn/solus/packages/shannon/eopkg-index.xml.xz"},
{&Nju, "https://mirror.nju.edu.cn/solus/packages/shannon/eopkg-index.xml.xz"} {&Nju, "https://mirror.nju.edu.cn/solus/packages/shannon/eopkg-index.xml.xz"}
}; };
def_sources_n(os_solus); def_sources_n(os_solus);
/** /**
* : https://help.mirrors.cernet.edu.cn/solus/ * @consult https://help.mirrors.cernet.edu.cn/solus/
*/ */
void void
os_solus_setsrc (char *option) os_solus_setsrc (char *option)

View File

@ -8,34 +8,34 @@
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
/** /**
* @time 2023-09-24 * @update 2023-09-24
*/ */
static Source_t static Source_t os_voidlinux_sources[] =
os_void_sources[] = { {
{&UpstreamProvider, "https://repo-default.voidlinux.org"}, {&UpstreamProvider, "https://repo-default.voidlinux.org"},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/voidlinux"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/voidlinux"},
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/voidlinux"}, {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/voidlinux"},
{&Bfsu, "https://mirrors.bfsu.edu.cn/voidlinux"} {&Bfsu, "https://mirrors.bfsu.edu.cn/voidlinux"}
}; };
def_sources_n(os_void); def_sources_n(os_voidlinux);
void void
os_void_getsrc (char *option) os_voidlinux_getsrc (char *option)
{ {
char* cmd = "xbps-query -L"; char* cmd = "xbps-query -L";
chsrc_run (cmd, RunOpt_No_Last_New_Line); chsrc_run (cmd, RunOpt_No_Last_New_Line);
} }
/** /**
* : https://help.mirrors.cernet.edu.cn/voidlinux/ * @consult https://help.mirrors.cernet.edu.cn/voidlinux/
*/ */
void void
os_void_setsrc (char *option) os_voidlinux_setsrc (char *option)
{ {
chsrc_ensure_root (); // HELP: 不确定是否需要root chsrc_ensure_root ();
chsrc_yield_source_and_confirm (os_void); chsrc_yield_source_and_confirm (os_voidlinux);
chsrc_ensure_dir ("/etc/xbps.d"); chsrc_ensure_dir ("/etc/xbps.d");
char *cmd = "cp /usr/share/xbps.d/*-repository-*.conf /etc/xbps.d/"; char *cmd = "cp /usr/share/xbps.d/*-repository-*.conf /etc/xbps.d/";
@ -56,4 +56,4 @@ os_void_setsrc (char *option)
chsrc_conclude (&source); chsrc_conclude (&source);
} }
def_target(os_void); def_target(os_voidlinux);

View File

@ -10,14 +10,14 @@
/** /**
* @time 2024-06-12 * @time 2024-06-12
*/ */
static Source_t static Source_t os_almalinux_sources[] =
os_almalinux_sources[] = { {
{&UpstreamProvider, "http://repo.almalinux.org/almalinux"}, {&UpstreamProvider, "http://repo.almalinux.org/almalinux"},
{&Ali, "https://mirrors.aliyun.com/almalinux"}, {&Ali, "https://mirrors.aliyun.com/almalinux"},
{&Volcengine, "https://mirrors.volces.com/almalinux"}, {&Volcengine, "https://mirrors.volces.com/almalinux"},
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/almalinux"}, {&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/almalinux"},
{&Zju, "https://mirrors.zju.edu.cn/almalinux"}, {&Zju, "https://mirrors.zju.edu.cn/almalinux"},
{&Nju, "https://mirror.nju.edu.cn/almalinux"}, {&Nju, "https://mirror.nju.edu.cn/almalinux"},
}; };
def_sources_n(os_almalinux); def_sources_n(os_almalinux);

View File

@ -10,13 +10,13 @@
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
/** /**
* @time 2024-06-12 * @update 2024-06-12
*/ */
static Source_t static Source_t os_anolis_sources[] =
os_anolis_sources[] = { {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL},
{&Ali, "https://mirrors.aliyun.com/anolis"}, {&Ali, "https://mirrors.aliyun.com/anolis"},
{&Hust, "https://mirrors.hust.edu.cn/anolis"} {&Hust, "https://mirrors.hust.edu.cn/anolis"}
}; };
def_sources_n(os_anolis); def_sources_n(os_anolis);

View File

@ -14,17 +14,17 @@
/** /**
* @update 2024-11-04 * @update 2024-11-04
*/ */
static Source_t static Source_t os_fedora_sources[] =
os_fedora_sources[] = { {
{&UpstreamProvider, "http://download.example/pub/fedora/linux"}, {&UpstreamProvider, "http://download.example/pub/fedora/linux"},
{&Ali, "https://mirrors.aliyun.com/fedora"}, {&Ali, "https://mirrors.aliyun.com/fedora"},
{&Bfsu, "https://mirrors.bfsu.edu.cn/fedora"}, {&Bfsu, "https://mirrors.bfsu.edu.cn/fedora"},
{&Ustc, "https://mirrors.ustc.edu.cn/fedora"}, {&Ustc, "https://mirrors.ustc.edu.cn/fedora"},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/fedora"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/fedora"},
{&Tencent, "https://mirrors.tencent.com/fedora"}, {&Tencent, "https://mirrors.tencent.com/fedora"},
// {&Tencent_Intra, "https://mirrors.tencentyun.com/fedora"}, // {&Tencent_Intra, "https://mirrors.tencentyun.com/fedora"},
{&Netease, "https://mirrors.163.com/fedora"}, {&Netease, "https://mirrors.163.com/fedora"},
{&Sohu, "https://mirrors.sohu.com/fedora"} {&Sohu, "https://mirrors.sohu.com/fedora"}
}; };
def_sources_n(os_fedora); def_sources_n(os_fedora);

View File

@ -8,20 +8,20 @@
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
/** /**
* @time 2024-06-12 * @update 2024-06-12
*/ */
static Source_t static Source_t os_rockylinux_sources[] =
os_rockylinux_sources[] = { {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL},
{&MirrorZ, "https://mirrors.cernet.edu.cn/rocky"}, {&MirrorZ, "https://mirrors.cernet.edu.cn/rocky"},
{&Ali, "https://mirrors.aliyun.com/rockylinux"}, {&Ali, "https://mirrors.aliyun.com/rockylinux"},
{&Volcengine, "https://mirrors.volces.com/rockylinux"}, {&Volcengine, "https://mirrors.volces.com/rockylinux"},
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/rocky"}, {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/rocky"},
{&Sustech, "https://mirrors.sustech.edu.cn/rocky-linux"}, {&Sustech, "https://mirrors.sustech.edu.cn/rocky-linux"},
{&Zju, "https://mirrors.zju.edu.cn/rocky"}, {&Zju, "https://mirrors.zju.edu.cn/rocky"},
{&Lzuoss, "https://mirror.lzu.edu.cn/rocky"}, {&Lzuoss, "https://mirror.lzu.edu.cn/rocky"},
{&Sohu, "https://mirrors.sohu.com/Rocky"}, {&Sohu, "https://mirrors.sohu.com/Rocky"},
{&Netease, "https://mirrors.163.com/rocky"} {&Netease, "https://mirrors.163.com/rocky"}
}; };
def_sources_n(os_rockylinux); def_sources_n(os_rockylinux);

View File

@ -7,7 +7,7 @@
* Last Modified : <2024-08-16> * Last Modified : <2024-08-16>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
// #define OS_Yum_SourceList "/etc/yum.repos" // #define OS_Yum_SourceList "/etc/yum.repos"
#define OS_Yum_SourceList_D "/etc/yum.repos.d/" #define OS_Yum_SourceList_D "/etc/yum.repos.d/"
#define OS_openEuler_SourceList "openEuler.repo" #define OS_openEuler_SourceList "openEuler.repo"

View File

@ -11,17 +11,17 @@
/** /**
* @update 2024-09-14 * @update 2024-09-14
*/ */
static Source_t static Source_t os_openeuler_sources[] =
os_openeuler_sources[] = { {
{&UpstreamProvider, "https://repo.openeuler.org/"}, {&UpstreamProvider, "https://repo.openeuler.org/"},
{&Ali, "https://mirrors.aliyun.com/openeuler/"}, {&Ali, "https://mirrors.aliyun.com/openeuler/"},
{&Bfsu, "https://mirrors.bfsu.edu.cn/openeuler/"}, {&Bfsu, "https://mirrors.bfsu.edu.cn/openeuler/"},
{&Ustc, "https://mirrors.ustc.edu.cn/openeuler/"}, {&Ustc, "https://mirrors.ustc.edu.cn/openeuler/"},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/openeuler/"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/openeuler/"},
{&Tencent, "https://mirrors.tencent.com/openeuler/"}, {&Tencent, "https://mirrors.tencent.com/openeuler/"},
// {&Tencent_Intra, "https://mirrors.tencentyun.com/openeuler/"}, // {&Tencent_Intra, "https://mirrors.tencentyun.com/openeuler/"},
{&Netease, "https://mirrors.163.com/openeuler/"}, {&Netease, "https://mirrors.163.com/openeuler/"},
{&Sohu, "https://mirrors.sohu.com/openeuler/"} {&Sohu, "https://mirrors.sohu.com/openeuler/"}
}; };
def_sources_n(os_openeuler); def_sources_n(os_openeuler);

View File

@ -10,18 +10,18 @@
/** /**
* @update 2024-08-16 * @update 2024-08-16
*/ */
static Source_t static Source_t os_opensuse_sources[] =
os_opensuse_sources[] = { {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL},
{&Ali, "https://mirrors.aliyun.com/opensuse"}, {&Ali, "https://mirrors.aliyun.com/opensuse"},
{&Volcengine, "https://mirrors.volces.com/opensuse"}, {&Volcengine, "https://mirrors.volces.com/opensuse"},
{&Bfsu, "https://mirrors.bfsu.edu.cn/opensuse"}, {&Bfsu, "https://mirrors.bfsu.edu.cn/opensuse"},
{&Ustc, "https://mirrors.ustc.edu.cn/opensuse"}, {&Ustc, "https://mirrors.ustc.edu.cn/opensuse"},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/opensuse"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/opensuse"},
{&Tencent, "https://mirrors.tencent.com/opensuse"}, {&Tencent, "https://mirrors.tencent.com/opensuse"},
// {&Tencent_Intra, "https://mirrors.tencentyun.com/opensuse"}, // {&Tencent_Intra, "https://mirrors.tencentyun.com/opensuse"},
{&Netease, "https://mirrors.163.com/opensuse"}, {&Netease, "https://mirrors.163.com/opensuse"},
{&Sohu, "https://mirrors.sohu.com/opensuse"} {&Sohu, "https://mirrors.sohu.com/opensuse"}
}; };
def_sources_n(os_opensuse); def_sources_n(os_opensuse);

View File

@ -12,33 +12,34 @@
* @update 2024-07-03 * @update 2024-07-03
* @note / ARM情况下 arm * @note / ARM情况下 arm
*/ */
static Source_t static Source_t os_arch_sources[] =
os_arch_sources[] = { {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL},
{&Ali, "https://mirrors.aliyun.com/archlinux"}, {&Ali, "https://mirrors.aliyun.com/archlinux"},
{&Bfsu, "https://mirrors.bfsu.edu.cn/archlinux"}, {&Bfsu, "https://mirrors.bfsu.edu.cn/archlinux"},
{&Ustc, "https://mirrors.ustc.edu.cn/archlinux"}, {&Ustc, "https://mirrors.ustc.edu.cn/archlinux"},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/archlinux"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/archlinux"},
{&Tencent, "https://mirrors.tencent.com/archlinux"}, {&Tencent, "https://mirrors.tencent.com/archlinux"},
// {&Tencent_Intra, "https://mirrors.tencentyun.com/archlinux"}, // {&Tencent_Intra, "https://mirrors.tencentyun.com/archlinux"},
{&Huawei, "https://mirrors.huaweicloud.com/archlinux"}, // 不支持 archlinuxcn {&Huawei, "https://mirrors.huaweicloud.com/archlinux"}, // 不支持 archlinuxcn
{&Netease, "https://mirrors.163.com/archlinux"}, // archlinuxcn 的URL和其他镜像站不同 {&Netease, "https://mirrors.163.com/archlinux"}, // archlinuxcn 的URL和其他镜像站不同
// {&Sohu, "https://mirrors.sohu.com/archlinux"} // 不支持 archlinuxcn // {&Sohu, "https://mirrors.sohu.com/archlinux"} // 不支持 archlinuxcn
}, },
/** /**
* @time 2024-07-03 * @update 2024-07-03
* @note GitHub:@zheng7fu2 archlinuxcn * @note GitHub:@zheng7fu2 archlinuxcn
*/ */
os_archlinuxcn_sources[] = { os_archlinuxcn_sources[] =
{&UpstreamProvider, "https://repo.archlinuxcn.org/"}, {
{&Ali, "https://mirrors.aliyun.com/archlinuxcn/"}, {&UpstreamProvider, "https://repo.archlinuxcn.org/"},
{&Bfsu, "https://mirrors.bfsu.edu.cn/archlinuxcn/"}, {&Ali, "https://mirrors.aliyun.com/archlinuxcn/"},
{&Ustc, "https://mirrors.ustc.edu.cn/archlinuxcn/"}, {&Bfsu, "https://mirrors.bfsu.edu.cn/archlinuxcn/"},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/"}, {&Ustc, "https://mirrors.ustc.edu.cn/archlinuxcn/"},
{&Tencent, "https://mirrors.cloud.tencent.com/archlinuxcn/"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/"},
{&Tencent, "https://mirrors.cloud.tencent.com/archlinuxcn/"},
// {&Tencent_Intra, "https://mirrors.cloud.tencentyun.com/archlinuxcn/"}, // {&Tencent_Intra, "https://mirrors.cloud.tencentyun.com/archlinuxcn/"},
{&Netease, "https://mirrors.163.com/archlinux-cn/"} {&Netease, "https://mirrors.163.com/archlinux-cn/"}
}; };
def_sources_n(os_arch); def_sources_n(os_arch);
def_sources_n(os_archlinuxcn); def_sources_n(os_archlinuxcn);

View File

@ -10,17 +10,17 @@
/** /**
* @time 2024-04-18 * @time 2024-04-18
*/ */
static Source_t static Source_t os_msys2_sources[] =
os_msys2_sources[] = { {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL},
{&Ali, "https://mirrors.aliyun.com/msys2"}, {&Ali, "https://mirrors.aliyun.com/msys2"},
{&Bfsu, "https://mirrors.bfsu.edu.cn/msys2"}, {&Bfsu, "https://mirrors.bfsu.edu.cn/msys2"},
{&Ustc, "https://mirrors.ustc.edu.cn/msys2"}, {&Ustc, "https://mirrors.ustc.edu.cn/msys2"},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/msys2"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/msys2"},
{&Tencent, "https://mirrors.tencent.com/msys2"}, {&Tencent, "https://mirrors.tencent.com/msys2"},
{&Huawei, "https://mirrors.huaweicloud.com/msys2"}, {&Huawei, "https://mirrors.huaweicloud.com/msys2"},
{&Netease, "https://mirrors.163.com/msys2"}, {&Netease, "https://mirrors.163.com/msys2"},
{&Sohu, "https://mirrors.sohu.com/msys2"} {&Sohu, "https://mirrors.sohu.com/msys2"}
}; };
def_sources_n(os_msys2); def_sources_n(os_msys2);

View File

@ -11,13 +11,13 @@
* @time 2023-09-10 * @time 2023-09-10
* @note setsrc函数中补充完整 * @note setsrc函数中补充完整
*/ */
static Source_t static Source_t wr_anaconda_sources[] =
wr_anaconda_sources[] = { {
{&UpstreamProvider, "https://repo.anaconda.com/"}, {&UpstreamProvider, "https://repo.anaconda.com/"},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/anaconda/"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/anaconda/"},
{&Bfsu, "https://mirrors.bfsu.edu.cn/anaconda/"}, {&Bfsu, "https://mirrors.bfsu.edu.cn/anaconda/"},
{&Zju, "https://mirrors.zju.edu.cn/anaconda/"}, {&Zju, "https://mirrors.zju.edu.cn/anaconda/"},
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/anaconda"} {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/anaconda"}
}; };
def_sources_n(wr_anaconda); def_sources_n(wr_anaconda);

View File

@ -8,18 +8,19 @@
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
/** /**
* @time 2024-06-08 * @update 2024-06-08
*/ */
static Source_t static Source_t wr_cocoapods_sources[] =
wr_cocoapods_sources[] = { {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git"},
{&Bfsu, "https://mirrors.bfsu.edu.cn/git/CocoaPods/Specs.git"} {&Bfsu, "https://mirrors.bfsu.edu.cn/git/CocoaPods/Specs.git"}
}; };
def_sources_n(wr_cocoapods); def_sources_n(wr_cocoapods);
/** /**
* https://mirrors.tuna.tsinghua.edu.cn/help/CocoaPods/ * @consult https://mirrors.tuna.tsinghua.edu.cn/help/CocoaPods/
*/ */
void void
wr_cocoapods_setsrc (char *option) wr_cocoapods_setsrc (char *option)

View File

@ -9,19 +9,21 @@
* Last Modified : <2024-11-22> * Last Modified : <2024-11-22>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
static MirrorSite_t static MirrorSite_t DaoCloud =
DaoCloud = { {
"daocloud", "DaoCloud","上海道客网络科技有限公司", "https://www.daocloud.io/", "daocloud", "DaoCloud","上海道客网络科技有限公司", "https://www.daocloud.io/",
// 没有找到 DaoCloud 合适的下载链接,先随便给一个,以规避 chsrc 自动测速时所有 dockerhub 镜像站都没有测速链接带来的 bug // 没有找到 DaoCloud 合适的下载链接,先随便给一个,以规避 chsrc 自动测速时所有 dockerhub 镜像站都没有测速链接带来的 bug
{NotSkip, NA, NA, "https://qiniu-download-public.daocloud.io/DaoCloud_Enterprise/dce5/offline-community-v0.18.0-amd64.tar"} {NotSkip, NA, NA, "https://qiniu-download-public.daocloud.io/DaoCloud_Enterprise/dce5/offline-community-v0.18.0-amd64.tar"}
}, },
Fit2Cloud = { Fit2Cloud =
{
"fit2cloud", "FIT2CLOUD", "杭州飞致云信息科技有限公司", "https://www.fit2cloud.com/", "fit2cloud", "FIT2CLOUD", "杭州飞致云信息科技有限公司", "https://www.fit2cloud.com/",
{SKIP, ToFill, ToFill, NULL} {SKIP, ToFill, ToFill, NULL}
}, },
Huecker = { Huecker =
{
"huecker", "(Russia) Huecker", "俄罗斯 Huecker.io", "https://huecker.io/", "huecker", "(Russia) Huecker", "俄罗斯 Huecker.io", "https://huecker.io/",
// 同 DaoCloud没有合适的下载链接先随便给一个以避免 bug // 同 DaoCloud没有合适的下载链接先随便给一个以避免 bug
{NotSkip, NA, NA, "https://huecker.io/en/use.html"} {NotSkip, NA, NA, "https://huecker.io/en/use.html"}
@ -36,18 +38,18 @@ Huecker = {
* @consult https://gist.github.com/y0ngb1n/7e8f16af3242c7815e7ca2f0833d3ea6 * @consult https://gist.github.com/y0ngb1n/7e8f16af3242c7815e7ca2f0833d3ea6
*/ */
static Source_t static Source_t wr_dockerhub_sources[] =
wr_dockerhub_sources[] = { {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL},
// {&Ustc, "https://docker.mirrors.ustc.edu.cn/"}, // {&Ustc, "https://docker.mirrors.ustc.edu.cn/"},
// https://github.com/DaoCloud/public-image-mirror // https://github.com/DaoCloud/public-image-mirror
{&DaoCloud, "https://docker.m.daocloud.io"}, {&DaoCloud, "https://docker.m.daocloud.io"},
{&Fit2Cloud, "https://docker.1panel.live"}, {&Fit2Cloud, "https://docker.1panel.live"},
// 暂时加入,未来若国内镜像恢复,将删除 // 暂时加入,未来若国内镜像恢复,将删除
// https://huecker.io/en/use.html#unbanned // https://huecker.io/en/use.html#unbanned
{&Huecker, "https://huecker.io"} {&Huecker, "https://huecker.io"}
}; };
def_sources_n(wr_dockerhub); def_sources_n(wr_dockerhub);

View File

@ -7,8 +7,8 @@
* Last Modified : <2024-11-21> * Last Modified : <2024-11-21>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
static MirrorSite_t static MirrorSite_t EmacsChina =
EmacsChina = { {
"emacschina", "EmacsChina", "Emacs China 社区", "https://elpamirror.emacs-china.org/", "emacschina", "EmacsChina", "Emacs China 社区", "https://elpamirror.emacs-china.org/",
{SKIP, ToFill, ToFill, NULL} {SKIP, ToFill, ToFill, NULL}
}; };
@ -17,15 +17,15 @@ EmacsChina = {
* @update 2023-09-10 * @update 2023-09-10
* @note Emacs用户往往只需要一次性换源 chsrc * @note Emacs用户往往只需要一次性换源 chsrc
*/ */
Source_t Source_t wr_emacs_sources[] =
wr_emacs_sources[] = { {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL},
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/docs/emacs-elpa"}, {&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/docs/emacs-elpa"},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/help/elpa/"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/help/elpa/"},
{&Bfsu, "https://mirrors.bfsu.edu.cn/help/elpa/"}, {&Bfsu, "https://mirrors.bfsu.edu.cn/help/elpa/"},
{&Ustc, "https://mirrors.ustc.edu.cn/help/elpa.html"}, {&Ustc, "https://mirrors.ustc.edu.cn/help/elpa.html"},
{&Zju, "https://mirrors.zju.edu.cn/docs/elpa/"}, {&Zju, "https://mirrors.zju.edu.cn/docs/elpa/"},
{&EmacsChina, "https://elpamirror.emacs-china.org/"} {&EmacsChina, "https://elpamirror.emacs-china.org/"}
}; };
def_sources_n(wr_emacs); def_sources_n(wr_emacs);

View File

@ -11,16 +11,16 @@
* @update 2023-09-11 * @update 2023-09-11
* @note * @note
*/ */
static Source_t static Source_t wr_flathub_sources[] =
wr_flathub_sources[] = { {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL},
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/flathub"}, {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/flathub"},
}; };
def_sources_n(wr_flathub); def_sources_n(wr_flathub);
/** /**
* : https://mirrors.sjtug.sjtu.edu.cn/docs/flathub * @consult https://mirrors.sjtug.sjtu.edu.cn/docs/flathub
*/ */
void void
wr_flathub_setsrc (char *option) wr_flathub_setsrc (char *option)

View File

@ -11,16 +11,16 @@
* @update 2023-09-11 * @update 2023-09-11
* @note * @note
*/ */
static Source_t static Source_t wr_guix_sources[] =
wr_guix_sources[] = { {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL},
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/git/guix.git"} {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/git/guix.git"}
}; };
def_sources_n(wr_guix); def_sources_n(wr_guix);
/** /**
* : https://mirrors.sjtug.sjtu.edu.cn/docs/guix * @consult https://mirrors.sjtug.sjtu.edu.cn/docs/guix
*/ */
void void
wr_guix_setsrc (char *option) wr_guix_setsrc (char *option)

View File

@ -16,12 +16,13 @@
* } * }
*/ */
static Source_t static Source_t
wr_homebrew_sources[] = { wr_homebrew_sources[] =
{&UpstreamProvider, NULL}, {
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/"}, {&UpstreamProvider, NULL},
{&Bfsu, "https://mirrors.bfsu.edu.cn/"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/"},
{&Zju, "https://mirrors.zju.edu.cn/"}, {&Bfsu, "https://mirrors.bfsu.edu.cn/"},
{&Sustech, "https://mirrors.sustech.edu.cn/"} {&Zju, "https://mirrors.zju.edu.cn/"},
{&Sustech, "https://mirrors.sustech.edu.cn/"}
}; };
def_sources_n(wr_homebrew); def_sources_n(wr_homebrew);

View File

@ -14,10 +14,10 @@
* 2. setsrc函数中补充完整 * 2. setsrc函数中补充完整
* } * }
*/ */
static Source_t static Source_t wr_nix_sources[] =
wr_nix_sources[] = { {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL},
{&Bfsu, "https://mirrors.bfsu.edu.cn/nix-channels/"} {&Bfsu, "https://mirrors.bfsu.edu.cn/nix-channels/"}
}; };
def_sources_n(wr_nix); def_sources_n(wr_nix);

View File

@ -10,15 +10,15 @@
/** /**
* @update 2023-09-10 * @update 2023-09-10
*/ */
static Source_t static Source_t wr_tex_sources[] =
wr_tex_sources[] = { {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL},
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/ctan/systems/texlive/tlnet"}, {&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/ctan/systems/texlive/tlnet"},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet"},
{&Bfsu, "https://mirrors.bfsu.edu.cn/CTAN/systems/texlive/tlnet"}, {&Bfsu, "https://mirrors.bfsu.edu.cn/CTAN/systems/texlive/tlnet"},
{&Lzuoss, "https://mirror.lzu.edu.cn/CTAN/systems/texlive/tlnet"}, {&Lzuoss, "https://mirror.lzu.edu.cn/CTAN/systems/texlive/tlnet"},
{&Jlu, "https://mirrors.jlu.edu.cn/CTAN/systems/texlive/tlnet"}, {&Jlu, "https://mirrors.jlu.edu.cn/CTAN/systems/texlive/tlnet"},
{&Sustech, "https://mirrors.sustech.edu.cn/CTAN/systems/texlive/tlnet"} {&Sustech, "https://mirrors.sustech.edu.cn/CTAN/systems/texlive/tlnet"}
}; };
def_sources_n(wr_tex); def_sources_n(wr_tex);

View File

@ -11,10 +11,10 @@
* @update 2024-06-07 * @update 2024-06-07
* @note * @note
*/ */
static Source_t static Source_t wr_winget_sources[] =
wr_winget_sources[] = { {
{&UpstreamProvider, "https://cdn.winget.microsoft.com/cache"}, {&UpstreamProvider, "https://cdn.winget.microsoft.com/cache"},
{&Ustc, "https://mirrors.ustc.edu.cn/winget-source"}, {&Ustc, "https://mirrors.ustc.edu.cn/winget-source"},
}; };
def_sources_n(wr_winget); def_sources_n(wr_winget);
@ -25,7 +25,10 @@ wr_winget_getsrc (char *option)
chsrc_run ("winget source list", RunOpt_Default); chsrc_run ("winget source list", RunOpt_Default);
} }
/* 参考https://mirrors.ustc.edu.cn/help/winget-source.html */
/**
* @consult https://mirrors.ustc.edu.cn/help/winget-source.html
*/
void void
wr_winget_setsrc (char *option) wr_winget_setsrc (char *option)
{ {
@ -38,6 +41,7 @@ wr_winget_setsrc (char *option)
chsrc_conclude (&source); chsrc_conclude (&source);
} }
void void
wr_winget_resetsrc (char *option) wr_winget_resetsrc (char *option)
{ {