2014-11-24 20:00:27 +01:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# This script assumes a linux environment
|
|
|
|
|
|
|
|
echo "*** uBlock_xpi: Copying files"
|
2014-12-18 10:47:14 +01:00
|
|
|
|
2014-11-24 20:00:27 +01:00
|
|
|
# use underscore instead of a dot!
|
|
|
|
DES=dist/build/uBlock_xpi
|
|
|
|
rm -r $DES
|
|
|
|
mkdir -p $DES
|
2014-12-18 10:47:14 +01:00
|
|
|
|
2014-11-24 20:00:27 +01: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/
|
2014-12-18 10:47:14 +01:00
|
|
|
mv $DES/img/icon_128.png $DES/icon.png
|
2014-11-24 20:00:27 +01:00
|
|
|
cp platform/firefox/vapi-*.js $DES/js/
|
|
|
|
cp platform/firefox/bootstrap.js $DES/
|
2014-12-18 10:47:14 +01:00
|
|
|
cp platform/firefox/frame*.js $DES/
|
2014-11-24 20:00:27 +01:00
|
|
|
cp platform/firefox/chrome.manifest $DES/
|
|
|
|
cp platform/firefox/install.rdf $DES/
|
2014-12-18 10:47:14 +01:00
|
|
|
cp LICENSE.txt $DES/
|
2014-11-24 20:00:27 +01:00
|
|
|
|
2014-12-16 22:31:03 +01:00
|
|
|
echo "*** uBlock_xpi: Generating meta..."
|
2014-12-16 17:02:26 +01:00
|
|
|
python tools/make-firefox-meta.py $DES/
|
2014-11-24 20:00:27 +01:00
|
|
|
|
|
|
|
echo "*** uBlock_xpi: Package done."
|