chore: reorganize repository layout and optimize README

This commit is contained in:
袁震
2026-04-06 14:43:19 +08:00
parent a48cd45dbd
commit 5572828d15
9 changed files with 139 additions and 153 deletions
+11 -11
View File
@@ -25,13 +25,13 @@ jobs:
- name: Prepare config
shell: bash
run: |
if [ -f config.toml ]; then
echo "Use existing config.toml"
elif [ -f config.json ]; then
echo "Use existing config.json"
elif [ -f config.example.toml ]; then
cp config.example.toml config.toml
echo "Generated config.toml from example"
if [ -f configs/config.toml ]; then
echo "Use existing configs/config.toml"
elif [ -f configs/config.json ]; then
echo "Use existing configs/config.json"
elif [ -f configs/examples/config.example.toml ]; then
cp configs/examples/config.example.toml configs/config.toml
echo "Generated configs/config.toml from example"
else
echo "No config file found" >&2
exit 1
@@ -43,9 +43,9 @@ jobs:
UPSTREAM_REF: ${{ vars.UPSTREAM_REF }}
run: |
UPSTREAM_REF="${UPSTREAM_REF:-master}"
bash scripts/sync_surge_full.sh
if [ -f config.toml ]; then
python3 main.py --config config.toml
bash tools/sync_surge_full.sh
if [ -f configs/config.toml ]; then
python3 src/rulegen.py --config configs/config.toml
else
python3 main.py --config config.json
python3 src/rulegen.py --config configs/config.json
fi