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
|
|
|
|
|
2021-07-31 15:34:25 -06:00
|
|
|
set -e
|
|
|
|
|
2016-04-03 11:07:46 -06:00
|
|
|
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
|
|
|
|
2022-11-14 07:50:53 -07:00
|
|
|
ASSETS_MAIN=dist/build/uAssets/main
|
|
|
|
ASSETS_PROD=dist/build/uAssets/prod
|
2021-07-28 17:40:11 -06:00
|
|
|
|
2022-11-14 07:50:53 -07:00
|
|
|
cp -R $ASSETS_MAIN/thirdparties/pgl.yoyo.org $DES/thirdparties/
|
|
|
|
cp -R $ASSETS_MAIN/thirdparties/publicsuffix.org $DES/thirdparties/
|
|
|
|
cp -R $ASSETS_MAIN/thirdparties/urlhaus-filter $DES/thirdparties/
|
|
|
|
|
|
|
|
mkdir -p $DES/thirdparties/easylist
|
2023-04-27 11:22:15 -06:00
|
|
|
cp $ASSETS_PROD/thirdparties/easylist.txt $DES/thirdparties/easylist/
|
|
|
|
cp $ASSETS_PROD/thirdparties/easyprivacy.txt $DES/thirdparties/easylist/
|
2016-04-03 11:07:46 -06:00
|
|
|
|
|
|
|
mkdir $DES/ublock
|
2023-04-28 15:02:51 -06:00
|
|
|
cp $ASSETS_PROD/filters/badlists.txt $DES/ublock/badlists.txt
|
|
|
|
cp $ASSETS_PROD/filters/badware.txt $DES/ublock/badware.txt
|
|
|
|
cp $ASSETS_PROD/filters/filters.min.txt $DES/ublock/filters.min.txt
|
|
|
|
cp $ASSETS_PROD/filters/filters-mobile.txt $DES/ublock/filters-mobile.txt
|
|
|
|
cp $ASSETS_PROD/filters/privacy.min.txt $DES/ublock/privacy.min.txt
|
|
|
|
cp $ASSETS_PROD/filters/quick-fixes.txt $DES/ublock/quick-fixes.txt
|
|
|
|
cp $ASSETS_PROD/filters/unbreak.txt $DES/ublock/unbreak.txt
|