build.sh gera extensão do FF .xpi ao inves de .zip

master
Rodrigo Orem 2017-06-12 16:15:09 -03:00
parent 1dc177a21d
commit 670e3d0e69
1 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,4 @@
#!/bin/bash
DIST="dist"
BROWSERS=("firefox" "opera")
@ -14,5 +15,12 @@ do
cp -r src/* $DIR/src
mv $DIR/src/manifest-$i.json $DIR/src/manifest.json
rm -f $DIR/src/manifest-*
file="extension.zip"
if [ i == "firefox" ]
then
file="extension.xpi"
fi
zip -j $DIR/extension.zip $DIR/src/*
done