2021-12-12 10:51:39 +00:00
|
|
|
#!/bin/bash
|
2021-08-22 04:30:13 +00:00
|
|
|
MAKE_DIR=$(mktemp -d)
|
|
|
|
|
|
|
|
git clone https://github.com/minoplhy/filters-converter /filters-converter
|
|
|
|
git clone https://github.com/minoplhy/filters /aniki
|
2021-08-22 04:58:29 +00:00
|
|
|
mkdir $MAKE_DIR/output
|
2021-08-22 04:30:13 +00:00
|
|
|
|
|
|
|
wget -O $MAKE_DIR/abpvn_raw.txt https://abpvn.com/android/abpvn.txt
|
|
|
|
python3 /filters-converter/to-rpz/host_rpz_argv.py $MAKE_DIR/abpvn_raw.txt $MAKE_DIR/output/abpvn_rpz.txt
|
|
|
|
|
|
|
|
wget -O $MAKE_DIR/hosts-database-full-alive_raw.txt https://tgc.cloud/downloads/hosts.alive.txt
|
|
|
|
python3 /filters-converter/to-rpz/host_rpz_argv.py $MAKE_DIR/hosts-database-full-alive_raw.txt $MAKE_DIR/output/hosts-database-full-alive_rpz.txt
|
|
|
|
|
|
|
|
wget -O $MAKE_DIR/hostsVN-all_raw.txt https://github.com/bigdargon/hostsVN/raw/master/filters/domain-adservers-all.txt
|
|
|
|
python3 /filters-converter/to-rpz/domains_rpz_argv.py $MAKE_DIR/hostsVN-all_raw.txt $MAKE_DIR/output/hostsVN-all_rpz.txt
|
|
|
|
|
|
|
|
wget -O $MAKE_DIR/someonewhocares_raw.txt https://someonewhocares.org/hosts/hosts
|
|
|
|
python3 /filters-converter/to-rpz/host_rpz_argv.py $MAKE_DIR/someonewhocares_raw.txt $MAKE_DIR/output/someonewhocares_rpz.txt
|
|
|
|
|
|
|
|
wget -O $MAKE_DIR/stevenblack_raw.txt https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
|
|
|
|
python3 /filters-converter/to-rpz/host_rpz_argv.py $MAKE_DIR/stevenblack_raw.txt $MAKE_DIR/output/stevenblack_rpz.txt
|
|
|
|
|
2021-08-29 13:18:57 +00:00
|
|
|
wget -O $MAKE_DIR/stevenblack-f_raw.txt https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts
|
|
|
|
python3 /filters-converter/to-rpz/host_rpz_argv.py $MAKE_DIR/stevenblack-f_raw.txt $MAKE_DIR/output/stevenblack-f_rpz.txt
|
2021-08-22 04:30:13 +00:00
|
|
|
|
|
|
|
wget -O $MAKE_DIR/adguard-dns_raw.txt https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_15_DnsFilter/filter.txt
|
2021-08-22 12:37:07 +00:00
|
|
|
python3 /filters-converter/to-rpz/adguard-host_rpz_argv.py $MAKE_DIR/adguard-dns_raw.txt $MAKE_DIR/output/Adguard-dns_rpz.txt
|
2021-08-22 04:30:13 +00:00
|
|
|
|
|
|
|
wget -O $MAKE_DIR/cname-tracker_raw.txt https://github.com/AdguardTeam/cname-trackers/raw/master/combined_disguised_trackers.txt
|
2021-08-22 12:37:07 +00:00
|
|
|
python3 /filters-converter/to-rpz/adguard-host_rpz_argv.py $MAKE_DIR/cname-tracker_raw.txt $MAKE_DIR/output/Adguard-cname-tracker_rpz.txt
|
2021-08-22 04:30:13 +00:00
|
|
|
|
|
|
|
wget -O $MAKE_DIR/cname-original_raw.txt https://github.com/AdguardTeam/cname-trackers/raw/master/combined_original_trackers.txt
|
2021-08-22 12:37:07 +00:00
|
|
|
python3 /filters-converter/to-rpz/adguard-host-wildcards_rpz_argv.py $MAKE_DIR/cname-original_raw.txt $MAKE_DIR/output/Adguard-cname-original_rpz.txt
|
2021-08-22 04:30:13 +00:00
|
|
|
|
|
|
|
wget -O $MAKE_DIR/adguard-exceptions_raw.txt https://github.com/AdguardTeam/AdGuardSDNSFilter/raw/master/Filters/exceptions.txt
|
2021-08-22 12:37:07 +00:00
|
|
|
python3 /filters-converter/to-rpz/adguard-host_rpz_argv.py $MAKE_DIR/adguard-exceptions_raw.txt $MAKE_DIR/output/Adguard-exceptions_rpz.txt
|
2021-08-22 04:30:13 +00:00
|
|
|
|
2021-12-12 10:51:39 +00:00
|
|
|
wget -O $MAKE_DIR/adguard-base_raw.txt https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_2_English/filter.txt
|
|
|
|
python3 /filters-converter/to-rpz/adguard-host_rpz_argv.py $MAKE_DIR/adguard-base_raw.txt $MAKE_DIR/output/Adguard-Base_rpz.txt
|
|
|
|
|
|
|
|
wget -O $MAKE_DIR/adguard-tracking_raw.txt https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_3_Spyware/filter.txt
|
|
|
|
python3 /filters-converter/to-rpz/adguard-host_rpz_argv.py $MAKE_DIR/adguard-tracking_raw.txt $MAKE_DIR/output/Adguard-Tracking_rpz.txt
|
|
|
|
|
|
|
|
wget -O $MAKE_DIR/adguard-mobile_raw.txt https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_11_Mobile/filter.txt
|
|
|
|
python3 /filters-converter/to-rpz/adguard-host_rpz_argv.py $MAKE_DIR/adguard-mobile_raw.txt $MAKE_DIR/output/Adguard-Mobile_rpz.txt
|
|
|
|
|
2021-08-22 05:40:00 +00:00
|
|
|
mkdir $MAKE_DIR/Bromite
|
|
|
|
cd $MAKE_DIR/Bromite
|
2022-05-24 12:23:28 +00:00
|
|
|
wget https://github.com/bromite/bromite/releases/download/101.0.4951.69/ruleset_converter
|
2021-08-22 06:05:10 +00:00
|
|
|
chmod +x ruleset_converter
|
2021-08-22 06:23:19 +00:00
|
|
|
curl https://raw.githubusercontent.com/minoplhy/Bromite-custom-adblock/main/wget-all-filters.txt | bash
|
2021-08-27 05:53:42 +00:00
|
|
|
curl https://raw.githubusercontent.com/minoplhy/Bromite-custom-adblock/main/lazy-converter.txt | bash >/dev/null
|
2021-08-22 05:40:00 +00:00
|
|
|
cp filters.dat $MAKE_DIR/output/filters.dat
|
|
|
|
|
2021-08-22 04:30:13 +00:00
|
|
|
cd /aniki
|
|
|
|
echo $API_TOKEN_GITHUB > token.txt
|
|
|
|
gh auth login --with-token < token.txt
|
|
|
|
rm token.txt
|
2021-08-27 05:08:21 +00:00
|
|
|
gh release delete "filters-build" -y
|
2021-08-27 06:40:22 +00:00
|
|
|
git tag -d "filters-build"
|
|
|
|
git push origin :"filters-build"
|
2021-08-29 13:18:57 +00:00
|
|
|
gh release create filters-build -t "FILTERS-BUILD IN RELEASES" $MAKE_DIR/output/* -F /aniki/Resources/Releases_filters-build.md
|