mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-02 08:52:45 +01:00
17590c5a0c
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/2358 We need two different branches of uAssets to properly add the default filter lists into the packages. I couldn't figure out how to do this with submodules, using simple `git clone` as a dependency just work.
33 lines
747 B
Bash
Executable File
33 lines
747 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# This script assumes a linux environment
|
|
|
|
set -e
|
|
|
|
DES=$1/assets
|
|
|
|
echo "*** Packaging assets in $DES... "
|
|
|
|
rm -rf $DES
|
|
cp -R ./assets $DES/
|
|
|
|
mkdir $DES/thirdparties
|
|
|
|
ASSETS_MAIN=dist/build/uAssets/main
|
|
ASSETS_PROD=dist/build/uAssets/prod
|
|
|
|
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
|
|
cp $ASSETS_PROD/thirdparties/easy*.txt $DES/thirdparties/easylist/
|
|
|
|
mkdir $DES/ublock
|
|
cp $ASSETS_PROD/filters/* $DES/ublock/
|
|
|
|
# Do not include in package
|
|
rm $DES/ublock/annoyances.txt
|
|
rm $DES/ublock/lan-block.txt
|
|
rm $DES/ublock/ubol-filters.txt
|