2014-11-24 19:00:27 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
#
|
|
|
|
|
# This script assumes a linux environment
|
|
|
|
|
|
2015-01-14 07:51:16 +00:00
|
|
|
echo "*** uBlock.firefox: Copying files"
|
2014-12-18 09:47:14 +00:00
|
|
|
|
2015-01-14 07:51:16 +00:00
|
|
|
DES=dist/build/uBlock.firefox
|
2015-02-05 22:13:39 +00:00
|
|
|
rm -rf $DES
|
2014-11-24 19:00:27 +00:00
|
|
|
mkdir -p $DES
|
2014-12-18 09:47:14 +00:00
|
|
|
|
2014-11-24 19:00:27 +00:00
|
|
|
cp -R assets $DES/
|
|
|
|
|
rm $DES/assets/*.sh
|
|
|
|
|
cp -R src/css $DES/
|
|
|
|
|
cp -R src/img $DES/
|
|
|
|
|
cp -R src/js $DES/
|
|
|
|
|
cp -R src/lib $DES/
|
|
|
|
|
cp -R src/_locales $DES/
|
|
|
|
|
cp src/*.html $DES/
|
2015-02-06 12:56:59 +00:00
|
|
|
mv $DES/img/icon_128.png $DES/icon.png
|
2014-11-24 19:00:27 +00:00
|
|
|
cp platform/firefox/vapi-*.js $DES/js/
|
|
|
|
|
cp platform/firefox/bootstrap.js $DES/
|
2014-12-18 09:47:14 +00:00
|
|
|
cp platform/firefox/frame*.js $DES/
|
2015-03-15 12:17:38 +00:00
|
|
|
cp -R platform/firefox/img $DES/
|
2014-11-24 19:00:27 +00:00
|
|
|
cp platform/firefox/chrome.manifest $DES/
|
|
|
|
|
cp platform/firefox/install.rdf $DES/
|
2015-03-03 07:58:35 +00:00
|
|
|
cp platform/firefox/*.xul $DES/
|
2014-12-18 09:47:14 +00:00
|
|
|
cp LICENSE.txt $DES/
|
2014-11-24 19:00:27 +00:00
|
|
|
|
2015-01-14 07:51:16 +00:00
|
|
|
echo "*** uBlock.firefox: Generating meta..."
|
2014-12-16 16:02:26 +00:00
|
|
|
python tools/make-firefox-meta.py $DES/
|
2014-11-24 19:00:27 +00:00
|
|
|
|
2015-01-13 14:28:53 +00:00
|
|
|
if [ "$1" = all ]; then
|
2015-01-14 07:51:16 +00:00
|
|
|
echo "*** uBlock.firefox: Creating package..."
|
2015-01-13 14:28:53 +00:00
|
|
|
pushd $DES/
|
|
|
|
|
zip ../uBlock.firefox.xpi -qr *
|
|
|
|
|
popd
|
|
|
|
|
fi
|
2015-01-13 12:55:45 +00:00
|
|
|
|
2015-01-14 07:51:16 +00:00
|
|
|
echo "*** uBlock.firefox: Package done."
|