This commit is contained in:
ElonJunior 2024-05-01 01:59:31 +08:00
parent ffcbe79e05
commit 6b664afee7
3 changed files with 5 additions and 5 deletions

View File

@ -19,7 +19,7 @@ jobs:
path: workflow
ref: workflow
- name: Checkout
- name: Checkout ACL4SSR
uses: actions/checkout@v4
with:
repository: ACL4SSR/ACL4SSR
@ -40,7 +40,7 @@ jobs:
NO_SKIP: true
run: |
cd sing-rule || exit 1
wget https://github.com/SagerNet/sing-box/releases/download/v1.8.12/sing-box-1.8.12-linux-amd64.tar.gz -O sing-box.tar.gz && tar zxvf sing-box.tar.gz && mv sing-box-1.8.12-linux-amd64/sing-box .
wget https://github.com/SagerNet/sing-box/releases/download/v1.8.12/sing-box-1.8.12-linux-amd64.tar.gz -O sing-box.tar.gz && tar zxvf sing-box.tar.gz && mv sing-box-1.8.12-linux-amd64/sing-box ./
chmod 755 sing-box convert_srs.sh && ./convert_srs.sh
rm -rf sing-box* convert_* LICENSE README.md

View File

@ -14,7 +14,7 @@ MAP_RULES_KEY_DICT = {
def deug_log(msg: str):
# print(msg)
print(msg)
pass

View File

@ -18,8 +18,8 @@ cd $target_dir
# convert
find . -type f -name "*.json" | while read filename; do
srs_file=${filename%.json}.srs
echo $filename
echo $srs_file
echo "source << {$filename}"
echo "output >> {$srs_file}"
./sing-box rule-set compile $filename -o $srs_file
done