Merge pull request #8 from xishang0128/master

add
This commit is contained in:
汐殇 2023-04-10 17:17:19 +08:00 committed by GitHub
commit f8e2cb1960
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 20 deletions

View File

@ -62,7 +62,7 @@ jobs:
- name: Get geoip.dat relative files
run: |
wget -O cn.dat https://github.com/xishang0128/geoip/raw/release/geoip.dat
wget -O geoip-lite.dat https://github.com/xishang0128/geoip/raw/release/geoip.dat
wget https://github.com/Loyalsoldier/geoip/raw/release/geoip.dat
- name: Generate GFWList domains
@ -228,14 +228,14 @@ jobs:
repository: SagerNet/sing-geoip
path: sing-geoip
- name: Build geoip.db file
- name: Build geoip-lite.db file
env:
NO_SKIP: true
run: |
cd sing-geoip || exit 1
sed -i 's/Dreamacro\/maxmind-geoip/xishang0128\/geoip/g' main.go
go run -v .
mv geoip.db cn.db
mv geoip.db geoip-lite.db
- name: Build geoip.db
env:
@ -248,16 +248,16 @@ jobs:
- 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/xishang0128/geoip/release/Country.mmdb -O ./publish/country-lite.mmdb
wget https://raw.githubusercontent.com/Loyalsoldier/geoip/release/Country.mmdb -O ./publish/country.mmdb
install -Dp ./cn.dat ./publish/
install -Dp ./geoip-lite.dat ./publish/
install -Dp ./geoip.dat ./publish/
install -Dp ./custom/publish/geosite.dat ./publish/
install -Dp ./sing-geosite/geosite.db ./publish/
install -Dp ./community/geosite-lite.dat ./publish/
install -Dp ./sing-geosite/geosite-lite.db ./publish/
install -Dp ./sing-geoip/geoip.db ./publish/
install -Dp ./sing-geoip/cn.db ./publish/
install -Dp ./sing-geoip/geoip-lite.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

View File

@ -15,20 +15,20 @@
- [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)
- **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)
- **country-lite.mmdb**
- [Github release](https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/country-lite.mmdb)
- [JSdelivr](https://cdn.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/country-lite.mmdb)
- [JSdelivr-CF](https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/country-lite.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)
- **geoip-lite.dat**
- [Github release](https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip-lite.dat)
- [JSdelivr](https://cdn.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/geoip-lite.dat)
- [JSdelivr-CF](https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/geoip-lite.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)
- **geoip-lite.db**
- [Github release](https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip-lite.db)
- [JSdelivr](https://cdn.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/geoip-lite.db)
- [JSdelivr-CF](https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/geoip-lite.db)
- **geosite.dat**
- [Github release](https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geosite.dat)
@ -64,9 +64,9 @@
- `geoip:telegram`
- `geoip:twitter`
## **cn.mmdb,cn.dat,cn.db 内容**
## **geoip-lite.mmdb,geoip-lite.dat,geoip-lite.db 内容**
国家仅包含CN,精简体积,替换一些类别
国家仅包含CN/JP,精简体积,替换一些类别
- 新增类别(方便有特殊需求的用户使用):
- `geoip:cloudflare`
- `geoip:cloudfront`