A Shell Script to Create a Build of Firefox Extension

This shell script will create a build of a firefox extension in linux. This is created according to my details(eg, the guid has @binnyva.com in it) – but you can modify it and use it yourself.


if [ $# -eq 0 ] ; then
	echo "Useage: sh build.sh  []"

elif [ # -eq 1 ] ; then

rm app.xpi
cp -rfolder temp
cd temp
rm -rf .git

zip -r app.xpi .>/dev/null
mvapp.xpi ..
cd ..
rm -rf temp
echo "Built $app successfully"

Author: Binny V A
A philosopher programmer who specializes in backend development and stoicism.

Leave a Reply

Your email address will not be published. Required fields are marked *