1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-05-23 21:50:46 +12:00
uMatrix/tools/make-chromium.sh

37 lines
1 KiB
Bash
Raw Normal View History

2014-10-18 08:01:09 +13:00
#!/bin/bash
#
# This script assumes a linux environment
echo "*** uMatrix(Chromium): Creating package"
echo "*** uMatrix(Chromium): Copying files"
2015-04-11 09:06:49 +12:00
2015-04-20 08:19:14 +12:00
DES=./dist/build/uMatrix.chromium
2014-11-20 14:35:17 +13:00
rm -rf $DES
mkdir -p $DES
2015-04-11 09:06:49 +12:00
bash ./tools/make-assets.sh $DES
2015-04-11 09:06:49 +12:00
cp -R ./src/* $DES/
cp -R $DES/_locales/nb $DES/_locales/no # Chrome store quirk
cp ./platform/chromium/*.js $DES/js/
cp -R ./platform/chromium/img/* $DES/img/
cp ./platform/chromium/manifest.json $DES/
cp LICENSE.txt $DES/
2015-04-11 09:06:49 +12:00
echo "*** uMatrix.chromium: Generating meta..."
python tools/make-chromium-meta.py $DES/
2015-04-11 09:06:49 +12:00
if [ "$1" = all ]; then
echo "*** uMatrix.chromium: Creating package..."
2015-04-11 09:06:49 +12:00
pushd $(dirname $DES/)
zip uMatrix.chromium.zip -qr $(basename $DES/)/*
popd
2019-12-26 03:30:34 +13:00
elif [ -n "$1" ]; then
echo "*** uMatrix.chromium: Creating versioned package..."
pushd $(dirname $DES/) > /dev/null
zip uMatrix_"$1".chromium.zip -qr $(basename $DES/)/*
popd > /dev/null
2015-04-11 09:06:49 +12:00
fi
echo "*** uMatrix(Chromium): Package done."