1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-06-16 09:15:03 +12:00
uMatrix/tools/make-chromium.sh

29 lines
836 B
Bash
Raw Normal View History

2014-10-18 08:01:09 +13:00
#!/bin/bash
#
# This script assumes a linux environment
echo "*** µMatrix(Chromium): Creating package"
echo "*** µMatrix(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
cp -R ./assets $DES/
cp -R ./src/* $DES/
cp -R $DES/_locales/nb $DES/_locales/no # Chrome store quirk
cp ./platform/chromium/*.html $DES/
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
if [ "$1" = all ]; then
echo "*** µMatrix.chromium: Creating package..."
pushd $(dirname $DES/)
zip uMatrix.chromium.zip -qr $(basename $DES/)/*
popd
fi
2014-10-18 08:01:09 +13:00
echo "*** µMatrix(Chromium): Package done."