1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-18 10:41:26 +02:00

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

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."