Add r and julia sources

This commit is contained in:
Aoran Zeng
2023-08-30 21:42:10 +08:00
parent 88eb92d222
commit 22568288d2
2 changed files with 42 additions and 3 deletions

View File

@@ -25,8 +25,9 @@
chsrc gem # 或 chsrc ruby chsrc gem # 或 chsrc ruby
chsrc pip # 或 chsrc python chsrc pip # 或 chsrc python
chsrc npm # 或 chsrc nodejs chsrc npm # 或 chsrc nodejs
chsrc cran # 或 chsrc r
chsrc cpan # 或 chsrc perl chsrc cpan # 或 chsrc perl
chsrc cran # 或 chsrc r
chsrc julia chsrc julia
chsrc go chsrc go
@@ -59,6 +60,7 @@ chsrc brew # 或 chsrc homebrew
# 其他软件 # 其他软件
chsrc anaconda chsrc anaconda
chsrc ctan # Tex
``` ```
<br> <br>

41
chsrc.h
View File

@@ -30,7 +30,10 @@ mirror_info
Pku = {"PKU", "北京大学开源镜像站"}, Pku = {"PKU", "北京大学开源镜像站"},
Bjtu = {"BJTU", "北京交通大学自由与开源软件镜像站"}, Bjtu = {"BJTU", "北京交通大学自由与开源软件镜像站"},
Sustech = {"SUSTech", "南方科技大学开源软件镜像站"}, Sustech = {"SUSTech", "南方科技大学开源软件镜像站"},
Ustc = {"USTC", "中国科学技术大学开源镜像站"}; Ustc = {"USTC", "中国科学技术大学开源镜像站"},
// 速度暂时处于10位以后但是可用的源
Nju = {"NJU", "南京大学开源镜像站"};
// 大型公司 // 大型公司
mirror_info mirror_info
@@ -77,7 +80,8 @@ pl_ruby_sources[] = {
* *
* 不要添加Zju浙大的pypi在校外访问会自动转向Tuna * 不要添加Zju浙大的pypi在校外访问会自动转向Tuna
* *
* TODO: 速度只经过简单测试请Python用户协助待更新完整列表,如阿里,腾讯,其他大学镜像 * TODO: 1. 速度只经过简单测试请Python用户协助
* 2. 列表暂时未添加商业公司源,以及其他大学镜像
*/ */
pl_python_sources[] = { pl_python_sources[] = {
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/pypi/web/simple"}, {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/pypi/web/simple"},
@@ -117,9 +121,42 @@ pl_perl_sources[] = {
{&Bfsu, "https://mirrors.bfsu.edu.cn/CPAN/"}, {&Bfsu, "https://mirrors.bfsu.edu.cn/CPAN/"},
{&Bjtu, "https://mirror.bjtu.edu.cn/cpan/"}, {&Bjtu, "https://mirror.bjtu.edu.cn/cpan/"},
{&Lzuoss "https://mirror.lzu.edu.cn/CPAN/"} {&Lzuoss "https://mirror.lzu.edu.cn/CPAN/"}
},
/**
* 2023-08-30 更新
*
* TODO: 速度未经测试请R用户协助
*/
pl_r_sources[] = {
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/cran/"},
{&Ali, "https://mirrors.aliyun.com/CRAN/"},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/CRAN/"},
{&Bfsu, "https://mirrors.bfsu.edu.cn/CRAN/"},
{&Bjtu, "https://mirror.bjtu.edu.cn/cran/"},
},
/**
* 2023-08-30 更新
*
* 阿里云没有该源
*
* TODO: 1. 速度未经测试请Julia用户协助
* 2. 缺少商业公司或开源社区软件源
*/
pl_julia_sources[] = {
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/julia"},
{&Pku, "https://mirrors.pku.edu.cn/julia"},
{&Nju, "https://mirror.nju.edu.cn/julia"}
}; };
static source_info static source_info
os_ubuntu_sources[] = { os_ubuntu_sources[] = {
{&Ali, "https://mirrors.aliyun.com/ubuntu/"}, {&Ali, "https://mirrors.aliyun.com/ubuntu/"},