mirror of
https://github.com/MetaCubeX/meta-rules-dat.git
synced 2024-11-13 04:55:35 +08:00
Update run.yml
This commit is contained in:
parent
6c01578655
commit
c2e8aed0d8
15
.github/workflows/run.yml
vendored
15
.github/workflows/run.yml
vendored
@ -185,21 +185,16 @@ jobs:
|
||||
cd custom || exit 1
|
||||
go run ./ --datapath=../community/data
|
||||
|
||||
|
||||
- name: Add `lite` data
|
||||
run: |
|
||||
cd community || exit 1
|
||||
mkdir -p data-lite
|
||||
curl -sSL https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/ChinaMax/ChinaMax_Domain.txt | sed '/^\s*#/d' | sed '/^[^\.]/ s/^/full: /' | sed 's/^\.\([^.]*\)/\1/' > cn
|
||||
curl -sSL https://raw.githubusercontent.com/Loyalsoldier/domain-list-custom/release/cn.txt | perl -ne '/^(domain):([^:]+)(\n$|:@.+)/ && print "$2\n"' >> cn
|
||||
curl -sSL https://raw.githubusercontent.com/Loyalsoldier/domain-list-custom/release/cn.txt | perl -ne '/^((full|regexp|keyword):[^:]+)(\n$|:@.+)/ && print "$1\n"' | sort --ignore-case -u >> cn
|
||||
sort ./cn | uniq -i > data-lite/cn
|
||||
|
||||
- name: Build geosite-lite.dat file
|
||||
env:
|
||||
NO_SKIP: true
|
||||
run: |
|
||||
cd community || exit 1
|
||||
mkdir -p data-lite
|
||||
curl -sSL https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/ChinaMax/ChinaMax_Domain.txt | sed '/^\s*#/d' | sed '/^[^\.]/ s/^/full:/' | sed 's/^\.\([^.]*\)/\1/' > cn
|
||||
curl -sSL https://raw.githubusercontent.com/Loyalsoldier/domain-list-custom/release/cn.txt | perl -ne '/^(domain):([^:]+)(\n$|:@.+)/ && print "$2\n"' >> cn
|
||||
curl -sSL https://raw.githubusercontent.com/Loyalsoldier/domain-list-custom/release/cn.txt | perl -ne '/^((full|regexp|keyword):[^:]+)(\n$|:@.+)/ && print "$1\n"' | sort --ignore-case -u >> cn
|
||||
sort ./cn | uniq -i > data-lite/cn
|
||||
go run ./ --datapath=./data-lite --outputname geosite-lite.dat
|
||||
|
||||
- name: Checkout SagerNet/sing-geosite
|
||||
|
Loading…
Reference in New Issue
Block a user