2016-04-03 19:07:46 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
#
|
|
|
|
# This script assumes a linux environment
|
|
|
|
|
|
|
|
DES=$1/assets
|
|
|
|
|
2016-04-03 23:45:02 +02:00
|
|
|
printf "*** Packaging assets in $DES... "
|
2016-04-03 19:07:46 +02:00
|
|
|
|
2016-04-03 20:25:56 +02:00
|
|
|
if [ -n "${TRAVIS_TAG}" ]; then
|
2016-04-04 00:06:19 +02:00
|
|
|
pushd .. > /dev/null
|
2016-04-03 20:25:56 +02:00
|
|
|
git clone https://github.com/uBlockOrigin/uAssets.git
|
2016-04-04 00:06:19 +02:00
|
|
|
popd > /dev/null
|
2016-04-03 20:25:56 +02:00
|
|
|
fi
|
|
|
|
|
2016-04-03 19:07:46 +02:00
|
|
|
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
|
|
|
|
|
2016-04-03 23:45:02 +02:00
|
|
|
echo "done."
|