feat: add one-click dist release script

This commit is contained in:
袁震
2026-04-06 14:14:54 +08:00
parent e83bb70c9c
commit e812cb67de
2 changed files with 46 additions and 3 deletions
+9 -3
View File
@@ -1,4 +1,4 @@
# gitea-shunt-rules
# shunt-rules-builder
基于 **Surge 单源** 的规则生成器:
@@ -27,7 +27,7 @@
## 快速开始
```bash
cd /Users/yuan/Desktop/workspaces/docker/pve/gitea-shunt-rules
cd /Users/yuan/Desktop/workspaces/docker/pve/shunt-rules-builder
```
1. 同步上游 Surge 全量源到本地缓存:
@@ -48,6 +48,12 @@ python3 main.py --config config.json
python3 main.py --config config.json --names Apple,YouTube
```
4. 一键发布 `dist/` 到 release 仓库:
```bash
bash scripts/release_dist.sh
```
## 配置说明
默认配置文件:`config.json`(已启用本地源模式)。
@@ -117,7 +123,7 @@ python3 main.py --config config.json --names Apple,YouTube
## 目录结构
```text
gitea-shunt-rules/
shunt-rules-builder/
├── main.py
├── config.json
├── config.example.toml