mirror of
https://github.com/RubyMetric/chsrc.git
synced 2024-12-29 18:24:10 +08:00
Format code
This commit is contained in:
parent
6e7b4bf985
commit
526a7feb89
|
@ -24,79 +24,93 @@
|
|||
*
|
||||
* Wiki中的排序是根据 https://github.com/mirrorz-org/oh-my-mirrorz 挑选速度前10位
|
||||
*/
|
||||
MirrorSite_t
|
||||
MirrorZ = {
|
||||
MirrorSite_t MirrorZ =
|
||||
{
|
||||
"mirrorz", "MirrorZ", "MirrorZ 校园网镜像站", "https://mirrors.cernet.edu.cn/",
|
||||
{SKIP, "功能特殊无法测速,跳过", "SKIP because of its special function"}
|
||||
},
|
||||
|
||||
Tuna = {
|
||||
Tuna =
|
||||
{
|
||||
"tuna", "TUNA", "清华大学开源软件镜像站", "https://mirrors.tuna.tsinghua.edu.cn/",
|
||||
{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/",
|
||||
{NotSkip, NA, NA, "https://mirrors.sjtug.sjtu.edu.cn/ctan" Big_File_ctan}
|
||||
},
|
||||
|
||||
Zju = {
|
||||
Zju =
|
||||
{
|
||||
"zju", "ZJU", "浙江大学开源软件镜像站", "https://mirrors.zju.edu.cn/",
|
||||
{NotSkip, NA, NA, "https://mirrors.zju.edu.cn/ubuntu-releases" Big_File_ubuntu}
|
||||
},
|
||||
|
||||
Lzuoss = {
|
||||
Lzuoss =
|
||||
{
|
||||
"lzu", "LZUOSS", "兰州大学开源社区镜像站", "https://mirror.lzu.edu.cn/",
|
||||
{NotSkip, NA, NA, "https://mirror.lzu.edu.cn/CTAN" Big_File_ctan}
|
||||
},
|
||||
|
||||
Jlu = {
|
||||
Jlu =
|
||||
{
|
||||
"jlu", "JLU", "吉林大学开源镜像站", "https://mirrors.jlu.edu.cn/",
|
||||
{NotSkip, NA, NA, "https://mirrors.jlu.edu.cn/_static/speedtest.bin"}
|
||||
},
|
||||
|
||||
Bfsu = {
|
||||
Bfsu =
|
||||
{
|
||||
"bfsu", "BFSU", "北京外国语大学开源软件镜像站", "https://mirrors.bfsu.edu.cn/",
|
||||
{NotSkip, NA, NA, "https://mirrors.bfsu.edu.cn/speedtest/1000mb.bin"}
|
||||
},
|
||||
|
||||
Pku = {
|
||||
Pku =
|
||||
{
|
||||
"pku", "PKU", "北京大学开源镜像站", "https://mirrors.pku.edu.cn/",
|
||||
{NotSkip, NA, NA, "https://mirrors.pku.edu.cn/ubuntu-releases" Big_File_ubuntu}
|
||||
},
|
||||
|
||||
Bjtu = {
|
||||
Bjtu =
|
||||
{
|
||||
"bjtu", "BJTU", "北京交通大学自由与开源软件镜像站", "https://mirror.bjtu.edu.cn/",
|
||||
{NotSkip, NA, NA, "https://mirror.bjtu.edu.cn/archlinux" Big_File_archlinux}
|
||||
},
|
||||
|
||||
Sustech = {
|
||||
Sustech =
|
||||
{
|
||||
"sustech", "SUSTech", "南方科技大学开源软件镜像站", "https://mirrors.sustech.edu.cn/",
|
||||
{NotSkip, NA, NA, "https://mirrors.sustech.edu.cn/site/speedtest/1000mb.bin"}
|
||||
},
|
||||
|
||||
Ustc = {
|
||||
Ustc =
|
||||
{
|
||||
"ustc", "USTC", "中国科学技术大学开源镜像站", "https://mirrors.ustc.edu.cn/",
|
||||
{NotSkip, NA, NA, "https://mirrors.ustc.edu.cn/ubuntu-releases" Big_File_ubuntu}
|
||||
},
|
||||
|
||||
Hust = {
|
||||
Hust =
|
||||
{
|
||||
"hust", "HUST", "华中科技大学开源镜像站", "https://mirrors.hust.edu.cn/",
|
||||
{NotSkip, NA, NA, "https://mirrors.hust.edu.cn/ubuntu-releases" Big_File_ubuntu}
|
||||
},
|
||||
|
||||
// 速度暂时处于10位以后,但是目前可用的源
|
||||
Iscas = {
|
||||
Iscas =
|
||||
{
|
||||
"iscas", "ISCAS", "中科院软件所智能软件研究中心开源镜像站", "https://mirror.iscas.ac.cn/",
|
||||
{NotSkip, NA, NA, "https://mirror.iscas.ac.cn/ubuntu-releases" Big_File_ubuntu}
|
||||
},
|
||||
|
||||
Scau = {
|
||||
Scau =
|
||||
{
|
||||
"scau", "SCAU", "华南农业大学开源软件镜像站", "https://mirrors.scau.edu.cn/",
|
||||
{NotSkip, NA, NA, "https://mirrors.scau.edu.cn/ubuntu-releases" Big_File_ubuntu}
|
||||
},
|
||||
|
||||
Nju = {
|
||||
Nju =
|
||||
{
|
||||
"nju", "NJU", "南京大学开源镜像站", "https://mirrors.nju.edu.cn/",
|
||||
{NotSkip, NA, NA, "https://mirrors.nju.edu.cn/archlinux" Big_File_archlinux}
|
||||
};
|
||||
|
@ -104,7 +118,8 @@ Nju = {
|
|||
/**
|
||||
* @note 2023-09-05 只使用了不到5次,重庆大学镜像站就把我的ip封杀了,对用户来说封杀策略过严,暂时不可靠,暂时不用
|
||||
*
|
||||
* Cqu = {
|
||||
* Cqu =
|
||||
* {
|
||||
* "cqu", "CQU", "重庆大学开源软件镜像站", "https://mirrors.cqu.edu.cn/",
|
||||
* {NotSkip, NA, NA, "https://mirrors.cqu.edu.cn/speedtest/1000mb.bin"}
|
||||
* };
|
||||
|
@ -116,58 +131,67 @@ Nju = {
|
|||
/**
|
||||
* 商业公司提供的源
|
||||
*/
|
||||
MirrorSite_t
|
||||
Ali = {
|
||||
MirrorSite_t Ali =
|
||||
{
|
||||
"ali", "Ali OPSX Public", "阿里巴巴开源镜像站(公网)", "https://developer.aliyun.com/mirror/",
|
||||
{NotSkip, NA, NA, "https://mirrors.aliyun.com/deepin-cd" Big_File_deepin}
|
||||
},
|
||||
/*
|
||||
// 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/",
|
||||
{NotSkip, NA, NA, "https://mirrors.cloud.aliyuncs.com/deepin-cd" Big_File_deepin}
|
||||
},
|
||||
|
||||
// https://mirrors.aliyuncs.com/
|
||||
Ali_ECS_classic = {
|
||||
Ali_ECS_classic =
|
||||
{
|
||||
"ali-ECS", "Ali OPSX ECS", "阿里巴巴开源镜像站(ECS 经典网络)", "https://developer.aliyun.com/mirror/",
|
||||
{NotSkip, NA, NA, "https://mirrors.aliyuncs.com/deepin-cd" Big_File_deepin}
|
||||
},
|
||||
*/
|
||||
|
||||
Tencent = {
|
||||
Tencent =
|
||||
{
|
||||
"tencent", "Tencent Public", "腾讯软件源(公网)", "https://mirrors.tencent.com/",
|
||||
{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/",
|
||||
{NotSkip, NA, NA, "https://mirrors.cloud.tencentyun.com/ubuntu-releases" Big_File_ubuntu}
|
||||
},
|
||||
*/
|
||||
|
||||
Huawei = {
|
||||
Huawei =
|
||||
{
|
||||
"huawei", "Huawei Cloud", "华为开源镜像站", "https://mirrors.huaweicloud.com/",
|
||||
{NotSkip, NA, NA, "https://mirrors.huaweicloud.com/ubuntu-releases" Big_File_ubuntu}
|
||||
},
|
||||
|
||||
Volcengine = {
|
||||
Volcengine =
|
||||
{
|
||||
"volc", "Volcengine", "火山引擎开源软件镜像站(公网)", "https://developer.volcengine.com/mirror/",
|
||||
{NotSkip, NA, NA, "https://mirrors.volces.com/ubuntu-releases" Big_File_ubuntu}
|
||||
},
|
||||
/*
|
||||
Volceengine_Intra = {
|
||||
Volceengine_Intra =
|
||||
{
|
||||
"volc-intra", "Volcengine Intranet", "火山引擎开源软件镜像站(内网)",
|
||||
"https://developer.volcengine.com/mirror/",
|
||||
"https://mirrors.ivolces.com/ubuntu-releases" Big_File_ubuntu },
|
||||
*/
|
||||
|
||||
Netease = {
|
||||
Netease =
|
||||
{
|
||||
"netease", "Netease", "网易开源镜像站", "https://mirrors.163.com/",
|
||||
{NotSkip, NA, NA, "https://mirrors.163.com/deepin-cd" Big_File_deepin}
|
||||
},
|
||||
|
||||
Sohu = {
|
||||
Sohu =
|
||||
{
|
||||
"sohu", "SOHU", "搜狐开源镜像站", "https://mirrors.sohu.com/",
|
||||
{NotSkip, NA, NA, "https://mirrors.sohu.com/deepin-cd" Big_File_deepin}
|
||||
};
|
||||
|
|
|
@ -38,14 +38,14 @@ SourceProvider_t;
|
|||
|
||||
typedef SourceProvider_t MirrorSite_t;
|
||||
|
||||
SourceProvider_t
|
||||
UpstreamProvider = {
|
||||
SourceProvider_t UpstreamProvider =
|
||||
{
|
||||
"upstream", "Upstream", "上游默认源", NULL,
|
||||
{SKIP, "上游默认源不测速", "SKIP for upstream source", NULL}
|
||||
};
|
||||
},
|
||||
|
||||
SourceProvider_t
|
||||
UserDefinedProvider = {
|
||||
UserDefinedProvider =
|
||||
{
|
||||
"user", "用户自定义", "用户自定义", NULL,
|
||||
{SKIP, "用户自定义源不测速", "SKIP for user-defined source", NULL}
|
||||
};
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
* @time 2023-09-10 更新
|
||||
* @note 不太好换,且用户可能不多,我们暂时只给用户提供文档
|
||||
*/
|
||||
static Source_t
|
||||
pl_clojure_sources[] = {
|
||||
static Source_t pl_clojure_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/help/clojars/"},
|
||||
{&Ustc, "https://mirrors.ustc.edu.cn/help/clojars.html"}
|
||||
|
|
|
@ -15,8 +15,8 @@
|
|||
/**
|
||||
* @update 2024-10-31
|
||||
*/
|
||||
static Source_t
|
||||
pl_dart_flutter_sources[] = {
|
||||
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
|
||||
|
|
|
@ -14,8 +14,8 @@
|
|||
/**
|
||||
* @update 2024-10-31
|
||||
*/
|
||||
static Source_t
|
||||
pl_dart_sources[] = {
|
||||
static Source_t pl_dart_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, "https://pub.dev"},
|
||||
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/dart-pub"},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/dart-pub"},
|
||||
|
|
|
@ -9,13 +9,14 @@
|
|||
* Last Modified : <2024-10-31>
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
static MirrorSite_t
|
||||
GoProxyCN = {
|
||||
static MirrorSite_t GoProxyCN =
|
||||
{
|
||||
"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
|
||||
},
|
||||
|
||||
GoProxyIO = {
|
||||
GoProxyIO =
|
||||
{
|
||||
"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
|
||||
};
|
||||
|
@ -25,8 +26,8 @@ GoProxyIO = {
|
|||
* @update 2024-10-31
|
||||
* @note 缺少教育网软件源
|
||||
*/
|
||||
static Source_t
|
||||
pl_go_sources[] = {
|
||||
static Source_t pl_go_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, "https://proxy.golang.org"},
|
||||
{&GoProxyCN, "https://goproxy.cn"},
|
||||
{&Ali, "https://mirrors.aliyun.com/goproxy/"},
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
* ------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
* @time 2023-09-10 更新
|
||||
* @update 2023-09-10
|
||||
*/
|
||||
static Source_t
|
||||
pl_haskell_sources[] = {
|
||||
static Source_t pl_haskell_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/hackage"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/hackage"},
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
* @time 2024-04-18 更新
|
||||
* @note 缺少教育网或开源社区软件源
|
||||
*/
|
||||
static Source_t
|
||||
pl_java_sources[] = {
|
||||
static Source_t pl_java_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Ali, "https://maven.aliyun.com/repository/public/"},
|
||||
{&Huawei, "https://mirrors.huaweicloud.com/repository/maven/"},
|
||||
|
|
|
@ -8,11 +8,11 @@
|
|||
* ------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
* @time 2023-09-05 更新
|
||||
* @update 2023-09-05
|
||||
* @note 缺少商业公司或开源社区软件源
|
||||
*/
|
||||
static Source_t
|
||||
pl_julia_sources[] = {
|
||||
static Source_t pl_julia_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/julia"},
|
||||
{&Pku, "https://mirrors.pku.edu.cn/julia"},
|
||||
|
|
|
@ -7,19 +7,19 @@
|
|||
* Last Modified : <2024-08-09>
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
static MirrorSite_t
|
||||
Api7 = {
|
||||
static MirrorSite_t Api7 =
|
||||
{
|
||||
"api7", "api7.ai", "深圳支流科技有限公司", "https://www.apiseven.com/",
|
||||
{SKIP, ToFill, ToFill, NULL}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @time 2023-09-27 更新
|
||||
* @update 2023-09-27
|
||||
* @note 目前只有一个源
|
||||
*/
|
||||
static Source_t
|
||||
pl_lua_sources[] = {
|
||||
static Source_t pl_lua_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Api7, "https://luarocks.cn"},
|
||||
};
|
||||
|
|
|
@ -7,8 +7,9 @@
|
|||
* Last Modified : <2024-08-09>
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
static MirrorSite_t
|
||||
NugetOrg = {"nuget.org", "NuGet Org", "Nuget Organization", "https://www.nuget.org/",
|
||||
static MirrorSite_t NugetOrg =
|
||||
{
|
||||
"nuget.org", "NuGet Org", "Nuget Organization", "https://www.nuget.org/",
|
||||
{SKIP, ToFill, ToFill, NULL}
|
||||
};
|
||||
|
||||
|
@ -19,8 +20,8 @@ NugetOrg = {"nuget.org", "NuGet Org", "Nuget Organization", "https://www.nuget.o
|
|||
* https://mirrors.huaweicloud.com/mirrorDetail/5ebf85de07b41baf6d0882ab?mirrorName=nuget&catalog=language
|
||||
* }
|
||||
*/
|
||||
static Source_t
|
||||
pl_nuget_sources[] = {
|
||||
static Source_t pl_nuget_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
{&NugetOrg, "https://www.nuget.org/api/v2/"},
|
||||
{&Huawei, "https://mirrors.huaweicloud.com/repository/nuget/v3"}
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
/**
|
||||
* @update 2023-09-15
|
||||
*/
|
||||
static Source_t
|
||||
pl_ocaml_sources[] = {
|
||||
static Source_t pl_ocaml_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/git/opam-repository.git"}
|
||||
};
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
* @update 2024-09-14
|
||||
* @note 缺少教育网或开源社区软件源
|
||||
*/
|
||||
static Source_t
|
||||
pl_php_sources[] = {
|
||||
static Source_t pl_php_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Ali, "https://mirrors.aliyun.com/composer/"},
|
||||
{&Tencent, "https://mirrors.tencent.com/composer/"},
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
/**
|
||||
* @update 2024-05-24
|
||||
*/
|
||||
static Source_t
|
||||
pl_perl_sources[] = {
|
||||
static Source_t pl_perl_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/CPAN/"},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/CPAN/"},
|
||||
|
|
|
@ -18,8 +18,8 @@ static SourceProvider_t UpstreamPython =
|
|||
* @update 2024-09-14
|
||||
* @note 不要添加Zju,浙大的pypi在校外访问会自动转向Tuna
|
||||
*/
|
||||
static Source_t
|
||||
pl_python_sources[] = {
|
||||
static Source_t pl_python_sources[] =
|
||||
{
|
||||
{&UpstreamPython, "https://pypi.org/simple"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/pypi/web/simple"},
|
||||
{&Lzuoss, "https://mirror.lzu.edu.cn/pypi/web/simple"},
|
||||
|
|
|
@ -14,8 +14,8 @@
|
|||
* 我们在换cran的同时,也直接帮助用户换bioconductor
|
||||
* }
|
||||
*/
|
||||
static Source_t
|
||||
pl_r_sources[] = {
|
||||
static Source_t pl_r_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/cran/"},
|
||||
// {&Ali, "https://mirrors.aliyun.com/CRAN/"},
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
* @note 以下都支持稀疏索引,我们换源时都将默认添加 `sparse+`
|
||||
* @note 链接末尾的 `/` 不能缺少
|
||||
*/
|
||||
static Source_t
|
||||
pl_rust_cargo_sources[] = {
|
||||
static Source_t pl_rust_cargo_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, "https://index.crates.io/"}, // @help 是这个吗?
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/crates.io-index/"},
|
||||
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/crates.io-index/"},
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
* Last Modified : <2024-11-21>
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
static MirrorSite_t
|
||||
RsProxyCN = {
|
||||
static MirrorSite_t RsProxyCN =
|
||||
{
|
||||
"rsproxycn", "RsProxy.cn", "字节跳动基础架构Dev Infra", "https://rsproxy.cn/",
|
||||
{SKIP, ToFill, ToFill, NULL}
|
||||
};
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
/**
|
||||
* @update 2024-10-02
|
||||
*/
|
||||
static Source_t
|
||||
pl_rust_rustup_sources[] = {
|
||||
static Source_t pl_rust_rustup_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, "https://static.rust-lang.org"},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/rustup"},
|
||||
{&Ustc, "https://mirrors.ustc.edu.cn/rust-static"},
|
||||
|
|
|
@ -79,7 +79,7 @@ static const char
|
|||
*os_rockylinux [] = {"rocky", "rockylinux", NULL, t(&os_rockylinux_target)},
|
||||
*os_almalinux [] = {"alma", "almalinux", NULL, t(&os_almalinux_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_trisquel [] = {"trisquel", NULL, t(&os_trisquel_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_alpine, os_void, os_solus,
|
||||
os_alpine, os_voidlinux, os_solus,
|
||||
|
||||
os_msys2,
|
||||
os_freebsd, os_netbsd, os_openbsd,
|
||||
|
|
|
@ -13,7 +13,8 @@
|
|||
* @update 2024-11-21
|
||||
*/
|
||||
static Source_t
|
||||
os_armbian_sources[] = {
|
||||
os_armbian_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, "http://apt.armbian.com"},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/armbian"},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/armbian"},
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
/**
|
||||
* @update 2024-11-21
|
||||
*/
|
||||
static Source_t
|
||||
os_debian_sources[] = {
|
||||
static Source_t os_debian_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, "http://deb.debian.org/debian"},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/debian/"},
|
||||
{&Ali, "https://mirrors.aliyun.com/debian"},
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
/**
|
||||
* @update 2024-11-21
|
||||
*/
|
||||
static Source_t
|
||||
os_kali_sources[] = {
|
||||
static Source_t os_kali_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, "http://http.kali.org/kali"},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/kali"},
|
||||
{&Ali, "https://mirrors.aliyun.com/kali"},
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
/**
|
||||
* @update 2024-11-21
|
||||
*/
|
||||
static Source_t
|
||||
os_linuxlite_sources[] = {
|
||||
static Source_t os_linuxlite_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, "http://repo.linuxliteos.com/linuxlite/"},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/linuxliteos/"},
|
||||
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/linuxliteos/"},
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
* @update 2024-11-21 更新
|
||||
* @note 实际上镜像站里的内容和Ubuntu的不太一样
|
||||
*/
|
||||
static Source_t
|
||||
os_linuxmint_sources[] = {
|
||||
static Source_t os_linuxmint_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/linuxmint/"},
|
||||
{&Ali, "http://mirrors.aliyun.com/linuxmint-packages/"},
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
/**
|
||||
* @update 2024-04-18
|
||||
*/
|
||||
static Source_t
|
||||
os_ros_sources[] = {
|
||||
static Source_t os_ros_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Ali, "https://mirrors.aliyun.com"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn"},
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
/**
|
||||
* @time 2023-09-29 更新
|
||||
*/
|
||||
static Source_t
|
||||
os_raspberrypi_sources[] = {
|
||||
static Source_t os_raspberrypi_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, "https://archive.raspberrypi.com/"}, // https://archive.raspberrypi.org/ until Debian "bullseye" release
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/raspberrypi/"},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/raspberrypi/"},
|
||||
|
|
|
@ -10,10 +10,10 @@
|
|||
* ------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
* @time 2024-11-21 更新
|
||||
* @update 2024-11-21
|
||||
*/
|
||||
static Source_t
|
||||
os_trisquel_sources[] = {
|
||||
static Source_t os_trisquel_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/trisquel/"},
|
||||
{&Ali, "https://mirrors.aliyun.com/trisquel/"},
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
/**
|
||||
* @update 2024-09-14
|
||||
*/
|
||||
static Source_t
|
||||
os_deepin_sources[] = {
|
||||
static Source_t os_deepin_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, "https://community-packages.deepin.com/deepin"},
|
||||
{&Ali, "https://mirrors.aliyun.com/deepin"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/deepin"},
|
||||
|
|
|
@ -13,8 +13,8 @@
|
|||
/**
|
||||
* @time 2023-09-29 更新
|
||||
*/
|
||||
static Source_t
|
||||
os_openkylin_sources[] = {
|
||||
static Source_t os_openkylin_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, "https://archive.openkylin.top/openkylin/"},
|
||||
{&Ali, "https://mirrors.aliyun.com/openkylin/"},
|
||||
{&Netease, "https://mirrors.163.com/openkylin/"},
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
/**
|
||||
* @update 2024-09-14
|
||||
*/
|
||||
static Source_t
|
||||
os_alpine_sources[] = {
|
||||
static Source_t os_alpine_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, "http://dl-cdn.alpinelinux.org/alpine"},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/alpine"},
|
||||
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/alpine"},
|
||||
|
|
|
@ -9,15 +9,15 @@
|
|||
* ------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
* @time 2023-09-27 更新
|
||||
* @update 2023-09-27
|
||||
*
|
||||
* @note by:ccmywish {
|
||||
* [2023-09-24] 以下三个USTC, NJU, Netease 均维护了 freebsd-pkg freebsd-ports
|
||||
* [2023-09-27] 请务必保持Nju前面有至少一个镜像,原因请查看 freebsd 的换源函数
|
||||
* @note {
|
||||
* 2023-09-24: 以下三个USTC, NJU, Netease 均维护了 freebsd-pkg freebsd-ports
|
||||
* 2023-09-27: 请务必保持Nju前面有至少一个镜像,原因请查看 freebsd 的换源函数
|
||||
* }
|
||||
*/
|
||||
static Source_t
|
||||
os_freebsd_sources[] = {
|
||||
static Source_t os_freebsd_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Ustc, "mirrors.ustc.edu.cn"},
|
||||
{&Nju, "mirror.nju.edu.cn"},
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
/**
|
||||
* @update 2024-09-14
|
||||
*/
|
||||
static Source_t
|
||||
os_netbsd_sources[] = {
|
||||
static Source_t os_netbsd_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Ali, "https://mirrors.aliyun.com/pkgsrc/packages/NetBSD/"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/pkgsrc/packages/NetBSD/"},
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
/**
|
||||
* @update 2024-09-14
|
||||
*/
|
||||
static Source_t
|
||||
os_openbsd_sources[] = {
|
||||
static Source_t os_openbsd_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Ali, "https://mirrors.aliyun.com/OpenBSD/"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/OpenBSD/"},
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
/**
|
||||
* @update 2024-09-14
|
||||
*/
|
||||
static Source_t
|
||||
os_gentoo_sources[] = {
|
||||
static Source_t os_gentoo_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Ali, "mirrors.aliyun.com"},
|
||||
{&Bfsu, "mirrors.bfsu.edu.cn"},
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
/**
|
||||
* @update 2024-08-08
|
||||
*/
|
||||
static Source_t
|
||||
os_openwrt_sources[] = {
|
||||
static Source_t os_openwrt_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, "http://downloads.openwrt.org"},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/openwrt"},
|
||||
{&Ali, "https://mirrors.aliyun.com/openwrt"},
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
* ------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
* @time 2023-09-29 更新
|
||||
* @update 2023-09-29
|
||||
*/
|
||||
static Source_t
|
||||
os_solus_sources[] = {
|
||||
static Source_t os_solus_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
{&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"},
|
||||
|
@ -21,7 +21,7 @@ def_sources_n(os_solus);
|
|||
|
||||
|
||||
/**
|
||||
* 参考: https://help.mirrors.cernet.edu.cn/solus/
|
||||
* @consult https://help.mirrors.cernet.edu.cn/solus/
|
||||
*/
|
||||
void
|
||||
os_solus_setsrc (char *option)
|
||||
|
|
|
@ -8,34 +8,34 @@
|
|||
* ------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
* @time 2023-09-24 更新
|
||||
* @update 2023-09-24
|
||||
*/
|
||||
static Source_t
|
||||
os_void_sources[] = {
|
||||
static Source_t os_voidlinux_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, "https://repo-default.voidlinux.org"},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/voidlinux"},
|
||||
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/voidlinux"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/voidlinux"}
|
||||
};
|
||||
def_sources_n(os_void);
|
||||
def_sources_n(os_voidlinux);
|
||||
|
||||
|
||||
void
|
||||
os_void_getsrc (char *option)
|
||||
os_voidlinux_getsrc (char *option)
|
||||
{
|
||||
char* cmd = "xbps-query -L";
|
||||
chsrc_run (cmd, RunOpt_No_Last_New_Line);
|
||||
}
|
||||
|
||||
/**
|
||||
* 参考: https://help.mirrors.cernet.edu.cn/voidlinux/
|
||||
* @consult https://help.mirrors.cernet.edu.cn/voidlinux/
|
||||
*/
|
||||
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");
|
||||
char *cmd = "cp /usr/share/xbps.d/*-repository-*.conf /etc/xbps.d/";
|
||||
|
@ -56,4 +56,4 @@ os_void_setsrc (char *option)
|
|||
chsrc_conclude (&source);
|
||||
}
|
||||
|
||||
def_target(os_void);
|
||||
def_target(os_voidlinux);
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
/**
|
||||
* @time 2024-06-12 更新
|
||||
*/
|
||||
static Source_t
|
||||
os_almalinux_sources[] = {
|
||||
static Source_t os_almalinux_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, "http://repo.almalinux.org/almalinux"},
|
||||
{&Ali, "https://mirrors.aliyun.com/almalinux"},
|
||||
{&Volcengine, "https://mirrors.volces.com/almalinux"},
|
||||
|
|
|
@ -10,10 +10,10 @@
|
|||
* ------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
* @time 2024-06-12 更新
|
||||
* @update 2024-06-12
|
||||
*/
|
||||
static Source_t
|
||||
os_anolis_sources[] = {
|
||||
static Source_t os_anolis_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Ali, "https://mirrors.aliyun.com/anolis"},
|
||||
{&Hust, "https://mirrors.hust.edu.cn/anolis"}
|
||||
|
|
|
@ -14,8 +14,8 @@
|
|||
/**
|
||||
* @update 2024-11-04
|
||||
*/
|
||||
static Source_t
|
||||
os_fedora_sources[] = {
|
||||
static Source_t os_fedora_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, "http://download.example/pub/fedora/linux"},
|
||||
{&Ali, "https://mirrors.aliyun.com/fedora"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/fedora"},
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
* ------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
* @time 2024-06-12 更新
|
||||
* @update 2024-06-12
|
||||
*/
|
||||
static Source_t
|
||||
os_rockylinux_sources[] = {
|
||||
static Source_t os_rockylinux_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/rocky"},
|
||||
{&Ali, "https://mirrors.aliyun.com/rockylinux"},
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
/**
|
||||
* @update 2024-09-14
|
||||
*/
|
||||
static Source_t
|
||||
os_openeuler_sources[] = {
|
||||
static Source_t os_openeuler_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, "https://repo.openeuler.org/"},
|
||||
{&Ali, "https://mirrors.aliyun.com/openeuler/"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/openeuler/"},
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
/**
|
||||
* @update 2024-08-16
|
||||
*/
|
||||
static Source_t
|
||||
os_opensuse_sources[] = {
|
||||
static Source_t os_opensuse_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Ali, "https://mirrors.aliyun.com/opensuse"},
|
||||
{&Volcengine, "https://mirrors.volces.com/opensuse"},
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
* @update 2024-07-03
|
||||
* @note 不要给后面加 / ,因为ARM情况下,还要额外加一个 arm 后缀
|
||||
*/
|
||||
static Source_t
|
||||
os_arch_sources[] = {
|
||||
static Source_t os_arch_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Ali, "https://mirrors.aliyun.com/archlinux"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/archlinux"},
|
||||
|
@ -27,10 +27,11 @@ os_arch_sources[] = {
|
|||
},
|
||||
|
||||
/**
|
||||
* @time 2024-07-03 更新
|
||||
* @update 2024-07-03
|
||||
* @note 根据 GitHub:@zheng7fu2 建议,拆分 archlinuxcn 出来
|
||||
*/
|
||||
os_archlinuxcn_sources[] = {
|
||||
os_archlinuxcn_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, "https://repo.archlinuxcn.org/"},
|
||||
{&Ali, "https://mirrors.aliyun.com/archlinuxcn/"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/archlinuxcn/"},
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
/**
|
||||
* @time 2024-04-18 更新
|
||||
*/
|
||||
static Source_t
|
||||
os_msys2_sources[] = {
|
||||
static Source_t os_msys2_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Ali, "https://mirrors.aliyun.com/msys2"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/msys2"},
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
* @time 2023-09-10 更新
|
||||
* @note 这些链接将会在setsrc函数中补充完整
|
||||
*/
|
||||
static Source_t
|
||||
wr_anaconda_sources[] = {
|
||||
static Source_t wr_anaconda_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, "https://repo.anaconda.com/"},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/anaconda/"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/anaconda/"},
|
||||
|
|
|
@ -8,18 +8,19 @@
|
|||
* ------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
* @time 2024-06-08 更新
|
||||
* @update 2024-06-08
|
||||
*/
|
||||
static Source_t
|
||||
wr_cocoapods_sources[] = {
|
||||
static Source_t wr_cocoapods_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/git/CocoaPods/Specs.git"}
|
||||
};
|
||||
def_sources_n(wr_cocoapods);
|
||||
|
||||
|
||||
/**
|
||||
* 参考:https://mirrors.tuna.tsinghua.edu.cn/help/CocoaPods/
|
||||
* @consult https://mirrors.tuna.tsinghua.edu.cn/help/CocoaPods/
|
||||
*/
|
||||
void
|
||||
wr_cocoapods_setsrc (char *option)
|
||||
|
|
|
@ -9,19 +9,21 @@
|
|||
* Last Modified : <2024-11-22>
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
static MirrorSite_t
|
||||
DaoCloud = {
|
||||
static MirrorSite_t DaoCloud =
|
||||
{
|
||||
"daocloud", "DaoCloud","上海道客网络科技有限公司", "https://www.daocloud.io/",
|
||||
// 没有找到 DaoCloud 合适的下载链接,先随便给一个,以规避 chsrc 自动测速时所有 dockerhub 镜像站都没有测速链接带来的 bug
|
||||
{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/",
|
||||
{SKIP, ToFill, ToFill, NULL}
|
||||
},
|
||||
|
||||
Huecker = {
|
||||
Huecker =
|
||||
{
|
||||
"huecker", "(Russia) Huecker", "俄罗斯 Huecker.io", "https://huecker.io/",
|
||||
// 同 DaoCloud,没有合适的下载链接,先随便给一个,以避免 bug
|
||||
{NotSkip, NA, NA, "https://huecker.io/en/use.html"}
|
||||
|
@ -36,8 +38,8 @@ Huecker = {
|
|||
* @consult https://gist.github.com/y0ngb1n/7e8f16af3242c7815e7ca2f0833d3ea6
|
||||
*/
|
||||
|
||||
static Source_t
|
||||
wr_dockerhub_sources[] = {
|
||||
static Source_t wr_dockerhub_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
// {&Ustc, "https://docker.mirrors.ustc.edu.cn/"},
|
||||
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
* Last Modified : <2024-11-21>
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
static MirrorSite_t
|
||||
EmacsChina = {
|
||||
static MirrorSite_t EmacsChina =
|
||||
{
|
||||
"emacschina", "EmacsChina", "Emacs China 社区", "https://elpamirror.emacs-china.org/",
|
||||
{SKIP, ToFill, ToFill, NULL}
|
||||
};
|
||||
|
@ -17,8 +17,8 @@ EmacsChina = {
|
|||
* @update 2023-09-10
|
||||
* @note Emacs用户往往只需要一次性换源,只会极少次调用 chsrc,我们只给用户提供文档
|
||||
*/
|
||||
Source_t
|
||||
wr_emacs_sources[] = {
|
||||
Source_t wr_emacs_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/docs/emacs-elpa"},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/help/elpa/"},
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
* @update 2023-09-11
|
||||
* @note 目前只有一个源
|
||||
*/
|
||||
static Source_t
|
||||
wr_flathub_sources[] = {
|
||||
static Source_t wr_flathub_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/flathub"},
|
||||
};
|
||||
|
@ -20,7 +20,7 @@ def_sources_n(wr_flathub);
|
|||
|
||||
|
||||
/**
|
||||
* 参考: https://mirrors.sjtug.sjtu.edu.cn/docs/flathub
|
||||
* @consult https://mirrors.sjtug.sjtu.edu.cn/docs/flathub
|
||||
*/
|
||||
void
|
||||
wr_flathub_setsrc (char *option)
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
* @update 2023-09-11
|
||||
* @note 目前只有一个源
|
||||
*/
|
||||
static Source_t
|
||||
wr_guix_sources[] = {
|
||||
static Source_t wr_guix_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/git/guix.git"}
|
||||
};
|
||||
|
@ -20,7 +20,7 @@ def_sources_n(wr_guix);
|
|||
|
||||
|
||||
/**
|
||||
* 参考: https://mirrors.sjtug.sjtu.edu.cn/docs/guix
|
||||
* @consult https://mirrors.sjtug.sjtu.edu.cn/docs/guix
|
||||
*/
|
||||
void
|
||||
wr_guix_setsrc (char *option)
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
* }
|
||||
*/
|
||||
static Source_t
|
||||
wr_homebrew_sources[] = {
|
||||
wr_homebrew_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/"},
|
||||
|
|
|
@ -14,8 +14,8 @@
|
|||
* 2. 这些链接将会在setsrc函数中补充完整
|
||||
* }
|
||||
*/
|
||||
static Source_t
|
||||
wr_nix_sources[] = {
|
||||
static Source_t wr_nix_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/nix-channels/"}
|
||||
};
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
/**
|
||||
* @update 2023-09-10
|
||||
*/
|
||||
static Source_t
|
||||
wr_tex_sources[] = {
|
||||
static Source_t wr_tex_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/ctan/systems/texlive/tlnet"},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet"},
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
* @update 2024-06-07
|
||||
* @note 目前仅有一个源
|
||||
*/
|
||||
static Source_t
|
||||
wr_winget_sources[] = {
|
||||
static Source_t wr_winget_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, "https://cdn.winget.microsoft.com/cache"},
|
||||
{&Ustc, "https://mirrors.ustc.edu.cn/winget-source"},
|
||||
};
|
||||
|
@ -25,7 +25,10 @@ wr_winget_getsrc (char *option)
|
|||
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
|
||||
wr_winget_setsrc (char *option)
|
||||
{
|
||||
|
@ -38,6 +41,7 @@ wr_winget_setsrc (char *option)
|
|||
chsrc_conclude (&source);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
wr_winget_resetsrc (char *option)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user