From 743380290e7f6535767639a2e9b80b8e6e57147a Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Fri, 22 Nov 2024 07:02:21 +0800 Subject: [PATCH] Rename struct --- src/chsrc-main.c | 8 ++++---- src/framework/core.c | 30 ++++++++++++++--------------- src/framework/mirror.c | 6 +++--- src/framework/struct.h | 26 ++++++++++++------------- src/recipe/lang/Clojure.c | 2 +- src/recipe/lang/Dart/Flutter.c | 2 +- src/recipe/lang/Dart/Pub.c | 2 +- src/recipe/lang/Go.c | 4 ++-- src/recipe/lang/Haskell.c | 2 +- src/recipe/lang/Java.c | 2 +- src/recipe/lang/Julia.c | 2 +- src/recipe/lang/Lua.c | 4 ++-- src/recipe/lang/Node.js/Yarn.c | 2 +- src/recipe/lang/Node.js/common.h | 6 +++--- src/recipe/lang/Node.js/npm.c | 2 +- src/recipe/lang/Node.js/pnpm.c | 2 +- src/recipe/lang/NuGet.c | 4 ++-- src/recipe/lang/OCaml.c | 2 +- src/recipe/lang/PHP.c | 2 +- src/recipe/lang/Perl.c | 2 +- src/recipe/lang/Python/PDM.c | 2 +- src/recipe/lang/Python/Poetry.c | 2 +- src/recipe/lang/Python/common.h | 2 +- src/recipe/lang/Python/pip.c | 2 +- src/recipe/lang/R.c | 2 +- src/recipe/lang/Ruby.c | 4 ++-- src/recipe/lang/Rust/Cargo.c | 2 +- src/recipe/lang/Rust/common.h | 2 +- src/recipe/lang/Rust/rustup.c | 2 +- src/recipe/menu.c | 2 +- src/recipe/os/APT/Armbian.c | 2 +- src/recipe/os/APT/Debian.c | 2 +- src/recipe/os/APT/Kali-Linux.c | 2 +- src/recipe/os/APT/Linux-Lite.c | 2 +- src/recipe/os/APT/Linux-Mint.c | 2 +- src/recipe/os/APT/ROS.c | 2 +- src/recipe/os/APT/Raspberry-Pi-OS.c | 2 +- src/recipe/os/APT/Trisquel.c | 2 +- src/recipe/os/APT/Ubuntu.c | 2 +- src/recipe/os/APT/deepin.c | 2 +- src/recipe/os/APT/openKylin.c | 2 +- src/recipe/os/Alpine-Linux.c | 2 +- src/recipe/os/BSD/FreeBSD.c | 4 ++-- src/recipe/os/BSD/NetBSD.c | 2 +- src/recipe/os/BSD/OpenBSD.c | 2 +- src/recipe/os/Gentoo-Linux.c | 2 +- src/recipe/os/OpenWrt.c | 2 +- src/recipe/os/Solus.c | 2 +- src/recipe/os/Void-Linux.c | 2 +- src/recipe/os/YUM/AlmaLinux.c | 2 +- src/recipe/os/YUM/Anolis-OS.c | 2 +- src/recipe/os/YUM/Fedora-Linux.c | 2 +- src/recipe/os/YUM/Rocky-Linux.c | 2 +- src/recipe/os/YUM/openEuler.c | 2 +- src/recipe/os/openSUSE.c | 2 +- src/recipe/os/pacman/Arch-Linux.c | 2 +- src/recipe/os/pacman/MSYS2.c | 2 +- src/recipe/recipe-template.c | 4 ++-- src/recipe/ware/Anaconda.c | 2 +- src/recipe/ware/CocoaPods.c | 2 +- src/recipe/ware/Docker-Hub.c | 4 ++-- src/recipe/ware/Emacs.c | 4 ++-- src/recipe/ware/Flathub.c | 2 +- src/recipe/ware/Guix.c | 2 +- src/recipe/ware/Homebrew.c | 2 +- src/recipe/ware/Nix.c | 2 +- src/recipe/ware/TeX-Live.c | 2 +- src/recipe/ware/WinGet.c | 2 +- 68 files changed, 109 insertions(+), 109 deletions(-) diff --git a/src/chsrc-main.c b/src/chsrc-main.c index e4487d1..3ec83ac 100644 --- a/src/chsrc-main.c +++ b/src/chsrc-main.c @@ -217,7 +217,7 @@ cli_print_available_mirrors () for (int i = 0; i < xy_arylen (available_mirrors); i++) { - MirrorSite* mir = available_mirrors[i]; + MirrorSite_t *mir = available_mirrors[i]; printf ("%-14s%-18s%-41s ", mir->code, mir->abbr, mir->site); say (mir->name); } } @@ -305,12 +305,12 @@ cli_print_supported_wr () * 用于 chsrc list */ void -cli_print_target_available_sources (SourceInfo sources[], size_t size) +cli_print_target_available_sources (Source_t sources[], size_t size) { for (int i=0;i * | Heng Guo <2085471348@qq.com> * Contributors : Peng Gao @@ -330,7 +330,7 @@ chsrc_check_file (char *path) */ #define find_mirror(s, input) query_mirror_exist(s##_sources, s##_sources_n, (char*)#s+3, input) int -query_mirror_exist (SourceInfo *sources, size_t size, char *target, char *input) +query_mirror_exist (Source_t *sources, size_t size, char *target, char *input) { if (is_url (input)) { @@ -372,7 +372,7 @@ query_mirror_exist (SourceInfo *sources, size_t size, char *target, char *input) } int idx = 0; - SourceInfo source = sources[0]; + Source_t source = sources[0]; bool exist = false; for (int i=0; ismi; + const SpeedMeasureInfo_t smi = src.mirror->smi; bool skip = smi.skip; @@ -647,7 +647,7 @@ measure_speed_for_every_source (SourceInfo sources[], int size, double speed_rec */ #define auto_select_mirror(s) select_mirror_autoly(s##_sources, s##_sources_n, (char*)#s+3) int -select_mirror_autoly (SourceInfo *sources, size_t size, const char *target_name) +select_mirror_autoly (Source_t *sources, size_t size, const char *target_name) { { char *msg = CliOpt_InEnglish ? "Measuring speed in sequence" : "测速中"; @@ -732,19 +732,19 @@ select_mirror_autoly (SourceInfo *sources, size_t size, const char *target_name) bool -source_is_upstream (SourceInfo *source) +source_is_upstream (Source_t *source) { return xy_streql (source->mirror->code, "upstream"); } bool -source_is_userdefine (SourceInfo *source) +source_is_userdefine (Source_t *source) { return xy_streql (source->mirror->code, "user"); } bool -source_has_empty_url (SourceInfo *source) +source_has_empty_url (Source_t *source) { return source->url == NULL; } @@ -752,7 +752,7 @@ source_has_empty_url (SourceInfo *source) /** - * 用户*只可能*通过下面5种方式来换源,无论哪一种都会返回一个 SourceInfo 出来 + * 用户*只可能*通过下面5种方式来换源,无论哪一种都会返回一个 Source_t 出来 * option: * 1. 用户指定某个 MirrorCode * 2. NULL: 用户什么都没指定 (将测速选择最快镜像) @@ -775,7 +775,7 @@ source_has_empty_url (SourceInfo *source) } \ else if (is_url (option)) \ { \ - SourceInfo __tmp = { &UserDefinedProvider, option }; \ + Source_t __tmp = { &UserDefinedProvider, option }; \ source = __tmp; \ } \ else \ @@ -785,7 +785,7 @@ source_has_empty_url (SourceInfo *source) } #define chsrc_yield_source(for_what) \ - SourceInfo source; \ + Source_t source; \ chsrc_yield_for_the_source(for_what) @@ -803,7 +803,7 @@ source_has_empty_url (SourceInfo *source) */ #define chsrc_confirm_source confirm_source(&source) void -confirm_source (SourceInfo *source) +confirm_source (Source_t *source) { // 由于实现问题,我们把本应该独立出去的默认上游源,也放在了可以换源的数组中,而且放在第一个 // chsrc 已经规避用户使用未实现的 `chsrc reset` @@ -869,7 +869,7 @@ confirm_source (SourceInfo *source) * @translation Done */ void -chsrc_conclude (SourceInfo *source, const char *last_word) +chsrc_conclude (Source_t *source, const char *last_word) { split_between_source_changing_process; diff --git a/src/framework/mirror.c b/src/framework/mirror.c index 05faf65..dc977f5 100644 --- a/src/framework/mirror.c +++ b/src/framework/mirror.c @@ -1,7 +1,7 @@ /** ------------------------------------------------------------ * SPDX-License-Identifier: GPL-3.0-or-later * ------------------------------------------------------------- - * File Name : mirror.c + * File Name : mirror.c * File Authors : Aoran Zeng * | Heng Guo <2085471348@qq.com> * Contributors : Shengwei Chen <414685209@qq.com> @@ -24,7 +24,7 @@ * * Wiki中的排序是根据 https://github.com/mirrorz-org/oh-my-mirrorz 挑选速度前10位 */ -MirrorSite +MirrorSite_t MirrorZ = { "mirrorz", "MirrorZ", "MirrorZ 校园网镜像站", "https://mirrors.cernet.edu.cn/", {SKIP, "功能特殊无法测速,跳过", "SKIP because of its special function"} @@ -116,7 +116,7 @@ Nju = { /** * 商业公司提供的源 */ -MirrorSite +MirrorSite_t Ali = { "ali", "Ali OPSX Public", "阿里巴巴开源镜像站(公网)", "https://developer.aliyun.com/mirror/", {NotSkip, NA, NA, "https://mirrors.aliyun.com/deepin-cd" Big_File_deepin} diff --git a/src/framework/struct.h b/src/framework/struct.h index f625800..7c95edb 100644 --- a/src/framework/struct.h +++ b/src/framework/struct.h @@ -1,7 +1,7 @@ /** ------------------------------------------------------------ * SPDX-License-Identifier: GPL-3.0-or-later * ------------------------------------------------------------- - * File Name : struct.h + * File Name : struct.h * File Authors : Aoran Zeng * | Heng Guo <2085471348@qq.com> * Contributors : Shengwei Chen <414685209@qq.com> @@ -19,7 +19,7 @@ typedef struct SpeedMeasureInfo_t const char *skip_reason_EN; /* 跳过的原因(英文)*/ const char *url; /* 测速链接 */ } -SpeedMeasureInfo; +SpeedMeasureInfo_t; #define SKIP true #define NotSkip false @@ -32,35 +32,35 @@ typedef struct SourceProvider_t const char *abbr; /* 需要使用 Provider 的英文名时,用这个代替,因为大部分 Provider 没有提供正式的英文名 */ const char *name; /* Provider 中文名 */ const char *site; /* Provider 首页 */ - SpeedMeasureInfo smi; + SpeedMeasureInfo_t smi; } -SourceProvider; +SourceProvider_t; -typedef SourceProvider MirrorSite; +typedef SourceProvider_t MirrorSite_t; -SourceProvider +SourceProvider_t UpstreamProvider = { "upstream", "Upstream", "上游默认源", NULL, {SKIP, "上游默认源不测速", "SKIP for upstream source", NULL} }; -SourceProvider +SourceProvider_t UserDefinedProvider = { "user", "用户自定义", "用户自定义", NULL, {SKIP, "用户自定义源不测速", "SKIP for user-defined source", NULL} }; -typedef struct SourceInfo_t +typedef struct Source_t { - const MirrorSite *mirror; + const MirrorSite_t *mirror; const char *url; } -SourceInfo; +Source_t; #define def_sources_n(t) const size_t t##_sources_n = xy_arylen(t##_sources) -enum Capability +enum Capability_t { CanNot, FullyCan, @@ -78,7 +78,7 @@ typedef struct FeatInfo_t bool can_user_define; /* 用户自定义换源URL */ - enum Capability cap_locally; + enum Capability_t cap_locally; char *cap_locally_explain; char *note; @@ -95,7 +95,7 @@ typedef struct TargetInfo_t FeatInfo (*featfn) (char *option); - SourceInfo *sources; + Source_t *sources; size_t sources_n; } TargetInfo; diff --git a/src/recipe/lang/Clojure.c b/src/recipe/lang/Clojure.c index 5f745c9..091b7f2 100644 --- a/src/recipe/lang/Clojure.c +++ b/src/recipe/lang/Clojure.c @@ -11,7 +11,7 @@ * @time 2023-09-10 更新 * @note 不太好换,且用户可能不多,我们暂时只给用户提供文档 */ -static SourceInfo +static Source_t pl_clojure_sources[] = { {&UpstreamProvider, NULL}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/help/clojars/"}, diff --git a/src/recipe/lang/Dart/Flutter.c b/src/recipe/lang/Dart/Flutter.c index f4e39f3..e52e54c 100644 --- a/src/recipe/lang/Dart/Flutter.c +++ b/src/recipe/lang/Dart/Flutter.c @@ -15,7 +15,7 @@ /** * @update 2024-10-31 */ -static SourceInfo +static Source_t pl_dart_flutter_sources[] = { {&UpstreamProvider, "https://storage.googleapis.com"}, {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn"}, // 没有后缀,怀疑是否存在问题 diff --git a/src/recipe/lang/Dart/Pub.c b/src/recipe/lang/Dart/Pub.c index 7cabfca..0ab4100 100644 --- a/src/recipe/lang/Dart/Pub.c +++ b/src/recipe/lang/Dart/Pub.c @@ -14,7 +14,7 @@ /** * @update 2024-10-31 */ -static SourceInfo +static Source_t pl_dart_sources[] = { {&UpstreamProvider, "https://pub.dev"}, {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/dart-pub"}, diff --git a/src/recipe/lang/Go.c b/src/recipe/lang/Go.c index f862958..1541580 100644 --- a/src/recipe/lang/Go.c +++ b/src/recipe/lang/Go.c @@ -9,7 +9,7 @@ * Last Modified : <2024-10-31> * ------------------------------------------------------------*/ -static MirrorSite +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 @@ -25,7 +25,7 @@ GoProxyIO = { * @update 2024-10-31 * @note 缺少教育网软件源 */ -static SourceInfo +static Source_t pl_go_sources[] = { {&UpstreamProvider, "https://proxy.golang.org"}, {&GoProxyCN, "https://goproxy.cn"}, diff --git a/src/recipe/lang/Haskell.c b/src/recipe/lang/Haskell.c index a467a57..5f658a3 100644 --- a/src/recipe/lang/Haskell.c +++ b/src/recipe/lang/Haskell.c @@ -10,7 +10,7 @@ /** * @time 2023-09-10 更新 */ -static SourceInfo +static Source_t pl_haskell_sources[] = { {&UpstreamProvider, NULL}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/hackage"}, diff --git a/src/recipe/lang/Java.c b/src/recipe/lang/Java.c index 12b5f49..128b046 100644 --- a/src/recipe/lang/Java.c +++ b/src/recipe/lang/Java.c @@ -11,7 +11,7 @@ * @time 2024-04-18 更新 * @note 缺少教育网或开源社区软件源 */ -static SourceInfo +static Source_t pl_java_sources[] = { {&UpstreamProvider, NULL}, {&Ali, "https://maven.aliyun.com/repository/public/"}, diff --git a/src/recipe/lang/Julia.c b/src/recipe/lang/Julia.c index db5a35c..07fa84d 100644 --- a/src/recipe/lang/Julia.c +++ b/src/recipe/lang/Julia.c @@ -11,7 +11,7 @@ * @time 2023-09-05 更新 * @note 缺少商业公司或开源社区软件源 */ -static SourceInfo +static Source_t pl_julia_sources[] = { {&UpstreamProvider, NULL}, {&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/julia"}, diff --git a/src/recipe/lang/Lua.c b/src/recipe/lang/Lua.c index d269ba5..c9225d2 100644 --- a/src/recipe/lang/Lua.c +++ b/src/recipe/lang/Lua.c @@ -7,7 +7,7 @@ * Last Modified : <2024-08-09> * ------------------------------------------------------------*/ -static MirrorSite +static MirrorSite_t Api7 = { "api7", "api7.ai", "深圳支流科技有限公司", "https://www.apiseven.com/", {SKIP, ToFill, ToFill, NULL} @@ -18,7 +18,7 @@ Api7 = { * @time 2023-09-27 更新 * @note 目前只有一个源 */ -static SourceInfo +static Source_t pl_lua_sources[] = { {&UpstreamProvider, NULL}, {&Api7, "https://luarocks.cn"}, diff --git a/src/recipe/lang/Node.js/Yarn.c b/src/recipe/lang/Node.js/Yarn.c index d49ee45..947ae0e 100644 --- a/src/recipe/lang/Node.js/Yarn.c +++ b/src/recipe/lang/Node.js/Yarn.c @@ -40,7 +40,7 @@ pl_nodejs_yarn_getsrc (char *option) void pl_nodejs_yarn_setsrc (char *option) { - SourceInfo source; + Source_t source; chsrc_yield_for_the_source (pl_nodejs); if (ProgMode_Target_Group!=true) chsrc_confirm_source; diff --git a/src/recipe/lang/Node.js/common.h b/src/recipe/lang/Node.js/common.h index dc49996..799d397 100644 --- a/src/recipe/lang/Node.js/common.h +++ b/src/recipe/lang/Node.js/common.h @@ -8,7 +8,7 @@ * Last Modified : <2024-09-23> * ------------------------------------------------------------*/ -static MirrorSite +static MirrorSite_t NpmMirror = { "npmmirror", "npmmirror", "npmmirror (阿里云赞助)", "https://npmmirror.com/", // 注意,下面这个是跳转后的地址,不确定未来会不会改变 @@ -26,7 +26,7 @@ NpmMirror = { * } * */ -static SourceInfo +static Source_t pl_nodejs_sources[] = { {&UpstreamProvider, "https://registry.npmjs.org/"}, // @note 根据 pnpm 官网,有最后的斜线 {&NpmMirror, "https://registry.npmmirror.com"}, @@ -43,7 +43,7 @@ def_sources_n(pl_nodejs); * @sync https://github.com/RubyMetric/chsrc/discussions/85 * */ -static SourceInfo +static Source_t pl_nodejs_binary_release_sources[] = { {&UpstreamProvider, "https://nodejs.org/dist/"}, {&NpmMirror, "https://npmmirror.com/mirrors"}, diff --git a/src/recipe/lang/Node.js/npm.c b/src/recipe/lang/Node.js/npm.c index f287dca..7bba534 100644 --- a/src/recipe/lang/Node.js/npm.c +++ b/src/recipe/lang/Node.js/npm.c @@ -26,7 +26,7 @@ pl_nodejs_npm_getsrc (char *option) void pl_nodejs_npm_setsrc (char *option) { - SourceInfo source; + Source_t source; chsrc_yield_for_the_source (pl_nodejs); if (ProgMode_Target_Group!=true) chsrc_confirm_source; diff --git a/src/recipe/lang/Node.js/pnpm.c b/src/recipe/lang/Node.js/pnpm.c index d077c0e..50141b5 100644 --- a/src/recipe/lang/Node.js/pnpm.c +++ b/src/recipe/lang/Node.js/pnpm.c @@ -27,7 +27,7 @@ pl_nodejs_pnpm_getsrc (char *option) void pl_nodejs_pnpm_setsrc (char *option) { - SourceInfo source; + Source_t source; chsrc_yield_for_the_source (pl_nodejs); if (ProgMode_Target_Group!=true) chsrc_confirm_source; diff --git a/src/recipe/lang/NuGet.c b/src/recipe/lang/NuGet.c index 7f8475d..fe6a617 100644 --- a/src/recipe/lang/NuGet.c +++ b/src/recipe/lang/NuGet.c @@ -7,7 +7,7 @@ * Last Modified : <2024-08-09> * ------------------------------------------------------------*/ -static MirrorSite +static MirrorSite_t NugetOrg = {"nuget.org", "NuGet Org", "Nuget Organization", "https://www.nuget.org/", {SKIP, ToFill, ToFill, NULL} }; @@ -19,7 +19,7 @@ NugetOrg = {"nuget.org", "NuGet Org", "Nuget Organization", "https://www.nuget.o * https://mirrors.huaweicloud.com/mirrorDetail/5ebf85de07b41baf6d0882ab?mirrorName=nuget&catalog=language * } */ -static SourceInfo +static Source_t pl_nuget_sources[] = { {&UpstreamProvider, NULL}, {&NugetOrg, "https://www.nuget.org/api/v2/"}, diff --git a/src/recipe/lang/OCaml.c b/src/recipe/lang/OCaml.c index 4651ab7..2e20455 100644 --- a/src/recipe/lang/OCaml.c +++ b/src/recipe/lang/OCaml.c @@ -10,7 +10,7 @@ /** * @update 2023-09-15 */ -static SourceInfo +static Source_t pl_ocaml_sources[] = { {&UpstreamProvider, NULL}, {&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/git/opam-repository.git"} diff --git a/src/recipe/lang/PHP.c b/src/recipe/lang/PHP.c index bc87ce1..17307da 100644 --- a/src/recipe/lang/PHP.c +++ b/src/recipe/lang/PHP.c @@ -11,7 +11,7 @@ * @update 2024-09-14 * @note 缺少教育网或开源社区软件源 */ -static SourceInfo +static Source_t pl_php_sources[] = { {&UpstreamProvider, NULL}, {&Ali, "https://mirrors.aliyun.com/composer/"}, diff --git a/src/recipe/lang/Perl.c b/src/recipe/lang/Perl.c index aa03ce3..2a71b72 100644 --- a/src/recipe/lang/Perl.c +++ b/src/recipe/lang/Perl.c @@ -10,7 +10,7 @@ /** * @update 2024-05-24 */ -static SourceInfo +static Source_t pl_perl_sources[] = { {&UpstreamProvider, NULL}, {&Bfsu, "https://mirrors.bfsu.edu.cn/CPAN/"}, diff --git a/src/recipe/lang/Python/PDM.c b/src/recipe/lang/Python/PDM.c index f13cad7..97e1f8c 100644 --- a/src/recipe/lang/Python/PDM.c +++ b/src/recipe/lang/Python/PDM.c @@ -28,7 +28,7 @@ pl_python_pdm_getsrc (char *option) void pl_python_pdm_setsrc (char *option) { - SourceInfo source; + Source_t source; chsrc_yield_for_the_source (pl_python); if (ProgMode_Target_Group!=true) chsrc_confirm_source; diff --git a/src/recipe/lang/Python/Poetry.c b/src/recipe/lang/Python/Poetry.c index 7dcca7f..fc23751 100644 --- a/src/recipe/lang/Python/Poetry.c +++ b/src/recipe/lang/Python/Poetry.c @@ -27,7 +27,7 @@ pl_python_poetry_getsrc (char *option) void pl_python_poetry_setsrc (char *option) { - SourceInfo source; + Source_t source; chsrc_yield_for_the_source (pl_python); if (ProgMode_Target_Group!=true) chsrc_confirm_source; diff --git a/src/recipe/lang/Python/common.h b/src/recipe/lang/Python/common.h index 6f00940..056d3ec 100644 --- a/src/recipe/lang/Python/common.h +++ b/src/recipe/lang/Python/common.h @@ -12,7 +12,7 @@ * @update 2024-09-14 * @note 不要添加Zju,浙大的pypi在校外访问会自动转向Tuna */ -static SourceInfo +static Source_t pl_python_sources[] = { {&UpstreamProvider, "https://pypi.org/simple"}, {&Bfsu, "https://mirrors.bfsu.edu.cn/pypi/web/simple"}, diff --git a/src/recipe/lang/Python/pip.c b/src/recipe/lang/Python/pip.c index 86f287e..b0f06fb 100644 --- a/src/recipe/lang/Python/pip.c +++ b/src/recipe/lang/Python/pip.c @@ -38,7 +38,7 @@ pl_python_pip_setsrc (char *option) return; } - SourceInfo source; + Source_t source; chsrc_yield_for_the_source (pl_python); if (ProgMode_Target_Group!=true) chsrc_confirm_source; diff --git a/src/recipe/lang/R.c b/src/recipe/lang/R.c index 9f515c1..3c96b12 100644 --- a/src/recipe/lang/R.c +++ b/src/recipe/lang/R.c @@ -14,7 +14,7 @@ * 我们在换cran的同时,也直接帮助用户换bioconductor * } */ -static SourceInfo +static Source_t pl_r_sources[] = { {&UpstreamProvider, NULL}, {&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/cran/"}, diff --git a/src/recipe/lang/Ruby.c b/src/recipe/lang/Ruby.c index 7ea4fe3..33d59e1 100644 --- a/src/recipe/lang/Ruby.c +++ b/src/recipe/lang/Ruby.c @@ -7,7 +7,7 @@ * Last Modified : <2024-11-21> * ------------------------------------------------------------*/ -static MirrorSite +static MirrorSite_t RubyChina = { "rubychina", "RubyChina", "Ruby China 社区", "https://gems.ruby-china.com/", {NotSkip, NA, NA, "https://gems.ruby-china.com/rubygems/gems/nokogiri-1.15.0-java.gem"} // 9.9 MB @@ -20,7 +20,7 @@ RubyChina = { * * @note 曾经的问题 https://ruby-china.org/topics/43331 */ -static SourceInfo +static Source_t pl_ruby_sources[] = { {&UpstreamProvider, "https://rubygems.org"}, {&RubyChina, "https://gems.ruby-china.com/"}, diff --git a/src/recipe/lang/Rust/Cargo.c b/src/recipe/lang/Rust/Cargo.c index 1bf91ff..60d3fc4 100644 --- a/src/recipe/lang/Rust/Cargo.c +++ b/src/recipe/lang/Rust/Cargo.c @@ -12,7 +12,7 @@ * @note 以下都支持稀疏索引,我们换源时都将默认添加 `sparse+` * @note 链接末尾的 `/` 不能缺少 */ -static SourceInfo +static Source_t pl_rust_cargo_sources[] = { {&UpstreamProvider, "https://index.crates.io/"}, // @help 是这个吗? {&MirrorZ, "https://mirrors.cernet.edu.cn/crates.io-index/"}, diff --git a/src/recipe/lang/Rust/common.h b/src/recipe/lang/Rust/common.h index 0bf6636..ead5c42 100644 --- a/src/recipe/lang/Rust/common.h +++ b/src/recipe/lang/Rust/common.h @@ -7,7 +7,7 @@ * Last Modified : <2024-11-21> * ------------------------------------------------------------*/ -static MirrorSite +static MirrorSite_t RsProxyCN = { "rsproxycn", "RsProxy.cn", "字节跳动基础架构Dev Infra", "https://rsproxy.cn/", {SKIP, ToFill, ToFill, NULL} diff --git a/src/recipe/lang/Rust/rustup.c b/src/recipe/lang/Rust/rustup.c index 37543eb..87a3c73 100644 --- a/src/recipe/lang/Rust/rustup.c +++ b/src/recipe/lang/Rust/rustup.c @@ -11,7 +11,7 @@ /** * @update 2024-10-02 */ -static SourceInfo +static Source_t pl_rust_rustup_sources[] = { {&UpstreamProvider, "https://static.rust-lang.org"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/rustup"}, diff --git a/src/recipe/menu.c b/src/recipe/menu.c index e815376..a6afc79 100644 --- a/src/recipe/menu.c +++ b/src/recipe/menu.c @@ -138,7 +138,7 @@ static const char /** * @sync https://github.com/RubyMetric/chsrc/wiki */ -static MirrorSite* +static MirrorSite_t* available_mirrors[] = { /* 教育网 */ diff --git a/src/recipe/os/APT/Armbian.c b/src/recipe/os/APT/Armbian.c index 1998863..3a1e681 100644 --- a/src/recipe/os/APT/Armbian.c +++ b/src/recipe/os/APT/Armbian.c @@ -12,7 +12,7 @@ /** * @update 2024-11-21 */ -static SourceInfo +static Source_t os_armbian_sources[] = { {&UpstreamProvider, "http://apt.armbian.com"}, {&MirrorZ, "https://mirrors.cernet.edu.cn/armbian"}, diff --git a/src/recipe/os/APT/Debian.c b/src/recipe/os/APT/Debian.c index df61072..f16ebc1 100644 --- a/src/recipe/os/APT/Debian.c +++ b/src/recipe/os/APT/Debian.c @@ -12,7 +12,7 @@ /** * @update 2024-11-21 */ -static SourceInfo +static Source_t os_debian_sources[] = { {&UpstreamProvider, "http://deb.debian.org/debian"}, {&MirrorZ, "https://mirrors.cernet.edu.cn/debian/"}, diff --git a/src/recipe/os/APT/Kali-Linux.c b/src/recipe/os/APT/Kali-Linux.c index 110c613..cd36f77 100644 --- a/src/recipe/os/APT/Kali-Linux.c +++ b/src/recipe/os/APT/Kali-Linux.c @@ -12,7 +12,7 @@ /** * @update 2024-11-21 */ -static SourceInfo +static Source_t os_kali_sources[] = { {&UpstreamProvider, "http://http.kali.org/kali"}, {&MirrorZ, "https://mirrors.cernet.edu.cn/kali"}, diff --git a/src/recipe/os/APT/Linux-Lite.c b/src/recipe/os/APT/Linux-Lite.c index a6571a7..e16ff0e 100644 --- a/src/recipe/os/APT/Linux-Lite.c +++ b/src/recipe/os/APT/Linux-Lite.c @@ -11,7 +11,7 @@ /** * @update 2024-11-21 */ -static SourceInfo +static Source_t os_linuxlite_sources[] = { {&UpstreamProvider, "http://repo.linuxliteos.com/linuxlite/"}, {&MirrorZ, "https://mirrors.cernet.edu.cn/linuxliteos/"}, diff --git a/src/recipe/os/APT/Linux-Mint.c b/src/recipe/os/APT/Linux-Mint.c index c3a8c7f..0cbb10b 100644 --- a/src/recipe/os/APT/Linux-Mint.c +++ b/src/recipe/os/APT/Linux-Mint.c @@ -11,7 +11,7 @@ * @update 2024-11-21 更新 * @note 实际上镜像站里的内容和Ubuntu的不太一样 */ -static SourceInfo +static Source_t os_linuxmint_sources[] = { {&UpstreamProvider, NULL}, {&MirrorZ, "https://mirrors.cernet.edu.cn/linuxmint/"}, diff --git a/src/recipe/os/APT/ROS.c b/src/recipe/os/APT/ROS.c index 2faaf42..fb19a64 100644 --- a/src/recipe/os/APT/ROS.c +++ b/src/recipe/os/APT/ROS.c @@ -10,7 +10,7 @@ /** * @update 2024-04-18 */ -static SourceInfo +static Source_t os_ros_sources[] = { {&UpstreamProvider, NULL}, {&Ali, "https://mirrors.aliyun.com"}, diff --git a/src/recipe/os/APT/Raspberry-Pi-OS.c b/src/recipe/os/APT/Raspberry-Pi-OS.c index 8798be4..5058bc6 100644 --- a/src/recipe/os/APT/Raspberry-Pi-OS.c +++ b/src/recipe/os/APT/Raspberry-Pi-OS.c @@ -12,7 +12,7 @@ /** * @time 2023-09-29 更新 */ -static SourceInfo +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/"}, diff --git a/src/recipe/os/APT/Trisquel.c b/src/recipe/os/APT/Trisquel.c index 44b55ec..890baf9 100644 --- a/src/recipe/os/APT/Trisquel.c +++ b/src/recipe/os/APT/Trisquel.c @@ -12,7 +12,7 @@ /** * @time 2024-11-21 更新 */ -static SourceInfo +static Source_t os_trisquel_sources[] = { {&UpstreamProvider, NULL}, {&MirrorZ, "https://mirrors.cernet.edu.cn/trisquel/"}, diff --git a/src/recipe/os/APT/Ubuntu.c b/src/recipe/os/APT/Ubuntu.c index 8b446a9..27ed6f5 100644 --- a/src/recipe/os/APT/Ubuntu.c +++ b/src/recipe/os/APT/Ubuntu.c @@ -12,7 +12,7 @@ /** * @update 2024-11-21 */ -static SourceInfo +static Source_t os_ubuntu_sources[] = { {&UpstreamProvider, "http://archive.ubuntu.com/ubuntu/"}, //不支持https {&MirrorZ, "https://mirrors.cernet.edu.cn/ubuntu/"}, diff --git a/src/recipe/os/APT/deepin.c b/src/recipe/os/APT/deepin.c index 347afcd..f1565c9 100644 --- a/src/recipe/os/APT/deepin.c +++ b/src/recipe/os/APT/deepin.c @@ -12,7 +12,7 @@ /** * @update 2024-09-14 */ -static SourceInfo +static Source_t os_deepin_sources[] = { {&UpstreamProvider, "https://community-packages.deepin.com/deepin"}, {&Ali, "https://mirrors.aliyun.com/deepin"}, diff --git a/src/recipe/os/APT/openKylin.c b/src/recipe/os/APT/openKylin.c index 53215aa..ddb8349 100644 --- a/src/recipe/os/APT/openKylin.c +++ b/src/recipe/os/APT/openKylin.c @@ -13,7 +13,7 @@ /** * @time 2023-09-29 更新 */ -static SourceInfo +static Source_t os_openkylin_sources[] = { {&UpstreamProvider, "https://archive.openkylin.top/openkylin/"}, {&Ali, "https://mirrors.aliyun.com/openkylin/"}, diff --git a/src/recipe/os/Alpine-Linux.c b/src/recipe/os/Alpine-Linux.c index 6892fc3..59ac23f 100644 --- a/src/recipe/os/Alpine-Linux.c +++ b/src/recipe/os/Alpine-Linux.c @@ -10,7 +10,7 @@ /** * @update 2024-09-14 */ -static SourceInfo +static Source_t os_alpine_sources[] = { {&UpstreamProvider, "http://dl-cdn.alpinelinux.org/alpine"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/alpine"}, diff --git a/src/recipe/os/BSD/FreeBSD.c b/src/recipe/os/BSD/FreeBSD.c index 60ba349..7d8421b 100644 --- a/src/recipe/os/BSD/FreeBSD.c +++ b/src/recipe/os/BSD/FreeBSD.c @@ -16,7 +16,7 @@ * [2023-09-27] 请务必保持Nju前面有至少一个镜像,原因请查看 freebsd 的换源函数 * } */ -static SourceInfo +static Source_t os_freebsd_sources[] = { {&UpstreamProvider, NULL}, {&Ustc, "mirrors.ustc.edu.cn"}, @@ -41,7 +41,7 @@ os_freebsd_setsrc (char *option) int index = use_specific_mirror_or_auto_select (option, os_freebsd); - SourceInfo source = os_freebsd_sources[index]; + Source_t source = os_freebsd_sources[index]; chsrc_confirm_source; chsrc_log2 ("1. 添加 freebsd-pkg 源 (二进制安装包)"); diff --git a/src/recipe/os/BSD/NetBSD.c b/src/recipe/os/BSD/NetBSD.c index c4b932b..f4e28b3 100644 --- a/src/recipe/os/BSD/NetBSD.c +++ b/src/recipe/os/BSD/NetBSD.c @@ -11,7 +11,7 @@ /** * @update 2024-09-14 */ -static SourceInfo +static Source_t os_netbsd_sources[] = { {&UpstreamProvider, NULL}, {&Ali, "https://mirrors.aliyun.com/pkgsrc/packages/NetBSD/"}, diff --git a/src/recipe/os/BSD/OpenBSD.c b/src/recipe/os/BSD/OpenBSD.c index 511d1d1..612c2aa 100644 --- a/src/recipe/os/BSD/OpenBSD.c +++ b/src/recipe/os/BSD/OpenBSD.c @@ -11,7 +11,7 @@ /** * @update 2024-09-14 */ -static SourceInfo +static Source_t os_openbsd_sources[] = { {&UpstreamProvider, NULL}, {&Ali, "https://mirrors.aliyun.com/OpenBSD/"}, diff --git a/src/recipe/os/Gentoo-Linux.c b/src/recipe/os/Gentoo-Linux.c index fd7529e..2667685 100644 --- a/src/recipe/os/Gentoo-Linux.c +++ b/src/recipe/os/Gentoo-Linux.c @@ -10,7 +10,7 @@ /** * @update 2024-09-14 */ -static SourceInfo +static Source_t os_gentoo_sources[] = { {&UpstreamProvider, NULL}, {&Ali, "mirrors.aliyun.com"}, diff --git a/src/recipe/os/OpenWrt.c b/src/recipe/os/OpenWrt.c index 5cef5e1..06ca4fe 100644 --- a/src/recipe/os/OpenWrt.c +++ b/src/recipe/os/OpenWrt.c @@ -10,7 +10,7 @@ /** * @update 2024-08-08 */ -static SourceInfo +static Source_t os_openwrt_sources[] = { {&UpstreamProvider, "http://downloads.openwrt.org"}, {&MirrorZ, "https://mirrors.cernet.edu.cn/openwrt"}, diff --git a/src/recipe/os/Solus.c b/src/recipe/os/Solus.c index c84b393..20bd8e7 100644 --- a/src/recipe/os/Solus.c +++ b/src/recipe/os/Solus.c @@ -10,7 +10,7 @@ /** * @time 2023-09-29 更新 */ -static SourceInfo +static Source_t os_solus_sources[] = { {&UpstreamProvider, NULL}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/solus/packages/shannon/eopkg-index.xml.xz"}, diff --git a/src/recipe/os/Void-Linux.c b/src/recipe/os/Void-Linux.c index 581a627..749fdc6 100644 --- a/src/recipe/os/Void-Linux.c +++ b/src/recipe/os/Void-Linux.c @@ -10,7 +10,7 @@ /** * @time 2023-09-24 更新 */ -static SourceInfo +static Source_t os_void_sources[] = { {&UpstreamProvider, "https://repo-default.voidlinux.org"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/voidlinux"}, diff --git a/src/recipe/os/YUM/AlmaLinux.c b/src/recipe/os/YUM/AlmaLinux.c index 296adff..31cc6cc 100644 --- a/src/recipe/os/YUM/AlmaLinux.c +++ b/src/recipe/os/YUM/AlmaLinux.c @@ -10,7 +10,7 @@ /** * @time 2024-06-12 更新 */ -static SourceInfo +static Source_t os_almalinux_sources[] = { {&UpstreamProvider, "http://repo.almalinux.org/almalinux"}, {&Ali, "https://mirrors.aliyun.com/almalinux"}, diff --git a/src/recipe/os/YUM/Anolis-OS.c b/src/recipe/os/YUM/Anolis-OS.c index 9aac398..ebb4725 100644 --- a/src/recipe/os/YUM/Anolis-OS.c +++ b/src/recipe/os/YUM/Anolis-OS.c @@ -12,7 +12,7 @@ /** * @time 2024-06-12 更新 */ -static SourceInfo +static Source_t os_anolis_sources[] = { {&UpstreamProvider, NULL}, {&Ali, "https://mirrors.aliyun.com/anolis"}, diff --git a/src/recipe/os/YUM/Fedora-Linux.c b/src/recipe/os/YUM/Fedora-Linux.c index ee14ab3..aa09324 100644 --- a/src/recipe/os/YUM/Fedora-Linux.c +++ b/src/recipe/os/YUM/Fedora-Linux.c @@ -14,7 +14,7 @@ /** * @update 2024-11-04 */ -static SourceInfo +static Source_t os_fedora_sources[] = { {&UpstreamProvider, "http://download.example/pub/fedora/linux"}, {&Ali, "https://mirrors.aliyun.com/fedora"}, diff --git a/src/recipe/os/YUM/Rocky-Linux.c b/src/recipe/os/YUM/Rocky-Linux.c index 4e38186..49421b7 100644 --- a/src/recipe/os/YUM/Rocky-Linux.c +++ b/src/recipe/os/YUM/Rocky-Linux.c @@ -10,7 +10,7 @@ /** * @time 2024-06-12 更新 */ -static SourceInfo +static Source_t os_rockylinux_sources[] = { {&UpstreamProvider, NULL}, {&MirrorZ, "https://mirrors.cernet.edu.cn/rocky"}, diff --git a/src/recipe/os/YUM/openEuler.c b/src/recipe/os/YUM/openEuler.c index 83e67dc..f386670 100644 --- a/src/recipe/os/YUM/openEuler.c +++ b/src/recipe/os/YUM/openEuler.c @@ -11,7 +11,7 @@ /** * @update 2024-09-14 */ -static SourceInfo +static Source_t os_openeuler_sources[] = { {&UpstreamProvider, "https://repo.openeuler.org/"}, {&Ali, "https://mirrors.aliyun.com/openeuler/"}, diff --git a/src/recipe/os/openSUSE.c b/src/recipe/os/openSUSE.c index 1e93141..71f92f9 100644 --- a/src/recipe/os/openSUSE.c +++ b/src/recipe/os/openSUSE.c @@ -10,7 +10,7 @@ /** * @update 2024-08-16 */ -static SourceInfo +static Source_t os_opensuse_sources[] = { {&UpstreamProvider, NULL}, {&Ali, "https://mirrors.aliyun.com/opensuse"}, diff --git a/src/recipe/os/pacman/Arch-Linux.c b/src/recipe/os/pacman/Arch-Linux.c index f10efea..46654bd 100644 --- a/src/recipe/os/pacman/Arch-Linux.c +++ b/src/recipe/os/pacman/Arch-Linux.c @@ -12,7 +12,7 @@ * @update 2024-07-03 * @note 不要给后面加 / ,因为ARM情况下,还要额外加一个 arm 后缀 */ -static SourceInfo +static Source_t os_arch_sources[] = { {&UpstreamProvider, NULL}, {&Ali, "https://mirrors.aliyun.com/archlinux"}, diff --git a/src/recipe/os/pacman/MSYS2.c b/src/recipe/os/pacman/MSYS2.c index d01af28..32e9573 100644 --- a/src/recipe/os/pacman/MSYS2.c +++ b/src/recipe/os/pacman/MSYS2.c @@ -10,7 +10,7 @@ /** * @time 2024-04-18 更新 */ -static SourceInfo +static Source_t os_msys2_sources[] = { {&UpstreamProvider, NULL}, {&Ali, "https://mirrors.aliyun.com/msys2"}, diff --git a/src/recipe/recipe-template.c b/src/recipe/recipe-template.c index 59a13cf..cfc2ebe 100644 --- a/src/recipe/recipe-template.c +++ b/src/recipe/recipe-template.c @@ -33,7 +33,7 @@ /** * 定义专服务于该target的镜像站,该例数据为虚拟填充 */ -static MirrorSite +static MirrorSite_t RubyMetric = {"rbmt", // chsrc set rbmt "RubyMetric", // 该镜像站的缩写 "RubyMetric.com", // 该镜像站的全名 @@ -45,7 +45,7 @@ RubyMetric = {"rbmt", // chsrc set rbmt * @update 2024-08-09 * @note 该target的各个源地址,该例数据为虚拟填充 */ -static SourceInfo +static Source_t __sources[] = { {&UpstreamProvider, "上游地址,若维护者暂时未知,可填NULL,这个主要用于reset"}, {&RubyMetric, "https://rubymetirc.com/target"}, diff --git a/src/recipe/ware/Anaconda.c b/src/recipe/ware/Anaconda.c index 94bfca5..e653024 100644 --- a/src/recipe/ware/Anaconda.c +++ b/src/recipe/ware/Anaconda.c @@ -11,7 +11,7 @@ * @time 2023-09-10 更新 * @note 这些链接将会在setsrc函数中补充完整 */ -static SourceInfo +static Source_t wr_anaconda_sources[] = { {&UpstreamProvider, "https://repo.anaconda.com/"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/anaconda/"}, diff --git a/src/recipe/ware/CocoaPods.c b/src/recipe/ware/CocoaPods.c index 21c4531..9f0430e 100644 --- a/src/recipe/ware/CocoaPods.c +++ b/src/recipe/ware/CocoaPods.c @@ -10,7 +10,7 @@ /** * @time 2024-06-08 更新 */ -static SourceInfo +static Source_t wr_cocoapods_sources[] = { {&UpstreamProvider, NULL}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git"}, diff --git a/src/recipe/ware/Docker-Hub.c b/src/recipe/ware/Docker-Hub.c index def3143..d560345 100644 --- a/src/recipe/ware/Docker-Hub.c +++ b/src/recipe/ware/Docker-Hub.c @@ -9,7 +9,7 @@ * Last Modified : <2024-11-22> * ------------------------------------------------------------*/ -static MirrorSite +static MirrorSite_t DaoCloud = { "daocloud", "DaoCloud","上海道客网络科技有限公司", "https://www.daocloud.io/", // 没有找到 DaoCloud 合适的下载链接,先随便给一个,以规避 chsrc 自动测速时所有 dockerhub 镜像站都没有测速链接带来的 bug @@ -36,7 +36,7 @@ Huecker = { * @consult https://gist.github.com/y0ngb1n/7e8f16af3242c7815e7ca2f0833d3ea6 */ -static SourceInfo +static Source_t wr_dockerhub_sources[] = { {&UpstreamProvider, NULL}, // {&Ustc, "https://docker.mirrors.ustc.edu.cn/"}, diff --git a/src/recipe/ware/Emacs.c b/src/recipe/ware/Emacs.c index 57c246a..b9abd25 100644 --- a/src/recipe/ware/Emacs.c +++ b/src/recipe/ware/Emacs.c @@ -7,7 +7,7 @@ * Last Modified : <2024-11-21> * ------------------------------------------------------------*/ -static MirrorSite +static MirrorSite_t EmacsChina = { "emacschina", "EmacsChina", "Emacs China 社区", "https://elpamirror.emacs-china.org/", {SKIP, ToFill, ToFill, NULL} @@ -17,7 +17,7 @@ EmacsChina = { * @update 2023-09-10 * @note Emacs用户往往只需要一次性换源,只会极少次调用 chsrc,我们只给用户提供文档 */ -SourceInfo +Source_t wr_emacs_sources[] = { {&UpstreamProvider, NULL}, {&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/docs/emacs-elpa"}, diff --git a/src/recipe/ware/Flathub.c b/src/recipe/ware/Flathub.c index a54109c..cfee9f4 100644 --- a/src/recipe/ware/Flathub.c +++ b/src/recipe/ware/Flathub.c @@ -11,7 +11,7 @@ * @update 2023-09-11 * @note 目前只有一个源 */ -static SourceInfo +static Source_t wr_flathub_sources[] = { {&UpstreamProvider, NULL}, {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/flathub"}, diff --git a/src/recipe/ware/Guix.c b/src/recipe/ware/Guix.c index 9e2e85e..8fdc4b7 100644 --- a/src/recipe/ware/Guix.c +++ b/src/recipe/ware/Guix.c @@ -11,7 +11,7 @@ * @update 2023-09-11 * @note 目前只有一个源 */ -static SourceInfo +static Source_t wr_guix_sources[] = { {&UpstreamProvider, NULL}, {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/git/guix.git"} diff --git a/src/recipe/ware/Homebrew.c b/src/recipe/ware/Homebrew.c index 052eebd..71ef19a 100644 --- a/src/recipe/ware/Homebrew.c +++ b/src/recipe/ware/Homebrew.c @@ -15,7 +15,7 @@ * 2. 不确定 Sustech 能否工作 * } */ -static SourceInfo +static Source_t wr_homebrew_sources[] = { {&UpstreamProvider, NULL}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/"}, diff --git a/src/recipe/ware/Nix.c b/src/recipe/ware/Nix.c index 3110c8f..a4e1c3a 100644 --- a/src/recipe/ware/Nix.c +++ b/src/recipe/ware/Nix.c @@ -14,7 +14,7 @@ * 2. 这些链接将会在setsrc函数中补充完整 * } */ -static SourceInfo +static Source_t wr_nix_sources[] = { {&UpstreamProvider, NULL}, {&Bfsu, "https://mirrors.bfsu.edu.cn/nix-channels/"} diff --git a/src/recipe/ware/TeX-Live.c b/src/recipe/ware/TeX-Live.c index 64e71ed..28cca26 100644 --- a/src/recipe/ware/TeX-Live.c +++ b/src/recipe/ware/TeX-Live.c @@ -10,7 +10,7 @@ /** * @update 2023-09-10 */ -static SourceInfo +static Source_t wr_tex_sources[] = { {&UpstreamProvider, NULL}, {&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/ctan/systems/texlive/tlnet"}, diff --git a/src/recipe/ware/WinGet.c b/src/recipe/ware/WinGet.c index d6814c4..c51508e 100644 --- a/src/recipe/ware/WinGet.c +++ b/src/recipe/ware/WinGet.c @@ -11,7 +11,7 @@ * @update 2024-06-07 * @note 目前仅有一个源 */ -static SourceInfo +static Source_t wr_winget_sources[] = { {&UpstreamProvider, "https://cdn.winget.microsoft.com/cache"}, {&Ustc, "https://mirrors.ustc.edu.cn/winget-source"},