1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-19 03:05:22 +02:00
uBlock/tools/make-assets.sh
2017-01-18 13:36:24 -05:00

30 lines
907 B
Bash
Executable File

#!/usr/bin/env bash
#
# This script assumes a linux environment
DES=$1/assets
printf "*** Packaging assets in $DES... "
if [ -n "${TRAVIS_TAG}" ]; then
pushd .. > /dev/null
git clone https://github.com/uBlockOrigin/uAssets.git
popd > /dev/null
fi
rm -rf $DES
mkdir $DES
cp ./assets/assets.json $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/
echo "done."