mirror of
https://github.com/RubyMetric/chsrc
synced 2026-03-03 04:00:30 +08:00
Format code
This commit is contained in:
@@ -11,13 +11,13 @@
|
||||
* @time 2023-09-10 更新
|
||||
* @note 这些链接将会在setsrc函数中补充完整
|
||||
*/
|
||||
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/"},
|
||||
{&Zju, "https://mirrors.zju.edu.cn/anaconda/"},
|
||||
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/anaconda"}
|
||||
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/"},
|
||||
{&Zju, "https://mirrors.zju.edu.cn/anaconda/"},
|
||||
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/anaconda"}
|
||||
};
|
||||
def_sources_n(wr_anaconda);
|
||||
|
||||
|
||||
@@ -8,18 +8,19 @@
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
* @time 2024-06-08 更新
|
||||
* @update 2024-06-08
|
||||
*/
|
||||
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"}
|
||||
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,18 +38,18 @@ Huecker = {
|
||||
* @consult https://gist.github.com/y0ngb1n/7e8f16af3242c7815e7ca2f0833d3ea6
|
||||
*/
|
||||
|
||||
static Source_t
|
||||
wr_dockerhub_sources[] = {
|
||||
{&UpstreamProvider, NULL},
|
||||
// {&Ustc, "https://docker.mirrors.ustc.edu.cn/"},
|
||||
static Source_t wr_dockerhub_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
// {&Ustc, "https://docker.mirrors.ustc.edu.cn/"},
|
||||
|
||||
// https://github.com/DaoCloud/public-image-mirror
|
||||
{&DaoCloud, "https://docker.m.daocloud.io"},
|
||||
{&Fit2Cloud, "https://docker.1panel.live"},
|
||||
{&DaoCloud, "https://docker.m.daocloud.io"},
|
||||
{&Fit2Cloud, "https://docker.1panel.live"},
|
||||
|
||||
// 暂时加入,未来若国内镜像恢复,将删除
|
||||
// https://huecker.io/en/use.html#unbanned
|
||||
{&Huecker, "https://huecker.io"}
|
||||
{&Huecker, "https://huecker.io"}
|
||||
};
|
||||
|
||||
def_sources_n(wr_dockerhub);
|
||||
|
||||
@@ -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,15 +17,15 @@ EmacsChina = {
|
||||
* @update 2023-09-10
|
||||
* @note Emacs用户往往只需要一次性换源,只会极少次调用 chsrc,我们只给用户提供文档
|
||||
*/
|
||||
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/"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/help/elpa/"},
|
||||
{&Ustc, "https://mirrors.ustc.edu.cn/help/elpa.html"},
|
||||
{&Zju, "https://mirrors.zju.edu.cn/docs/elpa/"},
|
||||
{&EmacsChina, "https://elpamirror.emacs-china.org/"}
|
||||
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/"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/help/elpa/"},
|
||||
{&Ustc, "https://mirrors.ustc.edu.cn/help/elpa.html"},
|
||||
{&Zju, "https://mirrors.zju.edu.cn/docs/elpa/"},
|
||||
{&EmacsChina, "https://elpamirror.emacs-china.org/"}
|
||||
};
|
||||
def_sources_n(wr_emacs);
|
||||
|
||||
|
||||
@@ -11,16 +11,16 @@
|
||||
* @update 2023-09-11
|
||||
* @note 目前只有一个源
|
||||
*/
|
||||
static Source_t
|
||||
wr_flathub_sources[] = {
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/flathub"},
|
||||
static Source_t wr_flathub_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/flathub"},
|
||||
};
|
||||
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,16 +11,16 @@
|
||||
* @update 2023-09-11
|
||||
* @note 目前只有一个源
|
||||
*/
|
||||
static Source_t
|
||||
wr_guix_sources[] = {
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/git/guix.git"}
|
||||
static Source_t wr_guix_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/git/guix.git"}
|
||||
};
|
||||
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,12 +16,13 @@
|
||||
* }
|
||||
*/
|
||||
static Source_t
|
||||
wr_homebrew_sources[] = {
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/"},
|
||||
{&Zju, "https://mirrors.zju.edu.cn/"},
|
||||
{&Sustech, "https://mirrors.sustech.edu.cn/"}
|
||||
wr_homebrew_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/"},
|
||||
{&Zju, "https://mirrors.zju.edu.cn/"},
|
||||
{&Sustech, "https://mirrors.sustech.edu.cn/"}
|
||||
};
|
||||
def_sources_n(wr_homebrew);
|
||||
|
||||
|
||||
@@ -14,10 +14,10 @@
|
||||
* 2. 这些链接将会在setsrc函数中补充完整
|
||||
* }
|
||||
*/
|
||||
static Source_t
|
||||
wr_nix_sources[] = {
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/nix-channels/"}
|
||||
static Source_t wr_nix_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/nix-channels/"}
|
||||
};
|
||||
def_sources_n(wr_nix);
|
||||
|
||||
|
||||
@@ -10,15 +10,15 @@
|
||||
/**
|
||||
* @update 2023-09-10
|
||||
*/
|
||||
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"},
|
||||
{&Bfsu, "https://mirrors.bfsu.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"},
|
||||
{&Sustech, "https://mirrors.sustech.edu.cn/CTAN/systems/texlive/tlnet"}
|
||||
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"},
|
||||
{&Bfsu, "https://mirrors.bfsu.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"},
|
||||
{&Sustech, "https://mirrors.sustech.edu.cn/CTAN/systems/texlive/tlnet"}
|
||||
};
|
||||
def_sources_n(wr_tex);
|
||||
|
||||
|
||||
@@ -11,10 +11,10 @@
|
||||
* @update 2024-06-07
|
||||
* @note 目前仅有一个源
|
||||
*/
|
||||
static Source_t
|
||||
wr_winget_sources[] = {
|
||||
{&UpstreamProvider, "https://cdn.winget.microsoft.com/cache"},
|
||||
{&Ustc, "https://mirrors.ustc.edu.cn/winget-source"},
|
||||
static Source_t wr_winget_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, "https://cdn.winget.microsoft.com/cache"},
|
||||
{&Ustc, "https://mirrors.ustc.edu.cn/winget-source"},
|
||||
};
|
||||
def_sources_n(wr_winget);
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user