1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-07 03:12:33 +01:00
uBlock/tools/make-assets.sh

35 lines
1.1 KiB
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
2023-04-28 23:02:51 +02:00
cp $ASSETS_PROD/filters/badlists.txt $DES/ublock/badlists.txt
cp $ASSETS_PROD/filters/badware.txt $DES/ublock/badware.txt
cp $ASSETS_PROD/filters/filters.min.txt $DES/ublock/filters.min.txt
cp $ASSETS_PROD/filters/filters-mobile.txt $DES/ublock/filters-mobile.txt
cp $ASSETS_PROD/filters/privacy.min.txt $DES/ublock/privacy.min.txt
cp $ASSETS_PROD/filters/quick-fixes.txt $DES/ublock/quick-fixes.txt
cp $ASSETS_PROD/filters/unbreak.txt $DES/ublock/unbreak.txt