mirror of
https://github.com/RubyMetric/chsrc
synced 2025-06-08 03:04:03 +08:00
Revert "Fix flathub"
This reverts commit c38dcd5f5ac3cb27253606e8ab1fe2206d00ac1c.
This commit is contained in:
parent
ca1ad698b2
commit
9db5d0d89a
@ -12,223 +12,211 @@
|
|||||||
* 通用镜像站
|
* 通用镜像站
|
||||||
* ------------------------------------------------------------*/
|
* ------------------------------------------------------------*/
|
||||||
|
|
||||||
#define Big_File_ubuntu "/18.04/ubuntu-18.04.6-desktop-amd64.iso" // 2.3 GB
|
#define Big_File_ubuntu "/18.04/ubuntu-18.04.6-desktop-amd64.iso" // 2.3 GB
|
||||||
#define Big_File_ctan "/systems/texlive/Images/texlive.iso" // 4.8 GB
|
#define Big_File_ctan "/systems/texlive/Images/texlive.iso" // 4.8 GB
|
||||||
#define Big_File_archlinux "/iso/latest/archlinux-x86_64.iso" // 800 MB
|
#define Big_File_archlinux "/iso/latest/archlinux-x86_64.iso" // 800 MB
|
||||||
#define Big_File_deepin "/20.9/deepin-desktop-community-20.9-amd64.iso" // 4 GB
|
#define Big_File_deepin "/20.9/deepin-desktop-community-20.9-amd64.iso" // 4 GB
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 教育网镜像
|
* 教育网镜像
|
||||||
*
|
*
|
||||||
* @sync https://github.com/RubyMetric/chsrc/wiki
|
* @sync https://github.com/RubyMetric/chsrc/wiki
|
||||||
*
|
*
|
||||||
* Wiki中的排序是根据 https://github.com/mirrorz-org/oh-my-mirrorz 挑选速度前10位
|
* Wiki中的排序是根据 https://github.com/mirrorz-org/oh-my-mirrorz 挑选速度前10位
|
||||||
*/
|
*/
|
||||||
MirrorSite_t MirrorZ =
|
MirrorSite_t MirrorZ =
|
||||||
{
|
{
|
||||||
"mirrorz", "MirrorZ", "MirrorZ 校园网镜像站", "https://mirrors.cernet.edu.cn/",
|
"mirrorz", "MirrorZ", "MirrorZ 校园网镜像站", "https://mirrors.cernet.edu.cn/",
|
||||||
{SKIP, "功能特殊无法测速,跳过", "SKIP because of its special function"}
|
{SKIP, "功能特殊无法测速,跳过", "SKIP because of its special function"}
|
||||||
},
|
},
|
||||||
|
|
||||||
Tuna =
|
Tuna =
|
||||||
{
|
{
|
||||||
"tuna", "TUNA", "清华大学开源软件镜像站", "https://mirrors.tuna.tsinghua.edu.cn/",
|
"tuna", "TUNA", "清华大学开源软件镜像站", "https://mirrors.tuna.tsinghua.edu.cn/",
|
||||||
{NotSkip, NA, NA, "https://mirrors.tuna.tsinghua.edu.cn/speedtest/1000mb.bin"}
|
{NotSkip, NA, NA, "https://mirrors.tuna.tsinghua.edu.cn/speedtest/1000mb.bin"}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
Sjtug_Zhiyuan =
|
||||||
* @note 2025-3-17 SJTUG 共设两台服务器。思源服务器同步新镜像,致远服务器兼容原 SJTU 镜像站。
|
{
|
||||||
* @note 有些target(例如flathub)思源站的兼容性不好,可以考虑将两个服务器分开测试
|
"sjtu", "SJTUG-zhiyuan", "上海交通大学致远镜像站", "https://mirrors.sjtug.sjtu.edu.cn/",
|
||||||
*/
|
{NotSkip, NA, NA, "https://mirrors.sjtug.sjtu.edu.cn/ctan" Big_File_ctan}
|
||||||
|
},
|
||||||
|
|
||||||
Sjtug_Zhiyuan =
|
Zju =
|
||||||
{
|
{
|
||||||
"sjtu", "SJTUG-zhiyuan", "上海交通大学致远镜像站", "https://mirrors.sjtug.sjtu.edu.cn/",
|
"zju", "ZJU", "浙江大学开源软件镜像站", "https://mirrors.zju.edu.cn/",
|
||||||
{NotSkip, NA, NA, "https://mirrors.sjtug.sjtu.edu.cn/ctan" Big_File_ctan}
|
{NotSkip, NA, NA, "https://mirrors.zju.edu.cn/ubuntu-releases" Big_File_ubuntu}
|
||||||
},
|
},
|
||||||
|
|
||||||
Sjtug_Siyuan =
|
Lzuoss =
|
||||||
{
|
{
|
||||||
"sjtu", "SJTUG-siyuan", "上海交通大学思源镜像站", "https://mirror.sjtu.edu.cn/",
|
"lzu", "LZUOSS", "兰州大学开源社区镜像站", "https://mirror.lzu.edu.cn/",
|
||||||
{NotSkip, NA, NA, "https://mirror.sjtu.edu.cn/ctan" Big_File_ctan}
|
{NotSkip, NA, NA, "https://mirror.lzu.edu.cn/CTAN" Big_File_ctan}
|
||||||
},
|
},
|
||||||
|
|
||||||
Zju =
|
Jlu =
|
||||||
{
|
{
|
||||||
"zju", "ZJU", "浙江大学开源软件镜像站", "https://mirrors.zju.edu.cn/",
|
"jlu", "JLU", "吉林大学开源镜像站", "https://mirrors.jlu.edu.cn/",
|
||||||
{NotSkip, NA, NA, "https://mirrors.zju.edu.cn/ubuntu-releases" Big_File_ubuntu}
|
{NotSkip, NA, NA, "https://mirrors.jlu.edu.cn/_static/speedtest.bin"}
|
||||||
},
|
},
|
||||||
|
|
||||||
Lzuoss =
|
Bfsu =
|
||||||
{
|
{
|
||||||
"lzu", "LZUOSS", "兰州大学开源社区镜像站", "https://mirror.lzu.edu.cn/",
|
"bfsu", "BFSU", "北京外国语大学开源软件镜像站", "https://mirrors.bfsu.edu.cn/",
|
||||||
{NotSkip, NA, NA, "https://mirror.lzu.edu.cn/CTAN" Big_File_ctan}
|
{NotSkip, NA, NA, "https://mirrors.bfsu.edu.cn/speedtest/1000mb.bin"}
|
||||||
},
|
},
|
||||||
|
|
||||||
Jlu =
|
Pku =
|
||||||
{
|
{
|
||||||
"jlu", "JLU", "吉林大学开源镜像站", "https://mirrors.jlu.edu.cn/",
|
"pku", "PKU", "北京大学开源镜像站", "https://mirrors.pku.edu.cn/",
|
||||||
{NotSkip, NA, NA, "https://mirrors.jlu.edu.cn/_static/speedtest.bin"}
|
{NotSkip, NA, NA, "https://mirrors.pku.edu.cn/ubuntu-releases" Big_File_ubuntu}
|
||||||
},
|
},
|
||||||
|
|
||||||
Bfsu =
|
Bjtu =
|
||||||
{
|
{
|
||||||
"bfsu", "BFSU", "北京外国语大学开源软件镜像站", "https://mirrors.bfsu.edu.cn/",
|
"bjtu", "BJTU", "北京交通大学自由与开源软件镜像站", "https://mirror.bjtu.edu.cn/",
|
||||||
{NotSkip, NA, NA, "https://mirrors.bfsu.edu.cn/speedtest/1000mb.bin"}
|
{NotSkip, NA, NA, "https://mirror.bjtu.edu.cn/archlinux" Big_File_archlinux}
|
||||||
},
|
},
|
||||||
|
|
||||||
Pku =
|
Sustech =
|
||||||
{
|
{
|
||||||
"pku", "PKU", "北京大学开源镜像站", "https://mirrors.pku.edu.cn/",
|
"sustech", "SUSTech", "南方科技大学开源软件镜像站", "https://mirrors.sustech.edu.cn/",
|
||||||
{NotSkip, NA, NA, "https://mirrors.pku.edu.cn/ubuntu-releases" Big_File_ubuntu}
|
{NotSkip, NA, NA, "https://mirrors.sustech.edu.cn/site/speedtest/1000mb.bin"}
|
||||||
},
|
},
|
||||||
|
|
||||||
Bjtu =
|
Ustc =
|
||||||
{
|
{
|
||||||
"bjtu", "BJTU", "北京交通大学自由与开源软件镜像站", "https://mirror.bjtu.edu.cn/",
|
"ustc", "USTC", "中国科学技术大学开源镜像站", "https://mirrors.ustc.edu.cn/",
|
||||||
{NotSkip, NA, NA, "https://mirror.bjtu.edu.cn/archlinux" Big_File_archlinux}
|
{NotSkip, NA, NA, "https://mirrors.ustc.edu.cn/ubuntu-releases" Big_File_ubuntu}
|
||||||
},
|
},
|
||||||
|
|
||||||
Sustech =
|
Hust =
|
||||||
{
|
{
|
||||||
"sustech", "SUSTech", "南方科技大学开源软件镜像站", "https://mirrors.sustech.edu.cn/",
|
"hust", "HUST", "华中科技大学开源镜像站", "https://mirrors.hust.edu.cn/",
|
||||||
{NotSkip, NA, NA, "https://mirrors.sustech.edu.cn/site/speedtest/1000mb.bin"}
|
{NotSkip, NA, NA, "https://mirrors.hust.edu.cn/ubuntu-releases" Big_File_ubuntu}
|
||||||
},
|
},
|
||||||
|
|
||||||
Ustc =
|
// 速度暂时处于10位以后或者无测速报告,但是目前可用的源
|
||||||
{
|
|
||||||
"ustc", "USTC", "中国科学技术大学开源镜像站", "https://mirrors.ustc.edu.cn/",
|
|
||||||
{NotSkip, NA, NA, "https://mirrors.ustc.edu.cn/ubuntu-releases" Big_File_ubuntu}
|
|
||||||
},
|
|
||||||
|
|
||||||
Hust =
|
Iscas =
|
||||||
{
|
{
|
||||||
"hust", "HUST", "华中科技大学开源镜像站", "https://mirrors.hust.edu.cn/",
|
"iscas", "ISCAS", "中科院软件所智能软件研究中心开源镜像站", "https://mirror.iscas.ac.cn/",
|
||||||
{NotSkip, NA, NA, "https://mirrors.hust.edu.cn/ubuntu-releases" Big_File_ubuntu}
|
{NotSkip, NA, NA, "https://mirror.iscas.ac.cn/ubuntu-releases" Big_File_ubuntu}
|
||||||
},
|
},
|
||||||
|
|
||||||
// 速度暂时处于10位以后或者无测速报告,但是目前可用的源
|
Scau =
|
||||||
|
{
|
||||||
|
"scau", "SCAU", "华南农业大学开源软件镜像站", "https://mirrors.scau.edu.cn/",
|
||||||
|
{NotSkip, NA, NA, "https://mirrors.scau.edu.cn/ubuntu-releases" Big_File_ubuntu}
|
||||||
|
},
|
||||||
|
|
||||||
Iscas =
|
NJTech =
|
||||||
{
|
{
|
||||||
"iscas", "ISCAS", "中科院软件所智能软件研究中心开源镜像站", "https://mirror.iscas.ac.cn/",
|
"njtech", "NJTech", "南京工业大学开源软件镜像站", "https://mirrors.njtech.edu.cn/",
|
||||||
{NotSkip, NA, NA, "https://mirror.iscas.ac.cn/ubuntu-releases" Big_File_ubuntu}
|
{NotSkip, NA, NA, "https://mirrors.njtech.edu.cn/ubuntu-releases" Big_File_ubuntu}
|
||||||
},
|
},
|
||||||
|
|
||||||
Scau =
|
Nyist =
|
||||||
{
|
{
|
||||||
"scau", "SCAU", "华南农业大学开源软件镜像站", "https://mirrors.scau.edu.cn/",
|
"nyist", "NYIST", "南阳理工学院开源软件镜像站", "https://mirror.nyist.edu.cn/",
|
||||||
{NotSkip, NA, NA, "https://mirrors.scau.edu.cn/ubuntu-releases" Big_File_ubuntu}
|
{NotSkip, NA, NA, "https://mirror.nyist.edu.cn/ubuntu-releases" Big_File_ubuntu}
|
||||||
},
|
},
|
||||||
|
|
||||||
NJTech =
|
Sdu =
|
||||||
{
|
{
|
||||||
"njtech", "NJTech", "南京工业大学开源软件镜像站", "https://mirrors.njtech.edu.cn/",
|
"sdu", "SDU", "山东大学镜像站", "https://mirrors.sdu.edu.cn/",
|
||||||
{NotSkip, NA, NA, "https://mirrors.njtech.edu.cn/ubuntu-releases" Big_File_ubuntu}
|
{NotSkip, NA, NA, "https://mirrors.sdu.edu.cn/ubuntu-releases" Big_File_ubuntu}
|
||||||
},
|
},
|
||||||
|
|
||||||
Nyist =
|
Cqupt =
|
||||||
{
|
{
|
||||||
"nyist", "NYIST", "南阳理工学院开源软件镜像站", "https://mirror.nyist.edu.cn/",
|
"cqupt", "CQUPT", "重庆邮电大学开源镜像站", "https://mirrors.cqupt.edu.cn/",
|
||||||
{NotSkip, NA, NA, "https://mirror.nyist.edu.cn/ubuntu-releases" Big_File_ubuntu}
|
{NotSkip, NA, NA, "https://mirrors.cqupt.edu.cn/ubuntu-releases" Big_File_ubuntu}
|
||||||
},
|
},
|
||||||
|
|
||||||
Sdu =
|
Nju =
|
||||||
{
|
{
|
||||||
"sdu", "SDU", "山东大学镜像站", "https://mirrors.sdu.edu.cn/",
|
"nju", "NJU", "南京大学开源镜像站", "https://mirrors.nju.edu.cn/",
|
||||||
{NotSkip, NA, NA, "https://mirrors.sdu.edu.cn/ubuntu-releases" Big_File_ubuntu}
|
{NotSkip, NA, NA, "https://mirrors.nju.edu.cn/archlinux" Big_File_archlinux}
|
||||||
},
|
};
|
||||||
|
|
||||||
Cqupt =
|
/**
|
||||||
{
|
* @note 2023-09-05 只使用了不到5次,重庆大学镜像站就把我的ip封杀了,对用户来说封杀策略过严,暂时不可靠,暂时不用
|
||||||
"cqupt", "CQUPT", "重庆邮电大学开源镜像站", "https://mirrors.cqupt.edu.cn/",
|
*
|
||||||
{NotSkip, NA, NA, "https://mirrors.cqupt.edu.cn/ubuntu-releases" Big_File_ubuntu}
|
* Cqu =
|
||||||
},
|
* {
|
||||||
|
* "cqu", "CQU", "重庆大学开源软件镜像站", "https://mirrors.cqu.edu.cn/",
|
||||||
Nju =
|
* {NotSkip, NA, NA, "https://mirrors.cqu.edu.cn/speedtest/1000mb.bin"}
|
||||||
{
|
* };
|
||||||
"nju", "NJU", "南京大学开源镜像站", "https://mirrors.nju.edu.cn/",
|
*
|
||||||
{NotSkip, NA, NA, "https://mirrors.nju.edu.cn/archlinux" Big_File_archlinux}
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @note 2023-09-05 只使用了不到5次,重庆大学镜像站就把我的ip封杀了,对用户来说封杀策略过严,暂时不可靠,暂时不用
|
|
||||||
*
|
|
||||||
* Cqu =
|
|
||||||
* {
|
|
||||||
* "cqu", "CQU", "重庆大学开源软件镜像站", "https://mirrors.cqu.edu.cn/",
|
|
||||||
* {NotSkip, NA, NA, "https://mirrors.cqu.edu.cn/speedtest/1000mb.bin"}
|
|
||||||
* };
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 商业公司提供的源
|
|
||||||
*/
|
|
||||||
MirrorSite_t Ali =
|
|
||||||
{
|
|
||||||
"ali", "Ali OPSX Public", "阿里巴巴开源镜像站(公网)", "https://developer.aliyun.com/mirror/",
|
|
||||||
{NotSkip, NA, NA, "https://mirrors.aliyun.com/deepin-cd" Big_File_deepin}
|
|
||||||
},
|
|
||||||
/*
|
|
||||||
// https://mirrors.cloud.aliyuncs.com/
|
|
||||||
Ali_ECS_VPC =
|
|
||||||
{
|
|
||||||
"ali-ECS-VPC", "Ali OPSX ECS VPC", "阿里巴巴开源镜像站(ECS VPC网络)", "https://developer.aliyun.com/mirror/",
|
|
||||||
{NotSkip, NA, NA, "https://mirrors.cloud.aliyuncs.com/deepin-cd" Big_File_deepin}
|
|
||||||
},
|
|
||||||
|
|
||||||
// https://mirrors.aliyuncs.com/
|
|
||||||
Ali_ECS_classic =
|
|
||||||
{
|
|
||||||
"ali-ECS", "Ali OPSX ECS", "阿里巴巴开源镜像站(ECS 经典网络)", "https://developer.aliyun.com/mirror/",
|
|
||||||
{NotSkip, NA, NA, "https://mirrors.aliyuncs.com/deepin-cd" Big_File_deepin}
|
|
||||||
},
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Tencent =
|
|
||||||
{
|
|
||||||
"tencent", "Tencent Public", "腾讯软件源(公网)", "https://mirrors.tencent.com/",
|
/**
|
||||||
{NotSkip, NA, NA, "https://mirrors.cloud.tencent.com/ubuntu-releases" Big_File_ubuntu}
|
* 商业公司提供的源
|
||||||
},
|
|
||||||
/*
|
|
||||||
Tencent_Intra =
|
|
||||||
{
|
|
||||||
"tencent-intra", "Tencent Intranet", "腾讯软件源(内网)", "https://mirrors.tencent.com/",
|
|
||||||
{NotSkip, NA, NA, "https://mirrors.cloud.tencentyun.com/ubuntu-releases" Big_File_ubuntu}
|
|
||||||
},
|
|
||||||
*/
|
*/
|
||||||
|
MirrorSite_t Ali =
|
||||||
|
{
|
||||||
|
"ali", "Ali OPSX Public", "阿里巴巴开源镜像站(公网)", "https://developer.aliyun.com/mirror/",
|
||||||
|
{NotSkip, NA, NA, "https://mirrors.aliyun.com/deepin-cd" Big_File_deepin}
|
||||||
|
},
|
||||||
|
/*
|
||||||
|
// https://mirrors.cloud.aliyuncs.com/
|
||||||
|
Ali_ECS_VPC =
|
||||||
|
{
|
||||||
|
"ali-ECS-VPC", "Ali OPSX ECS VPC", "阿里巴巴开源镜像站(ECS VPC网络)", "https://developer.aliyun.com/mirror/",
|
||||||
|
{NotSkip, NA, NA, "https://mirrors.cloud.aliyuncs.com/deepin-cd" Big_File_deepin}
|
||||||
|
},
|
||||||
|
|
||||||
Huawei =
|
// https://mirrors.aliyuncs.com/
|
||||||
{
|
Ali_ECS_classic =
|
||||||
"huawei", "Huawei Cloud", "华为开源镜像站", "https://mirrors.huaweicloud.com/",
|
{
|
||||||
{NotSkip, NA, NA, "https://mirrors.huaweicloud.com/ubuntu-releases" Big_File_ubuntu}
|
"ali-ECS", "Ali OPSX ECS", "阿里巴巴开源镜像站(ECS 经典网络)", "https://developer.aliyun.com/mirror/",
|
||||||
},
|
{NotSkip, NA, NA, "https://mirrors.aliyuncs.com/deepin-cd" Big_File_deepin}
|
||||||
|
},
|
||||||
|
*/
|
||||||
|
|
||||||
Volcengine =
|
Tencent =
|
||||||
{
|
{
|
||||||
"volc", "Volcengine", "火山引擎开源软件镜像站(公网)", "https://developer.volcengine.com/mirror/",
|
"tencent", "Tencent Public", "腾讯软件源(公网)", "https://mirrors.tencent.com/",
|
||||||
{NotSkip, NA, NA, "https://mirrors.volces.com/ubuntu-releases" Big_File_ubuntu}
|
{NotSkip, NA, NA, "https://mirrors.cloud.tencent.com/ubuntu-releases" Big_File_ubuntu}
|
||||||
},
|
},
|
||||||
/*
|
/*
|
||||||
Volceengine_Intra =
|
Tencent_Intra =
|
||||||
{
|
{
|
||||||
"volc-intra", "Volcengine Intranet", "火山引擎开源软件镜像站(内网)",
|
"tencent-intra", "Tencent Intranet", "腾讯软件源(内网)", "https://mirrors.tencent.com/",
|
||||||
"https://developer.volcengine.com/mirror/",
|
{NotSkip, NA, NA, "https://mirrors.cloud.tencentyun.com/ubuntu-releases" Big_File_ubuntu}
|
||||||
"https://mirrors.ivolces.com/ubuntu-releases" Big_File_ubuntu },
|
},
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Netease =
|
Huawei =
|
||||||
{
|
{
|
||||||
"netease", "Netease", "网易开源镜像站", "https://mirrors.163.com/",
|
"huawei", "Huawei Cloud", "华为开源镜像站", "https://mirrors.huaweicloud.com/",
|
||||||
{NotSkip, NA, NA, "https://mirrors.163.com/deepin-cd" Big_File_deepin}
|
{NotSkip, NA, NA, "https://mirrors.huaweicloud.com/ubuntu-releases" Big_File_ubuntu}
|
||||||
},
|
},
|
||||||
|
|
||||||
Sohu =
|
Volcengine =
|
||||||
{
|
{
|
||||||
"sohu", "SOHU", "搜狐开源镜像站", "https://mirrors.sohu.com/",
|
"volc", "Volcengine", "火山引擎开源软件镜像站(公网)", "https://developer.volcengine.com/mirror/",
|
||||||
{NotSkip, NA, NA, "https://mirrors.sohu.com/deepin-cd" Big_File_deepin}
|
{NotSkip, NA, NA, "https://mirrors.volces.com/ubuntu-releases" Big_File_ubuntu}
|
||||||
};
|
},
|
||||||
|
/*
|
||||||
|
Volceengine_Intra =
|
||||||
|
{
|
||||||
|
"volc-intra", "Volcengine Intranet", "火山引擎开源软件镜像站(内网)",
|
||||||
|
"https://developer.volcengine.com/mirror/",
|
||||||
|
"https://mirrors.ivolces.com/ubuntu-releases" Big_File_ubuntu },
|
||||||
|
*/
|
||||||
|
|
||||||
|
Netease =
|
||||||
|
{
|
||||||
|
"netease", "Netease", "网易开源镜像站", "https://mirrors.163.com/",
|
||||||
|
{NotSkip, NA, NA, "https://mirrors.163.com/deepin-cd" Big_File_deepin}
|
||||||
|
},
|
||||||
|
|
||||||
|
Sohu =
|
||||||
|
{
|
||||||
|
"sohu", "SOHU", "搜狐开源镜像站", "https://mirrors.sohu.com/",
|
||||||
|
{NotSkip, NA, NA, "https://mirrors.sohu.com/deepin-cd" Big_File_deepin}
|
||||||
|
};
|
||||||
|
@ -2,50 +2,26 @@
|
|||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* -------------------------------------------------------------
|
* -------------------------------------------------------------
|
||||||
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
||||||
* Contributors : Jialin Lyu <jialinlvcn@aliyun.com>
|
* Contributors : Nil Null <nil@null.org>
|
||||||
* Created On : <2023-09-11>
|
* Created On : <2023-09-11>
|
||||||
* Last Modified : <2025-03-17>
|
* Last Modified : <2024-08-15>
|
||||||
* ------------------------------------------------------------*/
|
* ------------------------------------------------------------*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @update 2023-09-11
|
* @update 2023-09-11
|
||||||
* @note 目前只有一个源
|
* @note 目前只有一个源
|
||||||
* @update 2025-03-17
|
|
||||||
* @note 加入官方仓库
|
|
||||||
* @note SJTUG分为两个镜像站 思源站和致远站 以解决思源站可能无法访问的问题
|
|
||||||
*/
|
*/
|
||||||
|
static Source_t wr_flathub_sources[] =
|
||||||
|
{
|
||||||
|
{&UpstreamProvider, NULL},
|
||||||
|
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/flathub"},
|
||||||
|
};
|
||||||
|
def_sources_n(wr_flathub);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @consult https://mirrors.sjtug.sjtu.edu.cn/docs/flathub
|
* @consult https://mirrors.sjtug.sjtu.edu.cn/docs/flathub
|
||||||
*/
|
*/
|
||||||
static MirrorSite_t UpstreamFlathub =
|
|
||||||
{
|
|
||||||
"Flathub", "Flathub", "Flathub官方仓库", "https://flathub.org/repo",
|
|
||||||
// 没有找到 DaoCloud 合适的下载链接,先随便给一个,以规避 chsrc 自动测速时所有 dockerhub 镜像站都没有测速链接带来的 bug
|
|
||||||
{NotSkip, NA, NA, "https://flathub.org/repo/flathub.gpg"}
|
|
||||||
},
|
|
||||||
|
|
||||||
Sjtug_Siyuan_Flathub =
|
|
||||||
{
|
|
||||||
"sjtu", "SJTUG-siyuan", "上海交通大学思源镜像站Flathub", "https://mirror.sjtu.edu.cn/",
|
|
||||||
{NotSkip, NA, NA, "https://mirror.sjtu.edu.cn/flathub/flathub.gpg"}
|
|
||||||
},
|
|
||||||
|
|
||||||
Sjtug_Zhiyuan_Flathub =
|
|
||||||
{
|
|
||||||
"sjtu", "SJTUG-zhiyuan", "上海交通大学致远镜像站Flathub", "https://mirrors.sjtug.sjtu.edu.cn/",
|
|
||||||
{NotSkip, NA, NA, "https://mirrors.sjtug.sjtu.edu.cn/flathub/flathub.gpg"}
|
|
||||||
};
|
|
||||||
|
|
||||||
static Source_t wr_flathub_sources[] =
|
|
||||||
{
|
|
||||||
{&UpstreamFlathub, "https://flathub.org/repo"},
|
|
||||||
{&Sjtug_Siyuan_Flathub, "https://mirror.sjtu.edu.cn/flathub"},
|
|
||||||
{&Sjtug_Zhiyuan_Flathub, "https://mirrors.sjtug.sjtu.edu.cn/flathub"},
|
|
||||||
};
|
|
||||||
def_sources_n(wr_flathub);
|
|
||||||
|
|
||||||
void
|
void
|
||||||
wr_flathub_setsrc (char *option)
|
wr_flathub_setsrc (char *option)
|
||||||
{
|
{
|
||||||
@ -58,13 +34,6 @@ wr_flathub_setsrc (char *option)
|
|||||||
);
|
);
|
||||||
puts (note);
|
puts (note);
|
||||||
|
|
||||||
char *repo_note = xy_strjoin (1,
|
|
||||||
"Flathub 中部分软件由于重分发授权问题,需要从官方服务器下载,无法使用镜像站加速\n"
|
|
||||||
"比如 NVIDIA 驱动、JetBrains 系列软件等\n"
|
|
||||||
"尝试运行 flatpak remote-modify flathub --url=https://flathub.org/repo"
|
|
||||||
);
|
|
||||||
puts (repo_note);
|
|
||||||
|
|
||||||
char *cmd = xy_2strjoin ("flatpak remote-modify flathub --url=", source.url);
|
char *cmd = xy_2strjoin ("flatpak remote-modify flathub --url=", source.url);
|
||||||
chsrc_run (cmd, RunOpt_Default);
|
chsrc_run (cmd, RunOpt_Default);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user