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
|
2018-01-09 23:57:40 +01:00
|
|
|
git clone --depth 1 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
|
2019-07-06 18:36:28 +02:00
|
|
|
cp -R ./assets $DES/
|
2019-02-15 22:18:03 +01:00
|
|
|
|
2016-04-03 19:07:46 +02:00
|
|
|
mkdir $DES/thirdparties
|
|
|
|
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/
|
2020-07-06 15:03:20 +02:00
|
|
|
cp -R ../uAssets/thirdparties/urlhaus-filter $DES/thirdparties/
|
2016-04-03 19:07:46 +02:00
|
|
|
|
|
|
|
mkdir $DES/ublock
|
|
|
|
cp -R ../uAssets/filters/* $DES/ublock/
|
2017-12-17 15:42:24 +01:00
|
|
|
# Optional filter lists: do not include in package
|
|
|
|
rm $DES/ublock/annoyances.txt
|
2016-04-03 19:07:46 +02:00
|
|
|
|
2016-04-03 23:45:02 +02:00
|
|
|
echo "done."
|