mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 01:02:08 +01:00
3b9fd49c50
* refactoring assets management code * finalizing refactoring of assets management * various code review of new assets management code * fix #2281 * fix #1961 * fix #1293 * fix #1275 * fix update scheduler timing logic * forward compatibility (to be removed once 1.11+ is widespread) * more codereview; give admins ability to specify own assets.json * "assetKey" is more accurate than "path" * fix group count update when building dom incrementally * reorganize content (order, added URLs, etc.) * ability to customize updater through advanced settings * better spinner icon
29 lines
907 B
Bash
Executable file
29 lines
907 B
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 https://github.com/uBlockOrigin/uAssets.git
|
|
popd > /dev/null
|
|
fi
|
|
|
|
rm -rf $DES
|
|
mkdir $DES
|
|
|
|
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/
|
|
cp -R ./assets/assets.json $DES/
|
|
|
|
echo "done."
|