From 0a32b9597922c739ff0ccdbfdf2e9425df516592 Mon Sep 17 00:00:00 2001 From: loyalsoldier Date: Tue, 10 Dec 2019 16:56:49 +0800 Subject: [PATCH] add more notifications --- generate-rules-dat.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/generate-rules-dat.sh b/generate-rules-dat.sh index 12368ef402..317f4766b1 100644 --- a/generate-rules-dat.sh +++ b/generate-rules-dat.sh @@ -23,6 +23,7 @@ cd $GOPATH/src/$GEOIP_REPO echo -e "${GREEN}>>> building geoip.dat file...${NC}" go run main.go mv geoip.dat $V2RAY_FOLDER/geoip.dat +echo -e "${GREEN}>>> Finished geoip.dat ${NC}" echo -e "${GREEN}>>> downloading $GEOSITE_REPO...${NC}" go get -insecure -v -u -d $GEOSITE_REPO @@ -31,24 +32,25 @@ cd $GOPATH/src/$GEOSITE_REPO echo -e "${GREEN}>>> generating GFWList...${NC}" curl -sSL $getGFWLIST_SCRIPT \ | bash -s -- -l -o $GOPATH/src/$GEOSITE_REPO/data/gfwlist +echo -e "${GREEN}>>> Finished GFWList ${NC}" echo -e "${GREEN}>>> generating Chinese domains list...${NC}" curl -sSL $CHINA_DOMAINS_URL \ | awk -F '/' '{print $2}' \ > $GOPATH/src/$GEOSITE_REPO/data/chinalist +echo -e "${GREEN}>>> Finished Chinalist ${NC}" -echo -e "${GREEN}>>> generating Adblock domains list...${NC}" +echo -e "${GREEN}>>> generating AdBlock domains list...${NC}" curl -sSL $ADBLOCK_DOMAINS_URL \ | grep -Eov '^(\d{1,3}\.){3}\d{1,3}' \ | grep -Eov '^[^.]$' \ | grep -Eo '^(([a-zA-Z0-9]+[a-zA-Z0-9-]*)+\.)+[a-zA-Z0-9]{2,}$' \ > $GOPATH/src/$GEOSITE_REPO/data/adblocklist +echo -e "${GREEN}>>> Finished AdBlocklist ${NC}" echo -e "${GREEN}>>> building geosite.dat file...${NC}" go run main.go mv dlc.dat $V2RAY_FOLDER/geosite.dat +echo -e "${GREEN}>>> Finished geosite.dat ${NC}" echo -e "${GREEN}完成啦!🌈${NC}" - -go version - go get -v -t -d github.com/v2ray/domain-list-community/...