rename "webext" target to "firefox"
parent
a0c72fc302
commit
a7753fd356
@ -0,0 +1,38 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# This script assumes a linux environment
|
||||
|
||||
echo "*** uMatrix.firefox: Creating web store package"
|
||||
echo "*** uMatrix.firefox: Copying files"
|
||||
|
||||
DES=dist/build/uMatrix.firefox
|
||||
rm -rf $DES
|
||||
mkdir -p $DES
|
||||
|
||||
bash ./tools/make-assets.sh $DES
|
||||
|
||||
cp -R ./src/* $DES/
|
||||
cp platform/chromium/*.html $DES/
|
||||
cp platform/chromium/*.js $DES/js/
|
||||
cp -R platform/chromium/img/* $DES/img/
|
||||
cp LICENSE.txt $DES/
|
||||
|
||||
cp platform/firefox/polyfill.js $DES/js/
|
||||
cp platform/firefox/vapi-cachestorage.js $DES/js/
|
||||
cp platform/firefox/manifest.json $DES/
|
||||
|
||||
# firefox-specific
|
||||
rm $DES/options_ui.html
|
||||
rm $DES/js/options_ui.js
|
||||
|
||||
echo "*** uMatrix.firefox: Generating meta..."
|
||||
python tools/make-firefox-meta.py $DES/
|
||||
|
||||
if [ "$1" = all ]; then
|
||||
echo "*** uMatrix.firefox: Creating package..."
|
||||
pushd $DES > /dev/null
|
||||
zip ../$(basename $DES).xpi -qr *
|
||||
popd > /dev/null
|
||||
fi
|
||||
|
||||
echo "*** uMatrix.firefox: Package done."
|
@ -1,38 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# This script assumes a linux environment
|
||||
|
||||
echo "*** uMatrix.webext: Creating web store package"
|
||||
echo "*** uMatrix.webext: Copying files"
|
||||
|
||||
DES=dist/build/uMatrix.webext
|
||||
rm -rf $DES
|
||||
mkdir -p $DES
|
||||
|
||||
bash ./tools/make-assets.sh $DES
|
||||
|
||||
cp -R ./src/* $DES/
|
||||
cp platform/chromium/*.html $DES/
|
||||
cp platform/chromium/*.js $DES/js/
|
||||
cp -R platform/chromium/img/* $DES/img/
|
||||
cp LICENSE.txt $DES/
|
||||
|
||||
cp platform/webext/polyfill.js $DES/js/
|
||||
cp platform/webext/vapi-cachestorage.js $DES/js/
|
||||
cp platform/webext/manifest.json $DES/
|
||||
|
||||
# webext-specific
|
||||
rm $DES/options_ui.html
|
||||
rm $DES/js/options_ui.js
|
||||
|
||||
echo "*** uMatrix.webext: Generating meta..."
|
||||
python tools/make-webext-meta.py $DES/
|
||||
|
||||
if [ "$1" = all ]; then
|
||||
echo "*** uMatrix.webext: Creating package..."
|
||||
pushd $DES > /dev/null
|
||||
zip ../$(basename $DES).xpi -qr *
|
||||
popd > /dev/null
|
||||
fi
|
||||
|
||||
echo "*** uMatrix.webext: Package done."
|
Loading…
Reference in New Issue