Skip to content

Conversation

@zsh2517
Copy link
Member

@zsh2517 zsh2517 commented Apr 25, 2025

添加 debian 12/13,ubuntu 24.04/24.10/25.04,alpine 等新版内容
添加 debian/ubuntu deb822 格式

目前配置方式不太方便支持不同版本不同细节,所以先补充了版本号


TODO:计划重构一下配置生成器逻辑

不同版本有一些细节不同

比如 debian 12 的 non-free-firmware ,而 11 没有(这次 PR 没有做区分,参考 TUNA Debian 帮助可以看到不同)

Debian 12:deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
Debian 11:deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free

增加可选项,而非现在每个版本固定配置

如 使用 HTTPS、源码源、非自由内容 等(如 https://help.mirrors.cernet.edu.cn/debian/ https://mirrors.tuna.tsinghua.edu.cn/help/debian/

更利于维护

现在的配置方式(buildLine + buildBlock)也不是很好维护

与帮助页同步

HIT Debian 帮助 是列举出来的,而且代号顺序也不直观

@zsh2517
Copy link
Member Author

zsh2517 commented Apr 25, 2025

CI 挂了……

目前效果参考 https://3002--main--hit-mirror-web--zsh2517.dev.zsh2517.com/#/home/jobs 没做反代,直接屏蔽掉了。没有列表是正常的)

"Suites: " + version + " " + version + "-updates " + version + "-backports\n" +
"Components: main universe restricted multiverse\n" +
"Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg\n\n" +
"# Types: deb-src\n" +
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个是不是可以写成

Types: deb deb-src

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

对,但是通常好像都不打开 deb-src(很多镜像站默认配置也是注释掉的)

刚刚起了一个 debian 12 docker 测试了一下,如果需要源码源,可以写在一起。文档也提到了

debian doc
ubuntu doc

@zsh2517
Copy link
Member Author

zsh2517 commented Apr 25, 2025

@billchenchina tuna 的帮助页mirrorz-org/mirrorz-docs 似乎一定程度上可以复用,替代我们自己的帮助页,但是 jekyll 好像不太好接入进来。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants