uBlock/tools/make-assets.sh

34 lines
823 B
Bash
Raw Normal View History

#!/usr/bin/env bash
#
# This script assumes a linux environment
2021-07-31 23:34:25 +02:00
set -e
DES=$1/assets
echo "*** Packaging assets in $DES... "
2016-04-03 20:25:56 +02:00
rm -rf $DES
cp -R ./assets $DES/
mkdir $DES/thirdparties
ASSETS_MAIN=dist/build/uAssets/main
ASSETS_PROD=dist/build/uAssets/prod
cp -R $ASSETS_MAIN/thirdparties/pgl.yoyo.org $DES/thirdparties/
cp -R $ASSETS_MAIN/thirdparties/publicsuffix.org $DES/thirdparties/
cp -R $ASSETS_MAIN/thirdparties/urlhaus-filter $DES/thirdparties/
mkdir -p $DES/thirdparties/easylist
2023-04-27 19:22:15 +02:00
cp $ASSETS_PROD/thirdparties/easylist.txt $DES/thirdparties/easylist/
cp $ASSETS_PROD/thirdparties/easyprivacy.txt $DES/thirdparties/easylist/
mkdir $DES/ublock
cp $ASSETS_PROD/filters/* $DES/ublock/
# Do not include in package
rm $DES/ublock/annoyances.txt
rm $DES/ublock/lan-block.txt
rm $DES/ublock/ubol-filters.txt