Update OS recipes

This commit is contained in:
Aoran Zeng
2025-07-21 20:03:06 +08:00
parent 78e863a2a1
commit c7015c6504
10 changed files with 308 additions and 106 deletions

View File

@@ -12,15 +12,17 @@
*/
static Source_t os_msys2_sources[] =
{
{&UpstreamProvider, NULL},
{&Ali, "https://mirrors.aliyun.com/msys2"},
{&Bfsu, "https://mirrors.bfsu.edu.cn/msys2"},
{&Ustc, "https://mirrors.ustc.edu.cn/msys2"},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/msys2"},
{&Tencent, "https://mirrors.tencent.com/msys2"},
{&Huawei, "https://mirrors.huaweicloud.com/msys2"},
// {&Netease, "https://mirrors.163.com/msys2"}, /* 不启用原因:过慢 */
// {&Sohu, "https://mirrors.sohu.com/msys2"} /* 不启用原因:过慢 */
{&UpstreamProvider, NULL, NULL},
{&Ali, "https://mirrors.aliyun.com/msys2", DelegateToMirror},
{&Bfsu, "https://mirrors.bfsu.edu.cn/msys2", DelegateToMirror},
{&Ustc, "https://mirrors.ustc.edu.cn/msys2", DelegateToMirror},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/msys2", DelegateToMirror},
{&Tencent, "https://mirrors.tencent.com/msys2", DelegateToMirror},
{&Huawei, "https://mirrors.huaweicloud.com/msys2", DelegateToMirror},
/* 不启用原因:过慢 */
// {&Netease, "https://mirrors.163.com/msys2", DelegateToMirror},
/* 不启用原因:过慢 */
// {&Sohu, "https://mirrors.sohu.com/msys2", DelegateToMirror}
};
def_sources_n(os_msys2);
@@ -52,4 +54,21 @@ os_msys2_setsrc (char *option)
chsrc_conclude (&source);
}
def_target_s(os_msys2);
Feature_t
os_msys2_feat (char *option)
{
Feature_t f = {0};
f.can_get = false;
f.can_reset = false;
f.cap_locally = CanNot;
f.can_english = false;
f.can_user_define = true;
f.note = NULL;
return f;
}
def_target_sf(os_msys2);