From 5fd8e86fb9f25ef595ad65b6ea5134bea535eff9 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Fri, 7 Jun 2024 21:02:38 +0800 Subject: [PATCH] Add `winget` sources [Gitee link #I9W0SE] --- include/source.h | 65 +++++++++++++++++++++++++++--------------------- 1 file changed, 37 insertions(+), 28 deletions(-) diff --git a/include/source.h b/include/source.h index bd661bf..5965436 100644 --- a/include/source.h +++ b/include/source.h @@ -721,41 +721,18 @@ os_ros_sources[] = { - - - /** - * 2023-09-10 更新 + * 2024-06-07 更新 * - * TODO: 1. 暂未添加商业公司源 + * @note: 目前仅有一个源 */ static SourceInfo -wr_tex_sources[] = { - {&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"} +wr_winget_sources[] = { + {&Upstream, "https://cdn.winget.microsoft.com/cache"}, + {&Ustc, "https://mirrors.ustc.edu.cn/winget-source"}, }, -/** - * 2023-09-10 更新 - * - * @note Emacs用户往往只需要一次性换源,只会极少次调用 chsrc,我们只给用户提供文档 - */ -wr_emacs_sources[] = { - {&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/"} -}, - - - /** * 2023-09-10 更新 * @@ -805,6 +782,21 @@ wr_guix_sources[] = { +/** + * 2023-09-10 更新 + * + * @note Emacs用户往往只需要一次性换源,只会极少次调用 chsrc,我们只给用户提供文档 + */ +wr_emacs_sources[] = { + {&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/"} +}, + + /** * 2023-09-10 更新 * @@ -815,6 +807,22 @@ wr_anaconda_sources[] = { {&Bfsu, "https://mirrors.bfsu.edu.cn/anaconda/"}, {&Zju, "https://mirrors.zju.edu.cn/anaconda/"}, {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/anaconda"} +}, + + + +/** + * 2023-09-10 更新 + * + * TODO: 1. 暂未添加商业公司源 + */ +wr_tex_sources[] = { + {&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"} }; @@ -842,6 +850,7 @@ def_sources_n(os_freebsd); def_sources_n(os_netbsd); def_sources_n(os_openbs def_sources_n(os_deepin); def_sources_n(os_openeuler); def_sources_n(os_openkylin); def_sources_n(os_ros); +def_sources_n(wr_winget); def_sources_n(wr_brew); def_sources_n(wr_flathub); def_sources_n(wr_nix); def_sources_n(wr_guix); def_sources_n(wr_tex); def_sources_n(wr_emacs);