mirror of
https://github.com/KaringX/karing-ruleset.git
synced 2025-06-12 04:24:13 +08:00
add log
This commit is contained in:
parent
ffcbe79e05
commit
6b664afee7
4
.github/workflows/run.yml
vendored
4
.github/workflows/run.yml
vendored
@ -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
|
||||
|
||||
|
@ -14,7 +14,7 @@ MAP_RULES_KEY_DICT = {
|
||||
|
||||
|
||||
def deug_log(msg: str):
|
||||
# print(msg)
|
||||
print(msg)
|
||||
pass
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user