2021-07-31 12:49:32 -06:00
|
|
|
#!/usr/bin/env bash
|
2016-04-03 11:07:46 -06:00
|
|
|
#
|
|
|
|
# This script assumes a linux environment
|
|
|
|
|
|
|
|
DES=$1/assets
|
|
|
|
|
2021-07-28 17:40:11 -06:00
|
|
|
echo "*** Packaging assets in $DES... "
|
2016-04-03 12:25:56 -06:00
|
|
|
|
2016-04-03 11:07:46 -06:00
|
|
|
rm -rf $DES
|
2019-07-06 10:36:28 -06:00
|
|
|
cp -R ./assets $DES/
|
2019-02-15 14:18:03 -07:00
|
|
|
|
2016-04-03 11:07:46 -06:00
|
|
|
mkdir $DES/thirdparties
|
2021-07-28 17:40:11 -06:00
|
|
|
|
2021-07-29 08:06:49 -06:00
|
|
|
git submodule update --depth 1 --init
|
|
|
|
UASSETS=submodules/uAssets
|
2021-07-28 17:40:11 -06:00
|
|
|
|
|
|
|
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/
|
2016-04-03 11:07:46 -06:00
|
|
|
|
|
|
|
mkdir $DES/ublock
|
2021-07-28 17:40:11 -06:00
|
|
|
cp -R $UASSETS/filters/* $DES/ublock/
|
2017-12-17 07:42:24 -07:00
|
|
|
# Optional filter lists: do not include in package
|
|
|
|
rm $DES/ublock/annoyances.txt
|