mirror of
https://github.com/RubyMetric/chsrc
synced 2025-07-24 09:22:12 +08:00
Update OS recipes
This commit is contained in:
parent
78e863a2a1
commit
c7015c6504
@ -6,7 +6,7 @@
|
||||
* | Happy Game <happygame1024@gmail.com>
|
||||
* |
|
||||
* Created On : <2023-09-29>
|
||||
* Last Modified : <2025-06-20>
|
||||
* Last Modified : <2025-07-21>
|
||||
*
|
||||
* Kali Linux 基于 Debian Testing branch
|
||||
* ------------------------------------------------------------*/
|
||||
@ -23,14 +23,16 @@ static SourceProvider_t os_kali_upstream =
|
||||
*/
|
||||
static Source_t os_kali_sources[] =
|
||||
{
|
||||
{&os_kali_upstream, "http://http.kali.org/kali"},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/kali"},
|
||||
{&Ali, "https://mirrors.aliyun.com/kali"},
|
||||
{&Volcengine, "https://mirrors.volces.com/kali"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/kali"},
|
||||
{&Ustc, "https://mirrors.ustc.edu.cn/kali"},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/kali"},
|
||||
// {&Huawei, "https://mirrors.huaweicloud.com/kali"}, // 未与上游同步
|
||||
{&os_kali_upstream, "http://http.kali.org/kali", DelegateToUpstream},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/kali", DelegateToMirror},
|
||||
{&Ali, "https://mirrors.aliyun.com/kali", DelegateToMirror},
|
||||
{&Volcengine, "https://mirrors.volces.com/kali", DelegateToMirror},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/kali", DelegateToMirror},
|
||||
{&Ustc, "https://mirrors.ustc.edu.cn/kali", DelegateToMirror},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/kali", DelegateToMirror},
|
||||
|
||||
/* 不启用原因: 未与上游同步 */
|
||||
// {&Huawei, "https://mirrors.huaweicloud.com/kali", DelegateToMirror},
|
||||
};
|
||||
def_sources_n(os_kali);
|
||||
|
||||
@ -60,4 +62,30 @@ os_kali_setsrc (char *option)
|
||||
chsrc_conclude (&source);
|
||||
}
|
||||
|
||||
def_target(os_kali);
|
||||
|
||||
void
|
||||
os_kali_resetsrc (char *option)
|
||||
{
|
||||
os_kali_setsrc (option);
|
||||
}
|
||||
|
||||
|
||||
Feature_t
|
||||
os_kali_feat (char *option)
|
||||
{
|
||||
Feature_t f = {0};
|
||||
|
||||
f.can_get = true;
|
||||
f.can_reset = true;
|
||||
|
||||
f.cap_locally = CanNot;
|
||||
f.cap_locally_explain = NULL;
|
||||
|
||||
f.can_english = true;
|
||||
f.can_user_define = true;
|
||||
|
||||
f.note = NULL;
|
||||
return f;
|
||||
}
|
||||
|
||||
def_target_gsrf(os_kali);
|
||||
|
@ -5,7 +5,7 @@
|
||||
* Contributors : Yangmoooo <yangmoooo@outlook.com>
|
||||
* |
|
||||
* Created On : <2023-09-29>
|
||||
* Last Modified : <2024-12-18>
|
||||
* Last Modified : <2025-07-21>
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
static SourceProvider_t os_linuxlite_upstream =
|
||||
@ -19,10 +19,10 @@ static SourceProvider_t os_linuxlite_upstream =
|
||||
*/
|
||||
static Source_t os_linuxlite_sources[] =
|
||||
{
|
||||
{&os_linuxlite_upstream, "http://repo.linuxliteos.com/linuxlite/"},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/linuxliteos/"},
|
||||
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/linuxliteos/"},
|
||||
{&Nju, "https://mirror.nju.edu.cn/linuxliteos/"}
|
||||
{&os_linuxlite_upstream, "http://repo.linuxliteos.com/linuxlite/", DelegateToUpstream},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/linuxliteos/", DelegateToMirror},
|
||||
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/linuxliteos/", DelegateToMirror},
|
||||
{&Nju, "https://mirror.nju.edu.cn/linuxliteos/", DelegateToMirror}
|
||||
};
|
||||
def_sources_n(os_linuxlite);
|
||||
|
||||
@ -53,4 +53,30 @@ os_linuxlite_setsrc (char *option)
|
||||
chsrc_conclude (&source);
|
||||
}
|
||||
|
||||
def_target(os_linuxlite);
|
||||
|
||||
void
|
||||
os_linuxlite_resetsrc (char *option)
|
||||
{
|
||||
os_linuxlite_setsrc (option);
|
||||
}
|
||||
|
||||
|
||||
Feature_t
|
||||
os_linuxlite_feat (char *option)
|
||||
{
|
||||
Feature_t f = {0};
|
||||
|
||||
f.can_get = true;
|
||||
f.can_reset = true;
|
||||
|
||||
f.cap_locally = CanNot;
|
||||
f.cap_locally_explain = NULL;
|
||||
|
||||
f.can_english = true;
|
||||
f.can_user_define = true;
|
||||
|
||||
f.note = NULL;
|
||||
return f;
|
||||
}
|
||||
|
||||
def_target_gsrf(os_linuxlite);
|
||||
|
@ -5,7 +5,7 @@
|
||||
* Contributors : Happy Game <happygame1024@gmail.com>
|
||||
* |
|
||||
* Created On : <2023-09-29>
|
||||
* Last Modified : <2025-01-07>
|
||||
* Last Modified : <2025-07-21>
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
@ -14,20 +14,21 @@
|
||||
*/
|
||||
static Source_t os_linuxmint_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/linuxmint/"},
|
||||
{&Ali, "http://mirrors.aliyun.com/linuxmint-packages/"},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/linuxmint/"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/linuxmint/"},
|
||||
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/linuxmint/"},
|
||||
{&Jlu, "https://mirrors.jlu.edu.cn/linuxmint/"},
|
||||
{&Ustc, "https://mirrors.ustc.edu.cn/linuxmint/"},
|
||||
{&Bjtu, "https://mirror.bjtu.edu.cn/linuxmint/"},
|
||||
{&Zju, "https://mirrors.zju.edu.cn/linuxmint/"},
|
||||
{&Sustech, "https://mirrors.sustech.edu.cn/linuxmint/"},
|
||||
{&Iscas, "https://mirror.iscas.ac.cn/linuxmint/"},
|
||||
{&Scau, "https://mirrors.scau.edu.cn/linuxmint/"},
|
||||
// {&Netease, "https://mirrors.163.com/linuxmint/packages/"} /* 不启用原因:过慢 */
|
||||
{&UpstreamProvider, NULL, NULL},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/linuxmint/", DelegateToMirror},
|
||||
{&Ali, "http://mirrors.aliyun.com/linuxmint-packages/", DelegateToMirror},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/linuxmint/", DelegateToMirror},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/linuxmint/", DelegateToMirror},
|
||||
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/linuxmint/", DelegateToMirror},
|
||||
{&Jlu, "https://mirrors.jlu.edu.cn/linuxmint/", DelegateToMirror},
|
||||
{&Ustc, "https://mirrors.ustc.edu.cn/linuxmint/", DelegateToMirror},
|
||||
{&Bjtu, "https://mirror.bjtu.edu.cn/linuxmint/", DelegateToMirror},
|
||||
{&Zju, "https://mirrors.zju.edu.cn/linuxmint/", DelegateToMirror},
|
||||
{&Sustech, "https://mirrors.sustech.edu.cn/linuxmint/", DelegateToMirror},
|
||||
{&Iscas, "https://mirror.iscas.ac.cn/linuxmint/", DelegateToMirror},
|
||||
{&Scau, "https://mirrors.scau.edu.cn/linuxmint/", DelegateToMirror},
|
||||
/* 不启用原因:过慢 */
|
||||
// {&Netease, "https://mirrors.163.com/linuxmint/packages/", DelegateToMirror}
|
||||
};
|
||||
def_sources_n(os_linuxmint);
|
||||
|
||||
@ -67,4 +68,24 @@ os_linuxmint_setsrc (char *option)
|
||||
chsrc_warn2 ("已自动更换mint主要源, 但mint也使用基于debian或ubuntu的基础源, 可参考对应的debian或ubuntu换源方法进行手动换源");
|
||||
}
|
||||
|
||||
def_target(os_linuxmint);
|
||||
|
||||
|
||||
Feature_t
|
||||
os_linuxmint_feat (char *option)
|
||||
{
|
||||
Feature_t f = {0};
|
||||
|
||||
f.can_get = true;
|
||||
f.can_reset = false;
|
||||
|
||||
f.cap_locally = CanNot;
|
||||
f.cap_locally_explain = NULL;
|
||||
|
||||
f.can_english = true;
|
||||
f.can_user_define = true;
|
||||
|
||||
f.note = NULL;
|
||||
return f;
|
||||
}
|
||||
|
||||
def_target_gsf(os_linuxmint);
|
||||
|
@ -6,7 +6,7 @@
|
||||
* | zouri <guoshuaisun@outlook.com>
|
||||
* |
|
||||
* Created On : <2023-09-03>
|
||||
* Last Modified : <2024-12-06>
|
||||
* Last Modified : <2025-07-21>
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
@ -14,16 +14,19 @@
|
||||
*/
|
||||
static Source_t os_ros_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Ali, "https://mirrors.aliyun.com"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn"},
|
||||
{&Ustc, "https://mirrors.ustc.edu.cn"},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn"},
|
||||
{&Tencent, "https://mirrors.tencent.com"},
|
||||
// {&Tencent_Intra, "https://mirrors.tencentyun.com"},
|
||||
{&Huawei, "https://mirrors.huaweicloud.com"},
|
||||
// {&Netease, "https://mirrors.163.com"}, /* 不启用原因:过慢 */
|
||||
// {&Sohu, "https://mirrors.sohu.com"} /* 不启用原因:过慢 */
|
||||
{&UpstreamProvider, NULL, NULL},
|
||||
|
||||
{&Ali, "https://mirrors.aliyun.com", DelegateToMirror},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn", DelegateToMirror},
|
||||
{&Ustc, "https://mirrors.ustc.edu.cn", DelegateToMirror},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn", DelegateToMirror},
|
||||
{&Tencent, "https://mirrors.tencent.com", DelegateToMirror},
|
||||
// {&Tencent_Intra, "https://mirrors.tencentyun.com", DelegateToMirror},
|
||||
{&Huawei, "https://mirrors.huaweicloud.com", DelegateToMirror},
|
||||
/* 不启用原因:过慢 */
|
||||
// {&Netease, "https://mirrors.163.com", DelegateToMirror},
|
||||
/* 不启用原因:过慢 */
|
||||
// {&Sohu, "https://mirrors.sohu.com", DelegateToMirror}
|
||||
};
|
||||
def_sources_n(os_ros);
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
||||
* Contributors : Yangmoooo <yangmoooo@outlook.com>
|
||||
* Created On : <2023-09-29>
|
||||
* Last Modified : <2024-10-02>
|
||||
* Last Modified : <2025-07-21>
|
||||
*
|
||||
* Raspberry Pi OS 树莓派操作系统,以前称为 Raspbian
|
||||
* ------------------------------------------------------------*/
|
||||
@ -14,13 +14,14 @@
|
||||
*/
|
||||
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/"},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/raspberrypi/"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/raspberrypi/"},
|
||||
{&Ustc, "https://mirrors.ustc.edu.cn/raspberrypi/"},
|
||||
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/raspberrypi/"},
|
||||
{&Sustech, "https://mirrors.sustech.edu.cn/raspberrypi/"}
|
||||
// https://archive.raspberrypi.org/ until Debian "bullseye" release
|
||||
{&UpstreamProvider, "https://archive.raspberrypi.com/", DelegateToUpstream},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/raspberrypi/", DelegateToMirror},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/raspberrypi/", DelegateToMirror},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/raspberrypi/", DelegateToMirror},
|
||||
{&Ustc, "https://mirrors.ustc.edu.cn/raspberrypi/", DelegateToMirror},
|
||||
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/raspberrypi/", DelegateToMirror},
|
||||
{&Sustech, "https://mirrors.sustech.edu.cn/raspberrypi/", DelegateToMirror}
|
||||
};
|
||||
def_sources_n(os_raspberrypi);
|
||||
|
||||
@ -51,4 +52,30 @@ os_raspberrypi_setsrc (char *option)
|
||||
chsrc_conclude (&source);
|
||||
}
|
||||
|
||||
def_target(os_raspberrypi);
|
||||
|
||||
void
|
||||
os_raspberrypi_resetsrc (char *option)
|
||||
{
|
||||
os_raspberrypi_setsrc (option);
|
||||
}
|
||||
|
||||
|
||||
Feature_t
|
||||
os_raspberrypi_feat (char *option)
|
||||
{
|
||||
Feature_t f = {0};
|
||||
|
||||
f.can_get = true;
|
||||
f.can_reset = true;
|
||||
|
||||
f.cap_locally = CanNot;
|
||||
f.cap_locally_explain = NULL;
|
||||
|
||||
f.can_english = false;
|
||||
f.can_user_define = true;
|
||||
|
||||
f.note = NULL;
|
||||
return f;
|
||||
}
|
||||
|
||||
def_target_gsrf(os_raspberrypi);
|
||||
|
@ -4,7 +4,7 @@
|
||||
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
||||
* Contributors : Nil Null <nil@null.org>
|
||||
* Created On : <2023-09-29>
|
||||
* Last Modified : <2024-11-21>
|
||||
* Last Modified : <2025-07-21>
|
||||
*
|
||||
* Trisquel基于Ubuntu开发,不含任何专有软件及专有固件,内核使用 Linux-libre
|
||||
* ------------------------------------------------------------*/
|
||||
@ -14,12 +14,12 @@
|
||||
*/
|
||||
static Source_t os_trisquel_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/trisquel/"},
|
||||
{&Ali, "https://mirrors.aliyun.com/trisquel/"},
|
||||
{&Nju, "https://mirror.nju.edu.cn/trisquel/"},
|
||||
{&Ustc, "https://mirrors.ustc.edu.cn/trisquel/"},
|
||||
{&Iscas, "https://mirror.iscas.ac.cn/trisquel/"}
|
||||
{&UpstreamProvider, NULL, NULL},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/trisquel/", DelegateToMirror},
|
||||
{&Ali, "https://mirrors.aliyun.com/trisquel/", DelegateToMirror},
|
||||
{&Nju, "https://mirror.nju.edu.cn/trisquel/", DelegateToMirror},
|
||||
{&Ustc, "https://mirrors.ustc.edu.cn/trisquel/", DelegateToMirror},
|
||||
{&Iscas, "https://mirror.iscas.ac.cn/trisquel/", DelegateToMirror}
|
||||
};
|
||||
def_sources_n(os_trisquel);
|
||||
|
||||
@ -32,7 +32,7 @@ os_trisquel_getsrc (char *option)
|
||||
|
||||
|
||||
/**
|
||||
* @consult: https://help.mirrors.cernet.edu.cn/trisquel/
|
||||
* @consult https://help.mirrors.cernet.edu.cn/trisquel/
|
||||
*/
|
||||
void
|
||||
os_trisquel_setsrc (char *option)
|
||||
@ -53,4 +53,22 @@ os_trisquel_setsrc (char *option)
|
||||
}
|
||||
|
||||
|
||||
def_target(os_trisquel);
|
||||
Feature_t
|
||||
os_trisquel_feat (char *option)
|
||||
{
|
||||
Feature_t f = {0};
|
||||
|
||||
f.can_get = true;
|
||||
f.can_reset = false;
|
||||
|
||||
f.cap_locally = CanNot;
|
||||
f.cap_locally_explain = NULL;
|
||||
|
||||
f.can_english = true;
|
||||
f.can_user_define = true;
|
||||
|
||||
f.note = NULL;
|
||||
return f;
|
||||
}
|
||||
|
||||
def_target_gsf(os_trisquel);
|
||||
|
@ -4,7 +4,7 @@
|
||||
* File Authors : Heng Guo <2085471348@qq.com>
|
||||
* Contributors : Yangmoooo <yangmoooo@outlook.com>
|
||||
* Created On : <2023-09-26>
|
||||
* Last Modified : <2024-09-14>
|
||||
* Last Modified : <2025-07-21>
|
||||
*
|
||||
* 名称为小写deepin,而非Deepin
|
||||
* ------------------------------------------------------------*/
|
||||
@ -14,15 +14,18 @@
|
||||
*/
|
||||
static Source_t os_deepin_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, "https://community-packages.deepin.com/deepin"},
|
||||
{&Ali, "https://mirrors.aliyun.com/deepin"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/deepin"},
|
||||
{&Ustc, "https://mirrors.ustc.edu.cn/deepin"},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/deepin"},
|
||||
{&Tencent, "https://mirrors.tencent.com/deepin"},
|
||||
// {&Tencent_Intra, "https://mirrors.tencentyun.com/deepin"},
|
||||
// {&Netease, "https://mirrors.163.com/deepin"}, /* 不启用原因:过慢 */
|
||||
// {&Sohu, "https://mirrors.sohu.com/deepin"} /* 不启用原因:过慢 */
|
||||
{&UpstreamProvider, "https://community-packages.deepin.com/deepin", DelegateToUpstream},
|
||||
{&Ali, "https://mirrors.aliyun.com/deepin", DelegateToMirror},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/deepin", DelegateToMirror},
|
||||
{&Ustc, "https://mirrors.ustc.edu.cn/deepin", DelegateToMirror},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/deepin", DelegateToMirror},
|
||||
{&Tencent, "https://mirrors.tencent.com/deepin", DelegateToMirror},
|
||||
// {&Tencent_Intra, "https://mirrors.tencentyun.com/deepin", DelegateToMirror},
|
||||
|
||||
/* 不启用原因:过慢 */
|
||||
// {&Netease, "https://mirrors.163.com/deepin", DelegateToMirror},
|
||||
/* 不启用原因:过慢 */
|
||||
// {&Sohu, "https://mirrors.sohu.com/deepin", DelegateToMirror}
|
||||
};
|
||||
def_sources_n(os_deepin);
|
||||
|
||||
@ -56,4 +59,30 @@ os_deepin_setsrc (char *option)
|
||||
chsrc_conclude (&source);
|
||||
}
|
||||
|
||||
def_target(os_deepin);
|
||||
|
||||
void
|
||||
os_deepin_resetsrc (char *option)
|
||||
{
|
||||
os_deepin_setsrc (option);
|
||||
}
|
||||
|
||||
|
||||
Feature_t
|
||||
os_deepin_feat (char *option)
|
||||
{
|
||||
Feature_t f = {0};
|
||||
|
||||
f.can_get = true;
|
||||
f.can_reset = true;
|
||||
|
||||
f.cap_locally = CanNot;
|
||||
f.cap_locally_explain = NULL;
|
||||
|
||||
f.can_english = true;
|
||||
f.can_user_define = true;
|
||||
|
||||
f.note = NULL;
|
||||
return f;
|
||||
}
|
||||
|
||||
def_target_gsrf(os_deepin);
|
||||
|
@ -2,9 +2,9 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* -------------------------------------------------------------
|
||||
* File Authors : Heng Guo <2085471348@qq.com>
|
||||
* Contributors : Nil Null <nil@null.org>
|
||||
* Contributors : Aoran Zeng <ccmywish@qq.com>
|
||||
* Created On : <2023-09-06>
|
||||
* Last Modified : <2024-08-16>
|
||||
* Last Modified : <2025-07-21>
|
||||
*
|
||||
* openKylin直接基于Linux内核开发,属于和Debian、openSUSE、Fedora、Arch
|
||||
* 同一级别的、根社区发布的系统
|
||||
@ -15,9 +15,9 @@
|
||||
*/
|
||||
static Source_t os_openkylin_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, "https://archive.openkylin.top/openkylin/"},
|
||||
{&Ali, "https://mirrors.aliyun.com/openkylin/"},
|
||||
{&Netease, "https://mirrors.163.com/openkylin/"},
|
||||
{&UpstreamProvider, "https://archive.openkylin.top/openkylin/", DelegateToUpstream},
|
||||
{&Ali, "https://mirrors.aliyun.com/openkylin/", DelegateToMirror},
|
||||
{&Netease, "https://mirrors.163.com/openkylin/", DelegateToMirror},
|
||||
};
|
||||
def_sources_n(os_openkylin);
|
||||
|
||||
@ -44,4 +44,30 @@ os_openkylin_setsrc (char *option)
|
||||
chsrc_conclude (&source);
|
||||
}
|
||||
|
||||
def_target(os_openkylin);
|
||||
|
||||
void
|
||||
os_openkylin_resetsrc (char *option)
|
||||
{
|
||||
os_openkylin_setsrc (option);
|
||||
}
|
||||
|
||||
|
||||
Feature_t
|
||||
os_openkylin_feat (char *option)
|
||||
{
|
||||
Feature_t f = {0};
|
||||
|
||||
f.can_get = true;
|
||||
f.can_reset = true;
|
||||
|
||||
f.cap_locally = CanNot;
|
||||
f.cap_locally_explain = NULL;
|
||||
|
||||
f.can_english = true;
|
||||
f.can_user_define = true;
|
||||
|
||||
f.note = NULL;
|
||||
return f;
|
||||
}
|
||||
|
||||
def_target_gsrf(os_openkylin);
|
||||
|
@ -15,16 +15,19 @@
|
||||
*/
|
||||
static Source_t os_arch_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Ali, "https://mirrors.aliyun.com/archlinux"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/archlinux"},
|
||||
{&Ustc, "https://mirrors.ustc.edu.cn/archlinux"},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/archlinux"},
|
||||
{&Tencent, "https://mirrors.tencent.com/archlinux"},
|
||||
// {&Tencent_Intra, "https://mirrors.tencentyun.com/archlinux"},
|
||||
{&Huawei, "https://mirrors.huaweicloud.com/archlinux"},
|
||||
// {&Netease, "https://mirrors.163.com/archlinux"}, /* 不启用原因:过慢 */
|
||||
// {&Sohu, "https://mirrors.sohu.com/archlinux"} /* 不启用原因:过慢 */
|
||||
{&UpstreamProvider, NULL, NULL},
|
||||
{&Ali, "https://mirrors.aliyun.com/archlinux", DelegateToMirror},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/archlinux", DelegateToMirror},
|
||||
{&Ustc, "https://mirrors.ustc.edu.cn/archlinux", DelegateToMirror},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/archlinux", DelegateToMirror},
|
||||
{&Tencent, "https://mirrors.tencent.com/archlinux", DelegateToMirror},
|
||||
// {&Tencent_Intra, "https://mirrors.tencentyun.com/archlinux", DelegateToMirror},
|
||||
{&Huawei, "https://mirrors.huaweicloud.com/archlinux", DelegateToMirror},
|
||||
|
||||
/* 不启用原因:过慢 */
|
||||
// {&Netease, "https://mirrors.163.com/archlinux", DelegateToMirror},
|
||||
/* 不启用原因:过慢 */
|
||||
// {&Sohu, "https://mirrors.sohu.com/archlinux", DelegateToMirror}
|
||||
},
|
||||
|
||||
/**
|
||||
@ -33,14 +36,16 @@ static Source_t os_arch_sources[] =
|
||||
*/
|
||||
os_archlinuxcn_sources[] =
|
||||
{
|
||||
{&UpstreamProvider, "https://repo.archlinuxcn.org/"},
|
||||
{&Ali, "https://mirrors.aliyun.com/archlinuxcn/"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/archlinuxcn/"},
|
||||
{&Ustc, "https://mirrors.ustc.edu.cn/archlinuxcn/"},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/"},
|
||||
{&Tencent, "https://mirrors.cloud.tencent.com/archlinuxcn/"},
|
||||
// {&Tencent_Intra, "https://mirrors.cloud.tencentyun.com/archlinuxcn/"},
|
||||
// {&Netease, "https://mirrors.163.com/archlinux-cn/"} /* 不启用原因:过慢 */
|
||||
{&UpstreamProvider, "https://repo.archlinuxcn.org/", DelegateToUpstream},
|
||||
{&Ali, "https://mirrors.aliyun.com/archlinuxcn/", DelegateToMirror},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/archlinuxcn/", DelegateToMirror},
|
||||
{&Ustc, "https://mirrors.ustc.edu.cn/archlinuxcn/", DelegateToMirror},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/", DelegateToMirror},
|
||||
{&Tencent, "https://mirrors.cloud.tencent.com/archlinuxcn/", DelegateToMirror},
|
||||
// {&Tencent_Intra, "https://mirrors.cloud.tencentyun.com/archlinuxcn/", DelegateToMirror},
|
||||
|
||||
/* 不启用原因:过慢 */
|
||||
// {&Netease, "https://mirrors.163.com/archlinux-cn/", DelegateToMirror}
|
||||
};
|
||||
def_sources_n(os_arch);
|
||||
def_sources_n(os_archlinuxcn);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user