You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.3 KiB
Bash
39 lines
1.3 KiB
Bash
8 years ago
|
#!/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
|
||
8 years ago
|
mkdir -p $DES/webextension
|
||
8 years ago
|
|
||
8 years ago
|
cp -R ./assets $DES/webextension/
|
||
|
cp -R ./src/* $DES/webextension/
|
||
|
cp platform/chromium/*.html $DES/webextension/
|
||
|
cp platform/chromium/*.js $DES/webextension/js/
|
||
|
cp -R platform/chromium/img/* $DES/webextension/img/
|
||
|
cp LICENSE.txt $DES/webextension/
|
||
|
|
||
|
cp platform/webext/background.html $DES/webextension/
|
||
|
cp platform/webext/polyfill.js $DES/webextension/js/
|
||
|
cp platform/webext/from-legacy.js $DES/webextension/js/
|
||
|
cp platform/webext/manifest.json $DES/webextension/
|
||
|
cp platform/webext/bootstrap.js $DES/
|
||
|
cp platform/webext/chrome.manifest $DES/
|
||
|
cp platform/webext/install.rdf $DES/
|
||
|
mv $DES/webextension/img/icon_128.png $DES/icon.png
|
||
8 years ago
|
|
||
|
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
|
||
8 years ago
|
zip ../$(basename $DES).xpi -qr *
|
||
8 years ago
|
popd > /dev/null
|
||
|
fi
|
||
|
|
||
|
echo "*** uMatrix.webext: Package done."
|