mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-09-29 08:41:11 +13:00
fb94c85df1
Related issues: - "Requests bypass uMatrix on Firefox start" <https://github.com/uBlockOrigin/uMatrix-issues/issues/69> Using same approach as with uBO: https://github.com/gorhill/uBloc/commit/41548be6be35 `suspendTabsUntilReady` advanced setting added to "More" pane, useful only for Chromium -- the blocking of early network requests is enforced unconditionally on Firefox (because it supports returning Promises from webRequest handlers). - "Cookies leaking temporarily" <https://github.com/uBlockOrigin/uMatrix-issues/issues/74> Changes in the webRequest API in Chromium 72+ caused uMatrix to fail to process `Cookie` and `Referer` headers on that platform.
32 lines
873 B
Bash
Executable file
32 lines
873 B
Bash
Executable file
#!/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/*.js $DES/js/
|
|
cp -R platform/chromium/img/* $DES/img/
|
|
cp LICENSE.txt $DES/
|
|
|
|
cp platform/firefox/*.js $DES/js/
|
|
cp platform/firefox/manifest.json $DES/
|
|
|
|
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."
|