2023-08-29 23:04:54 +08:00
|
|
|
|
/* --------------------------------------------------------------
|
|
|
|
|
* File : chsrc.h
|
|
|
|
|
* Authors : Aoran Zeng <ccmywish@qq.com>
|
|
|
|
|
* Created on : <2023-08-29>
|
2023-08-30 08:31:46 +08:00
|
|
|
|
* Last modified : <2023-08-30>
|
2023-08-29 23:04:54 +08:00
|
|
|
|
*
|
|
|
|
|
* chsrc:
|
|
|
|
|
*
|
|
|
|
|
* chsrc.c 头文件
|
|
|
|
|
* -------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
|
const char* abbr;
|
|
|
|
|
const char* name;
|
|
|
|
|
} mirror_info;
|
|
|
|
|
|
|
|
|
|
// 教育网
|
2023-08-30 10:31:43 +08:00
|
|
|
|
// 我们目前根据 https://github.com/mirrorz-org/oh-my-mirrorz 挑选速度前10位
|
|
|
|
|
//
|
2023-08-29 23:04:54 +08:00
|
|
|
|
mirror_info
|
|
|
|
|
Tuna = {"TUNA", "清华大学开源软件镜像站"},
|
|
|
|
|
Sjtug_Zhiyuan = {"SJTUG-zhiyuan", "上海交通大学致远镜像站"},
|
|
|
|
|
Zju = {"ZJU", "浙江大学开源软件镜像站"},
|
|
|
|
|
Lzuoss = {"LZUOSS", "兰州大学开源社区镜像站"},
|
|
|
|
|
Jlu = {"JLU", "吉林大学开源镜像站"},
|
|
|
|
|
Bfsu = {"BFSU", "北京外国语大学开源软件镜像站"},
|
|
|
|
|
Pku = {"PKU", "北京大学开源镜像站"},
|
|
|
|
|
Bjtu = {"BJTU", "北京交通大学自由与开源软件镜像站"},
|
|
|
|
|
Sustech = {"SUSTech", "南方科技大学开源软件镜像站"};
|
|
|
|
|
|
|
|
|
|
// 大型公司
|
|
|
|
|
mirror_info
|
|
|
|
|
Ali = {"Ali OPSX", "阿里巴巴开源镜像站"},
|
|
|
|
|
Tencent = {"Tencent", "腾讯软件源"};
|
|
|
|
|
|
|
|
|
|
// 开源社区
|
|
|
|
|
mirror_info
|
|
|
|
|
RubyChina = {"RubyChina", "Ruby China 社区源"};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
|
const mirror_info* mirror;
|
|
|
|
|
const char* url;
|
|
|
|
|
} source_info;
|
|
|
|
|
|
2023-08-30 10:31:43 +08:00
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 源信息
|
|
|
|
|
*
|
|
|
|
|
* 我们要求每个源至少有一个教育网镜像,至少有一个商业公司或开源社区维护的镜像
|
|
|
|
|
*/
|
2023-08-29 23:04:54 +08:00
|
|
|
|
static source_info
|
|
|
|
|
pl_ruby_sources[] = {
|
|
|
|
|
// 目前北外最快,Ruby China的源慢了一半
|
|
|
|
|
{&Bfsu, "https://mirrors.bfsu.edu.cn/rubygems/"},
|
|
|
|
|
{&Ali, "https://mirrors.aliyun.com/rubygems/"},
|
|
|
|
|
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/rubygems/"},
|
|
|
|
|
{&Tencent, "https://mirrors.tencent.com/rubygems/"},
|
|
|
|
|
{&RubyChina, "https://gems.ruby-china.com"},
|
2023-08-30 10:31:43 +08:00
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// TODO: 待更新完整列表,如阿里,腾讯,其他大学镜像
|
|
|
|
|
pl_python_sources[] = {
|
|
|
|
|
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/pypi/web/simple"},
|
|
|
|
|
{&Tuna, "https://pypi.tuna.tsinghua.edu.cn/simple"},
|
|
|
|
|
// 不要使用Zju,浙大的pypi在校外访问会自动转向Tuna
|
|
|
|
|
{&Lzuoss, "https://mirror.lzu.edu.cn/pypi/web/simple"},
|
|
|
|
|
{&Jlu, "https://mirrors.jlu.edu.cn/pypi//web/simple"},
|
|
|
|
|
{&Bfsu, "https://mirrors.bfsu.edu.cn/pypi/web/simple"}
|
2023-08-29 23:04:54 +08:00
|
|
|
|
};
|