mirror of
https://github.com/wcbing/wcbing-apt-repo.git
synced 2025-12-28 18:18:31 +08:00
doc: add self-hosting tutorial
This commit is contained in:
parent
dd8ef24374
commit
ebd9fc5096
21
README.md
21
README.md
@ -5,7 +5,7 @@
|
|||||||
收录的软件说明:
|
收录的软件说明:
|
||||||
- 发布的是已打包的文件,不接受源码和自行打包。
|
- 发布的是已打包的文件,不接受源码和自行打包。
|
||||||
- 有固定的更新地址,如官网和 Github Releases。
|
- 有固定的更新地址,如官网和 Github Releases。
|
||||||
- 现只收录了 x86_64。
|
- 现只收录了 x86_64,如有需要请参考最后一节自行建立仓库。
|
||||||
|
|
||||||
## 使用现有仓库
|
## 使用现有仓库
|
||||||
|
|
||||||
@ -28,3 +28,22 @@ echo "deb [signed-by=/etc/apt/keyrings/wcbing.gpg] https://deb.wcbing.top /" | s
|
|||||||
|Clash Verge Rev|clash-verge|[Github Releses](https://github.com/clash-verge-rev/clash-verge-rev/releases)|
|
|Clash Verge Rev|clash-verge|[Github Releses](https://github.com/clash-verge-rev/clash-verge-rev/releases)|
|
||||||
|mihomo|mihomo|[Github Releases](https://github.com/MetaCubeX/mihomo/releases)|
|
|mihomo|mihomo|[Github Releases](https://github.com/MetaCubeX/mihomo/releases)|
|
||||||
|hugo|hugo|[Github Releases](https://github.com/gohugoio/hugo/releases)|
|
|hugo|hugo|[Github Releases](https://github.com/gohugoio/hugo/releases)|
|
||||||
|
|
||||||
|
|
||||||
|
## 自行建立仓库
|
||||||
|
|
||||||
|
### 建立仓库
|
||||||
|
|
||||||
|
1. clone 本仓库,进入仓库目录。
|
||||||
|
2. 确认系统安装有 `Requests` Python 库,Debian 系应该自带。
|
||||||
|
2. 运行 `init.py` 初始化。
|
||||||
|
默认只新建 x86_64,需要其他架构请修改其中的SQL语句。
|
||||||
|
3. 创建一个**无密码**的 GPG 密钥对,导出 GPG 公钥文件待用。
|
||||||
|
4. 创建定时任务,定时运行 `update_gen.sh`
|
||||||
|
crontab 样例:0 11,15,19 * * * cd [THIS_DIR] && ./update_gen.sh > ./deb/status.txt
|
||||||
|
|
||||||
|
### 发布与使用
|
||||||
|
|
||||||
|
这个仓库使用了[扁平仓库格式(Flat Repository Format)](https://wiki.debian.org/DebianRepository/Format#Flat_Repository_Format)。建立好后使用 Web 服务器将 `deb` 目录暴露出去即可。
|
||||||
|
|
||||||
|
使用时可参考前面已有的配置,先将第3部提到的 GPG 公钥导入,再新建软件源配置文件。
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user