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

28 lines
723 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
2021-07-29 16:06:49 +02:00
git submodule update --depth 1 --init
UASSETS=submodules/uAssets
cp -R $UASSETS/thirdparties/easylist-downloads.adblockplus.org $DES/thirdparties/
cp -R $UASSETS/thirdparties/pgl.yoyo.org $DES/thirdparties/
cp -R $UASSETS/thirdparties/publicsuffix.org $DES/thirdparties/
cp -R $UASSETS/thirdparties/urlhaus-filter $DES/thirdparties/
mkdir $DES/ublock
cp -R $UASSETS/filters/* $DES/ublock/
# Optional filter lists: do not include in package
rm $DES/ublock/annoyances.txt