mirror of
https://github.com/MetaCubeX/meta-rules-dat.git
synced 2024-12-28 19:24:14 +08:00
commit
9b89c360e2
22
.github/workflows/run.yml
vendored
22
.github/workflows/run.yml
vendored
@ -62,6 +62,7 @@ jobs:
|
||||
|
||||
- name: Get geoip.dat relative files
|
||||
run: |
|
||||
wget -O cn.dat https://github.com/xishang0128/geoip/raw/release/geoip.dat
|
||||
wget https://github.com/Loyalsoldier/geoip/raw/release/geoip.dat
|
||||
|
||||
- name: Generate GFWList domains
|
||||
@ -195,10 +196,8 @@ jobs:
|
||||
NO_SKIP: true
|
||||
run: |
|
||||
cd sing-geosite || exit 1
|
||||
sed -i 's/geosite-v2fly\.db/geosite.db/g' main.go
|
||||
sed -i 's/v2fly\/domain-list-community/Loyalsoldier\/v2ray-rules-dat/g' main.go
|
||||
sed -i 's/dlc/geosite/g' main.go
|
||||
go run -v .
|
||||
cp ../custom/publish/geosite.dat ./
|
||||
go run -v . geosite.dat geosite.db
|
||||
|
||||
- name: Checkout SagerNet/sing-geoip
|
||||
uses: actions/checkout@v3
|
||||
@ -211,17 +210,29 @@ jobs:
|
||||
NO_SKIP: true
|
||||
run: |
|
||||
cd sing-geoip || exit 1
|
||||
sed -i 's/Dreamacro\/maxmind-geoip/Loyalsoldier\/geoip/g' main.go
|
||||
sed -i 's/Dreamacro\/maxmind-geoip/xishang0128\/geoip/g' main.go
|
||||
go run -v .
|
||||
mv geoip.db cn.db
|
||||
|
||||
- name: Build geoip.db
|
||||
env:
|
||||
NO_SKIP: true
|
||||
run: |
|
||||
cd sing-geoip || exit 1
|
||||
sed -i 's/xishang0128\/geoip/Loyalsoldier\/geoip/g' main.go
|
||||
go run -v .
|
||||
|
||||
- name: Move and zip files
|
||||
run: |
|
||||
mkdir -p ./publish/
|
||||
wget https://raw.githubusercontent.com/xishang0128/geoip/release/Country.mmdb -O ./publish/cn.mmdb
|
||||
wget https://raw.githubusercontent.com/Loyalsoldier/geoip/release/Country.mmdb -O ./publish/country.mmdb
|
||||
install -Dp ./cn.dat ./publish/
|
||||
install -Dp ./geoip.dat ./publish/
|
||||
install -Dp ./custom/publish/geosite.dat ./publish/
|
||||
install -Dp ./sing-geosite/geosite.db ./publish/
|
||||
install -Dp ./sing-geoip/geoip.db ./publish/
|
||||
install -Dp ./sing-geoip/cn.db ./publish/
|
||||
curl -sSL https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/ChinaMax/ChinaMax_Domain.yaml | sed '/^\s*#/d' > ./publish/cn_domain.yaml
|
||||
curl -sSL https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Proxy/Proxy_Domain.yaml | sed '/^\s*#/d' > ./publish/proxy.yaml
|
||||
cd ./publish || exit 1
|
||||
@ -234,6 +245,7 @@ jobs:
|
||||
tag: latest
|
||||
deleteOnlyFromDrafts: false
|
||||
|
||||
|
||||
- name: Release and upload assets
|
||||
uses: softprops/action-gh-release@v0.1.6
|
||||
with:
|
||||
|
34
README.md
34
README.md
@ -4,20 +4,33 @@
|
||||
- [Github release](https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/country.mmdb)
|
||||
- [JSdelivr](https://cdn.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/country.mmdb)
|
||||
- [JSdelivr-CF](https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/country.mmdb)
|
||||
- **geoip.dat**
|
||||
|
||||
- **geoip.dat**
|
||||
- [Github release](https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip.dat)
|
||||
- [JSdelivr](https://cdn.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/geoip.dat)
|
||||
- [JSdelivr-CF](https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/geoip.dat)
|
||||
|
||||
- **geoip.db**
|
||||
|
||||
- [Github release](https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip.db)
|
||||
- [JSdelivr](https://cdn.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/geoip.db)
|
||||
- [JSdelivr-CF](https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/geoip.db)
|
||||
|
||||
- **geosite.dat**
|
||||
- **cn.mmdb**
|
||||
- [Github release](https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/cn.mmdb)
|
||||
- [JSdelivr](https://cdn.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/cn.mmdb)
|
||||
- [JSdelivr-CF](https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/cn.mmdb)
|
||||
|
||||
- **cn.dat**
|
||||
- [Github release](https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/cn.dat)
|
||||
- [JSdelivr](https://cdn.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/cn.dat)
|
||||
- [JSdelivr-CF](https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/cn.dat)
|
||||
|
||||
- **cn.db**
|
||||
- [Github release](https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/cn.db)
|
||||
- [JSdelivr](https://cdn.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/cn.db)
|
||||
- [JSdelivr-CF](https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/cn.db)
|
||||
|
||||
- **geosite.dat**
|
||||
- [Github release](https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geosite.dat)
|
||||
- [JSdelivr](https://cdn.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/geosite.dat)
|
||||
- [JSdelivr-CF](https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/geosite.dat)
|
||||
@ -26,11 +39,13 @@
|
||||
- [Github release](https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geosite.db)
|
||||
- [JSdelivr](https://cdn.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/geosite.db)
|
||||
- [JSdelivr-CF](https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/geosite.db)
|
||||
|
||||
- **rule-set**
|
||||
- **cn_domain.yaml**
|
||||
- [Github release](https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/cn_domain.yaml)
|
||||
- [JSdelivr](https://cdn.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/cn_domain.yaml)
|
||||
- [JSdelivr-CF](https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/cn_domain.yaml)
|
||||
|
||||
- **proxy.yaml**
|
||||
- [Github release](https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/proxy.yaml)
|
||||
- [JSdelivr](https://cdn.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/proxy.yaml)
|
||||
@ -48,6 +63,19 @@
|
||||
- `geoip:telegram`
|
||||
- `geoip:twitter`
|
||||
|
||||
### country.mmdb,geoip.dat,geoip.db
|
||||
|
||||
国家仅包含CN,精简体积,替换一些类别
|
||||
- 新增类别(方便有特殊需求的用户使用):
|
||||
- `geoip:cloudflare`
|
||||
- `geoip:cloudfront`
|
||||
- `geoip:facebook`
|
||||
- `geoip:bilibili`
|
||||
- `geoip:google`
|
||||
- `geoip:netflix`
|
||||
- `geoip:telegram`
|
||||
- `geoip:twitter`
|
||||
|
||||
### geosite.dat,geosite.db
|
||||
|
||||
用法同 [Loyalsoldier/v2ray-rules-dat](https://github.com/Loyalsoldier/v2ray-rules-dat)
|
||||
|
66919
temp-direct.txt
66919
temp-direct.txt
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user