Attempt to fix build script for Firefox

This commit is contained in:
Raymond Hill 2018-12-23 18:19:16 -05:00
parent 4d540f3ffa
commit a038c8658f
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 4 additions and 2 deletions

View File

@ -5,7 +5,8 @@
echo "*** uBlock0.firefox: Creating web store package"
echo "*** uBlock0.firefox: Copying files"
DES=dist/build/uBlock0.firefox
BLDIR=dist/build
DES="$BLDIR"/uBlock0.firefox
rm -rf $DES
mkdir -p $DES
@ -56,8 +57,9 @@ if [ "$1" = all ]; then
elif [ -n "$1" ]; then
echo "*** uBlock0.firefox: Creating versioned package..."
pushd $DES > /dev/null
zip ../$(basename $DES).xpi -qr * -O ../uBlock0_"$1".firefox.xpi
zip ../$(basename $DES).xpi -qr *
popd > /dev/null
mv "$BLDIR"/uBlock0.firefox.xpi "$BLDIR"/uBlock0_"$1".firefox.xpi
fi
echo "*** uBlock0.firefox: Package done."