1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-05-17 10:43:19 +12:00
uMatrix/tools/make-assets.sh

38 lines
1.1 KiB
Bash
Raw Normal View History

#!/usr/bin/env bash
#
# This script assumes a linux environment
DES=$1/assets
printf "*** Packaging assets in $DES... "
rm -rf $DES
mkdir $DES
2018-01-30 11:19:42 +13:00
cp ./assets/assets.json $DES/
if [ -n "${TRAVIS_TAG}" ]; then
pushd .. > /dev/null
git clone --depth 1 https://github.com/uBlockOrigin/uAssets.git
2021-07-20 02:20:05 +12:00
git checkout 84dc2761abb4193bb34290aa6d90266610f735f6
popd > /dev/null
fi
mkdir $DES/thirdparties
2021-07-20 02:20:05 +12:00
pushd ../uAssets
git checkout 84dc2761abb4193bb34290aa6d90266610f735f6
popd
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/someonewhocares.org $DES/thirdparties/
cp -R ../uAssets/thirdparties/winhelp2002.mvps.org $DES/thirdparties/
cp -R ../uAssets/thirdparties/www.malwaredomainlist.com $DES/thirdparties/
2018-01-30 11:19:42 +13:00
mkdir $DES/umatrix
cp -R ../uAssets/recipes/* $DES/umatrix/
2021-07-20 02:20:05 +12:00
pushd ../uAssets
git checkout master
popd
echo "done."