uBlock/tools/make-assets.sh
2016-04-03 14:25:56 -04:00

31 lines
1 KiB
Bash
Executable file

#!/usr/bin/env bash
#
# This script assumes a linux environment
DES=$1/assets
echo "*** uBlock0.chromium: packaging assets in $DES"
if [ -n "${TRAVIS_TAG}" ]; then
pushd ..
git clone https://github.com/uBlockOrigin/uAssets.git
popd
fi
rm -rf $DES
mkdir $DES
mkdir $DES/thirdparties
cp -R ../uAssets/thirdparties/easylist-downloads.adblockplus.org $DES/thirdparties/
cp -R ../uAssets/thirdparties/mirror1.malwaredomains.com $DES/thirdparties/
cp -R ../uAssets/thirdparties/pgl.yoyo.org $DES/thirdparties/
cp -R ../uAssets/thirdparties/publicsuffix.org $DES/thirdparties/
cp -R ../uAssets/thirdparties/www.malwaredomainlist.com $DES/thirdparties/
mkdir $DES/ublock
cp -R ../uAssets/filters/* $DES/ublock/
cp -R ./assets/ublock/filter-lists.json $DES/ublock/
cp ../uAssets/checksums/ublock0.txt $DES/checksums.txt
echo "*** uBlock0.chromium: packaging assets: done."