mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-02 09:09:38 +02:00
With hindsight, I revised decisions made earlier during this development cycle: Un-redirectable scriptlets have been removed from /web_accessible_resources and instead put in the new /assets/resources/scriptlets.js, which contains all scriptlets used for web page injection purpose. uBO will no longer fetch a remote version of built-in resources. Advanced setting `userResourcesLocation` will still be honoured by uBO, and if set, will be fetched every time at least one asset is updated.
36 lines
1.0 KiB
Bash
Executable File
36 lines
1.0 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# This script assumes a linux environment
|
|
|
|
DES=$1/assets
|
|
|
|
printf "*** Packaging assets in $DES... "
|
|
|
|
if [ -n "${TRAVIS_TAG}" ]; then
|
|
pushd .. > /dev/null
|
|
git clone --depth 1 https://github.com/uBlockOrigin/uAssets.git
|
|
popd > /dev/null
|
|
fi
|
|
|
|
rm -rf $DES
|
|
cp -R ./assets $DES/
|
|
|
|
if [ -f ./tmp/requests.json.gz ]; then
|
|
gunzip -c ./tmp/requests.json.gz > $DES/requests.json
|
|
fi
|
|
|
|
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/
|
|
# Optional filter lists: do not include in package
|
|
rm $DES/ublock/annoyances.txt
|
|
rm $DES/ublock/resources.txt
|
|
|
|
echo "done."
|