mirror of
https://github.com/MetaCubeX/meta-rules-dat.git
synced 2024-11-10 03:55:35 +08:00
update
This commit is contained in:
parent
ebc8329e9b
commit
35af46280b
49
.github/workflows/run.yml
vendored
49
.github/workflows/run.yml
vendored
@ -224,47 +224,56 @@ jobs:
|
|||||||
NO_SKIP: true
|
NO_SKIP: true
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ./sing-rule/geo
|
mkdir -p ./sing-rule/geo
|
||||||
cp ./geoip.dat ./geosite.db ./resouces/convert.sh ./sing-rule/geo/
|
cp ./geoip.dat ./custom/publish/geosite.dat ./sing-rule/geo/
|
||||||
cd ./sing-rule/geo
|
cd ./sing-rule/geo
|
||||||
wget https://github.com/SagerNet/sing-box/releases/download/v1.8.0-alpha.1/sing-box-1.8.0-alpha.1-linux-amd64.tar.gz -O sing-box.tar.gz && tar zxvf sing-box.tar.gz && mv sing-box-1.8.0-alpha.1-linux-amd64/sing-box ./ && rm -r sing-box-1.8.0-alpha.1-linux-amd64
|
mkdir -p geosite && mkdir -p geoip
|
||||||
wget https://github.com/IrineSistiana/mosdns/releases/download/v4.5.3/mosdns-linux-amd64.zip -O mosdns.zip && unzip mosdns.zip
|
wget https://github.com/xishang0128/convert/releases/download/Prerelease-main/convert-linux-amd64
|
||||||
chmod 755 mosdns sing-box convert.sh && ./convert.sh
|
chmod 755 convert-linux-amd64
|
||||||
rm mosdns* sing-box* convert.sh geoip.dat geosite.db LICENSE README.md config.yaml
|
./convert-linux-amd64 geosite -f ./geosite.dat -o ./geosite -t sing-box
|
||||||
|
./convert-linux-amd64 geoip -f ./geoip.dat -o ./geoip -t sing-box
|
||||||
|
rm convert-linux-amd64 geoip.dat geosite.dat
|
||||||
|
|
||||||
- name: Convert geo-lite to sing-rule-set
|
- name: Convert geo-lite to sing-rule-set
|
||||||
env:
|
env:
|
||||||
NO_SKIP: true
|
NO_SKIP: true
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ./sing-rule/geo-lite
|
mkdir -p ./sing-rule/geo-lite
|
||||||
cp ./geoip-lite.dat ./sing-rule/geo-lite/geoip.dat && cp ./geosite-lite.db ./sing-rule/geo-lite/geosite.db && cp ./resouces/convert.sh ./sing-rule/geo-lite/
|
cp ./geoip-lite.dat ./sing-rule/geo-lite/geoip.dat && cp ./community/geosite-lite.dat ./sing-rule/geo-lite/geosite.dat
|
||||||
cd ./sing-rule/geo-lite
|
cd ./sing-rule/geo-lite
|
||||||
wget https://github.com/SagerNet/sing-box/releases/download/v1.8.0-alpha.1/sing-box-1.8.0-alpha.1-linux-amd64.tar.gz -O sing-box.tar.gz && tar zxvf sing-box.tar.gz && mv sing-box-1.8.0-alpha.1-linux-amd64/sing-box ./ && rm -r sing-box-1.8.0-alpha.1-linux-amd64
|
mkdir -p geosite && mkdir -p geoip
|
||||||
wget https://github.com/IrineSistiana/mosdns/releases/download/v4.5.3/mosdns-linux-amd64.zip -O mosdns.zip && unzip mosdns.zip
|
wget https://github.com/xishang0128/convert/releases/download/Prerelease-main/convert-linux-amd64
|
||||||
chmod 755 mosdns sing-box convert.sh && ./convert.sh
|
chmod 755 convert-linux-amd64
|
||||||
rm mosdns* sing-box* convert.sh geoip.dat geosite.db LICENSE README.md config.yaml
|
./convert-linux-amd64 geosite -f ./geosite.dat -o ./geosite -t sing-box
|
||||||
|
./convert-linux-amd64 geoip -f ./geoip.dat -o ./geoip -t sing-box
|
||||||
|
rm convert-linux-amd64 geoip.dat geosite.dat
|
||||||
|
|
||||||
- name: Convert geo to meta-rule-set
|
- name: Convert geo to meta-rule-set
|
||||||
env:
|
env:
|
||||||
NO_SKIP: true
|
NO_SKIP: true
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ./meta-rule/geo
|
mkdir -p ./meta-rule/geo
|
||||||
cp ./geoip.dat ./custom/publish/geosite.dat ./resouces/convert-clash.sh ./meta-rule/geo/
|
cp ./geoip.dat ./custom/publish/geosite.dat ./meta-rule/geo/
|
||||||
cd ./meta-rule/geo
|
cd ./meta-rule/geo
|
||||||
wget https://github.com/IrineSistiana/mosdns/releases/download/v4.5.3/mosdns-linux-amd64.zip -O mosdns.zip && unzip mosdns.zip
|
mkdir -p geosite/classical && mkdir -p geoip/classical
|
||||||
chmod 755 mosdns convert-clash.sh && ./convert-clash.sh
|
wget https://github.com/xishang0128/convert/releases/download/Prerelease-main/convert-linux-amd64
|
||||||
rm mosdns* convert-clash.sh geoip.dat geosite.dat LICENSE README.md config.yaml
|
chmod 755 convert-linux-amd64
|
||||||
|
./convert-linux-amd64 geosite -f ./geosite.dat -o ./geosite
|
||||||
|
./convert-linux-amd64 geoip -f ./geoip.dat -o ./geoip
|
||||||
|
rm convert-linux-amd64 geoip.dat geosite.dat
|
||||||
|
|
||||||
- name: Convert geo-lite to meta-rule-set
|
- name: Convert geo-lite to meta-rule-set
|
||||||
env:
|
env:
|
||||||
NO_SKIP: true
|
NO_SKIP: true
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ./meta-rule/geo-lite
|
mkdir -p ./meta-rule/geo-lite
|
||||||
cp ./geoip-lite.dat ./meta-rule/geo-lite/geoip.dat && cp ./community/geosite-lite.dat ./meta-rule/geo-lite/geosite.dat && cp ./resouces/convert-clash.sh ./meta-rule/geo-lite/
|
cp ./geoip-lite.dat ./meta-rule/geo-lite/geoip.dat && cp ./community/geosite-lite.dat ./meta-rule/geo-lite/geosite.dat
|
||||||
cd ./meta-rule/geo-lite
|
cd ./meta-rule/geo-lite
|
||||||
wget https://github.com/IrineSistiana/mosdns/releases/download/v4.5.3/mosdns-linux-amd64.zip -O mosdns.zip && unzip mosdns.zip
|
mkdir -p geosite/classical && mkdir -p geoip/classical
|
||||||
chmod 755 mosdns convert-clash.sh && ./convert-clash.sh
|
wget https://github.com/xishang0128/convert/releases/download/Prerelease-main/convert-linux-amd64
|
||||||
rm mosdns* convert-clash.sh geoip.dat geosite.dat LICENSE README.md config.yaml
|
chmod 755 convert-linux-amd64
|
||||||
|
./convert-linux-amd64 geosite -f ./geosite.dat -o ./geosite
|
||||||
|
./convert-linux-amd64 geoip -f ./geoip.dat -o ./geoip
|
||||||
|
rm convert-linux-amd64 geoip.dat geosite.dat
|
||||||
|
|
||||||
# - name: Convert bm7-rule-set to sing-rule-set
|
# - name: Convert bm7-rule-set to sing-rule-set
|
||||||
# env:
|
# env:
|
||||||
@ -340,7 +349,6 @@ jobs:
|
|||||||
- name: Git push assets to "sing-rule" branch
|
- name: Git push assets to "sing-rule" branch
|
||||||
run: |
|
run: |
|
||||||
cd sing-rule || exit 1
|
cd sing-rule || exit 1
|
||||||
ls
|
|
||||||
git init
|
git init
|
||||||
git config --local user.name "github-actions[bot]"
|
git config --local user.name "github-actions[bot]"
|
||||||
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
@ -353,7 +361,6 @@ jobs:
|
|||||||
- name: Git push assets to "meta-rule" branch
|
- name: Git push assets to "meta-rule" branch
|
||||||
run: |
|
run: |
|
||||||
cd meta-rule || exit 1
|
cd meta-rule || exit 1
|
||||||
ls
|
|
||||||
git init
|
git init
|
||||||
git config --local user.name "github-actions[bot]"
|
git config --local user.name "github-actions[bot]"
|
||||||
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
|
Loading…
Reference in New Issue
Block a user