2014-11-25 08:00:27 +13:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# This script assumes a linux environment
|
|
|
|
|
2015-04-14 04:31:55 +12:00
|
|
|
echo "*** uMatrix.firefox: Copying files"
|
2014-12-18 22:47:14 +13:00
|
|
|
|
2015-04-14 04:31:55 +12:00
|
|
|
DES=dist/build/uMatrix.firefox
|
2015-02-06 11:13:39 +13:00
|
|
|
rm -rf $DES
|
2014-11-25 08:00:27 +13:00
|
|
|
mkdir -p $DES
|
2014-12-18 22:47:14 +13:00
|
|
|
|
2015-08-28 05:12:34 +12:00
|
|
|
cp -R assets $DES/
|
|
|
|
|
|
|
|
|
|
|
|
cp -R src/* $DES/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mv $DES/img/icon_128.png $DES/icon.png
|
|
|
|
cp platform/firefox/css/* $DES/css/
|
2017-03-30 02:12:12 +13:00
|
|
|
cp platform/firefox/*.js $DES/js/
|
2015-08-28 05:12:34 +12:00
|
|
|
cp platform/firefox/bootstrap.js $DES/
|
|
|
|
cp platform/firefox/frame*.js $DES/
|
|
|
|
cp -R platform/chromium/img $DES/
|
|
|
|
cp platform/firefox/chrome.manifest $DES/
|
|
|
|
cp platform/firefox/install.rdf $DES/
|
|
|
|
cp platform/firefox/*.xul $DES/
|
|
|
|
cp LICENSE.txt $DES/
|
2014-11-25 08:00:27 +13:00
|
|
|
|
2015-04-14 04:31:55 +12:00
|
|
|
echo "*** uMatrix.firefox: Generating meta..."
|
2017-02-01 11:47:03 +13:00
|
|
|
python tools/make-firefox-meta.py $DES/
|
2014-11-25 08:00:27 +13:00
|
|
|
|
2015-01-14 03:28:53 +13:00
|
|
|
if [ "$1" = all ]; then
|
2015-04-14 04:31:55 +12:00
|
|
|
echo "*** uMatrix.firefox: Creating package..."
|
2015-01-14 03:28:53 +13:00
|
|
|
pushd $DES/
|
2015-04-14 04:31:55 +12:00
|
|
|
zip ../uMatrix.firefox.xpi -qr *
|
2015-01-14 03:28:53 +13:00
|
|
|
popd
|
|
|
|
fi
|
2015-01-14 01:55:45 +13:00
|
|
|
|
2015-04-14 04:31:55 +12:00
|
|
|
echo "*** uMatrix.firefox: Package done."
|