mirror of
https://github.com/KaringX/karing-ruleset.git
synced 2025-06-13 07:54:14 +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
|
path: workflow
|
||||||
ref: workflow
|
ref: workflow
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout ACL4SSR
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: ACL4SSR/ACL4SSR
|
repository: ACL4SSR/ACL4SSR
|
||||||
@ -40,7 +40,7 @@ jobs:
|
|||||||
NO_SKIP: true
|
NO_SKIP: true
|
||||||
run: |
|
run: |
|
||||||
cd sing-rule || exit 1
|
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
|
chmod 755 sing-box convert_srs.sh && ./convert_srs.sh
|
||||||
rm -rf sing-box* convert_* LICENSE README.md
|
rm -rf sing-box* convert_* LICENSE README.md
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ MAP_RULES_KEY_DICT = {
|
|||||||
|
|
||||||
|
|
||||||
def deug_log(msg: str):
|
def deug_log(msg: str):
|
||||||
# print(msg)
|
print(msg)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
@ -18,8 +18,8 @@ cd $target_dir
|
|||||||
# convert
|
# convert
|
||||||
find . -type f -name "*.json" | while read filename; do
|
find . -type f -name "*.json" | while read filename; do
|
||||||
srs_file=${filename%.json}.srs
|
srs_file=${filename%.json}.srs
|
||||||
echo $filename
|
echo "source << {$filename}"
|
||||||
echo $srs_file
|
echo "output >> {$srs_file}"
|
||||||
./sing-box rule-set compile $filename -o $srs_file
|
./sing-box rule-set compile $filename -o $srs_file
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user