mirror of
https://github.com/MetaCubeX/meta-rules-dat.git
synced 2024-11-10 03:55:35 +08:00
Update generate-rules-dat.sh
This commit is contained in:
parent
5840608a27
commit
414e79aaa4
@ -29,13 +29,13 @@ cd $GOPATH/src/$GEOSITE_REPO
|
|||||||
|
|
||||||
echo -e "${GREEN}>>> generating GFWList...${NC}"
|
echo -e "${GREEN}>>> generating GFWList...${NC}"
|
||||||
curl -sSL $getGFWLIST_SCRIPT \
|
curl -sSL $getGFWLIST_SCRIPT \
|
||||||
| bash -s -- -l -o $GOPATH/src/$GEOSITE_REPO/data/gfwlist
|
| bash -s -- -l -o ./data/gfwlist
|
||||||
echo -e "${GREEN}>>> Finished GFWList ${NC}"
|
echo -e "${GREEN}>>> Finished GFWList ${NC}"
|
||||||
|
|
||||||
echo -e "${GREEN}>>> generating Chinese domains list...${NC}"
|
echo -e "${GREEN}>>> generating Chinese domains list...${NC}"
|
||||||
curl -sSL $CHINA_DOMAINS_URL \
|
curl -sSL $CHINA_DOMAINS_URL \
|
||||||
| awk -F '/' '{print $2}' \
|
| awk -F '/' '{print $2}' \
|
||||||
> $GOPATH/src/$GEOSITE_REPO/data/chinalist
|
> ./data/chinalist
|
||||||
echo -e "${GREEN}>>> Finished Chinalist ${NC}"
|
echo -e "${GREEN}>>> Finished Chinalist ${NC}"
|
||||||
|
|
||||||
echo -e "${GREEN}>>> building geosite.dat file...${NC}"
|
echo -e "${GREEN}>>> building geosite.dat file...${NC}"
|
||||||
@ -43,4 +43,10 @@ go run main.go
|
|||||||
mv dlc.dat $V2RAY_FOLDER/geosite.dat
|
mv dlc.dat $V2RAY_FOLDER/geosite.dat
|
||||||
echo -e "${GREEN}>>> Finished geosite.dat ${NC}"
|
echo -e "${GREEN}>>> Finished geosite.dat ${NC}"
|
||||||
|
|
||||||
|
echo ">>>>>>>>>>>>>>>>>>>>>>>>"
|
||||||
|
ls -lah ./data
|
||||||
|
echo ">>>>>>>>>>>>>>>>>>>>>>>>"
|
||||||
|
ls -lah $V2RAY_FOLDER
|
||||||
|
echo ">>>>>>>>>>>>>>>>>>>>>>>>"
|
||||||
|
|
||||||
echo -e "${GREEN}完成啦!🌈${NC}"
|
echo -e "${GREEN}完成啦!🌈${NC}"
|
||||||
|
Loading…
Reference in New Issue
Block a user