rename "debian" target to more accurate "webext"

This commit is contained in:
Raymond Hill 2018-04-27 12:42:49 -04:00
parent 2b460da748
commit d9e52b4052
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 12 additions and 12 deletions

View File

@ -2,10 +2,10 @@
#
# This script assumes a linux environment
echo "*** uBlock0.debian: Creating web store package"
echo "*** uBlock0.debian: Copying files"
echo "*** uBlock0.webext: Creating web store package"
echo "*** uBlock0.webext: Copying files"
DES=dist/build/uBlock0.debian
DES=dist/build/uBlock0.webext
rm -rf $DES
mkdir -p $DES
@ -24,11 +24,11 @@ cp platform/chromium/*.html $DES/
cp platform/chromium/*.json $DES/
cp LICENSE.txt $DES/
cp platform/debian/manifest.json $DES/
cp platform/debian/vapi-usercss.js $DES/js/
cp platform/debian/vapi-webrequest.js $DES/js/
cp platform/webext/manifest.json $DES/
cp platform/webext/vapi-usercss.js $DES/js/
cp platform/webext/vapi-webrequest.js $DES/js/
echo "*** uBlock0.debian: concatenating content scripts"
echo "*** uBlock0.webext: concatenating content scripts"
cat $DES/js/vapi-usercss.js > /tmp/contentscript.js
echo >> /tmp/contentscript.js
grep -v "^'use strict';$" $DES/js/vapi-usercss.real.js >> /tmp/contentscript.js
@ -41,18 +41,18 @@ rm $DES/js/vapi-usercss.js
rm $DES/js/vapi-usercss.real.js
rm $DES/js/vapi-usercss.pseudo.js
echo "*** uBlock0.debian: Generating web accessible resources..."
echo "*** uBlock0.webext: Generating web accessible resources..."
cp -R src/web_accessible_resources $DES/
python3 tools/import-war.py $DES/
echo "*** uBlock0.debian: Generating meta..."
python tools/make-debian-meta.py $DES/
echo "*** uBlock0.webext: Generating meta..."
python tools/make-webext-meta.py $DES/
if [ "$1" = all ]; then
echo "*** uBlock0.debian: Creating package..."
echo "*** uBlock0.webext: Creating package..."
pushd $DES > /dev/null
zip ../$(basename $DES).xpi -qr *
popd > /dev/null
fi
echo "*** uBlock0.debian: Package done."
echo "*** uBlock0.webext: Package done."