Publish apple-cn.txt & google-cn.txt to release branch

This commit is contained in:
Loyalsoldier 2020-08-13 14:34:45 +08:00 committed by GitHub
parent 1db68c7c32
commit 56a1f9a3e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,10 +149,12 @@ jobs:
cp $GOPATH/src/$GEOSITE_REPO/data/geolocation-\!cn proxy-list.txt cp $GOPATH/src/$GEOSITE_REPO/data/geolocation-\!cn proxy-list.txt
cp $GOPATH/src/$GEOSITE_REPO/data/category-ads-all reject-list.txt cp $GOPATH/src/$GEOSITE_REPO/data/category-ads-all reject-list.txt
- name: Add `google-cn` and `apple-cn` sub-lists for custom routing settings for third-party users due to accessibility in China mainland - name: Add `google-cn` and `apple-cn` lists for custom routing settings due to accessibility in China Mainland
run: | run: |
curl -sSL $GOOGLE_DOMAINS_URL | perl -ne '/^server=\/([^\/]+)\// && print "$1\n"' > $GOPATH/src/$GEOSITE_REPO/data/google-cn curl -sSL $GOOGLE_DOMAINS_URL | perl -ne '/^server=\/([^\/]+)\// && print "$1\n"' > $GOPATH/src/$GEOSITE_REPO/data/google-cn
curl -sSL $GOOGLE_DOMAINS_URL | perl -ne '/^server=\/([^\/]+)\// && print "$1\n"' > google-cn.txt
curl -sSL $APPLE_DOMAINS_URL | perl -ne '/^server=\/([^\/]+)\// && print "$1\n"' > $GOPATH/src/$GEOSITE_REPO/data/apple-cn curl -sSL $APPLE_DOMAINS_URL | perl -ne '/^server=\/([^\/]+)\// && print "$1\n"' > $GOPATH/src/$GEOSITE_REPO/data/apple-cn
curl -sSL $APPLE_DOMAINS_URL | perl -ne '/^server=\/([^\/]+)\// && print "$1\n"' > apple-cn.txt
- name: Build geosite.dat file - name: Build geosite.dat file
run: | run: |
@ -164,6 +166,7 @@ jobs:
install -Dp dlc.dat ./publish/geosite.dat install -Dp dlc.dat ./publish/geosite.dat
install -p {proxy,direct,reject}-tld-list.txt ./publish/ install -p {proxy,direct,reject}-tld-list.txt ./publish/
install -p {proxy,direct,reject}-list.txt ./publish/ install -p {proxy,direct,reject}-list.txt ./publish/
install -p {apple,google}-cn.txt ./publish/
cd ./publish cd ./publish
zip rules.zip {proxy,direct,reject}-list.txt geoip.dat geosite.dat zip rules.zip {proxy,direct,reject}-list.txt geoip.dat geosite.dat
sha256sum geoip.dat > geoip.dat.sha256sum sha256sum geoip.dat > geoip.dat.sha256sum