mirror of
https://github.com/gorhill/uBlock.git
synced 2025-01-31 20:21:35 +01:00
[mv3] Fix rule id-salvaging task
This commit is contained in:
parent
fcc77e7c92
commit
f7e00e4223
@ -117,10 +117,6 @@ if [ "$QUICK" != "yes" ]; then
|
|||||||
cp "$UBO_DIR"/src/web_accessible_resources/* "$TMPDIR"/web_accessible_resources/
|
cp "$UBO_DIR"/src/web_accessible_resources/* "$TMPDIR"/web_accessible_resources/
|
||||||
cd "$TMPDIR"
|
cd "$TMPDIR"
|
||||||
node --no-warnings make-rulesets.js output="$DES" platform="$PLATFORM"
|
node --no-warnings make-rulesets.js output="$DES" platform="$PLATFORM"
|
||||||
if [ -n "$BEFORE" ]; then
|
|
||||||
echo "*** uBOLite.mv3: salvaging rule ids to minimize diff size"
|
|
||||||
node --no-warnings salvage-ruleids.mjs before="$BEFORE"/"$PLATFORM" after="$DES"
|
|
||||||
fi
|
|
||||||
cd - > /dev/null
|
cd - > /dev/null
|
||||||
rm -rf "$TMPDIR"
|
rm -rf "$TMPDIR"
|
||||||
fi
|
fi
|
||||||
@ -129,6 +125,10 @@ echo "*** uBOLite.mv3: extension ready"
|
|||||||
echo "Extension location: $DES/"
|
echo "Extension location: $DES/"
|
||||||
|
|
||||||
if [ "$FULL" = "yes" ]; then
|
if [ "$FULL" = "yes" ]; then
|
||||||
|
if [ -n "$BEFORE" ]; then
|
||||||
|
echo "*** uBOLite.mv3: salvaging rule ids to minimize diff size"
|
||||||
|
node salvage-ruleids.mjs before="$BEFORE"/"$PLATFORM" after="$DES"
|
||||||
|
fi
|
||||||
EXTENSION="zip"
|
EXTENSION="zip"
|
||||||
if [ "$PLATFORM" = "firefox" ]; then
|
if [ "$PLATFORM" = "firefox" ]; then
|
||||||
EXTENSION="xpi"
|
EXTENSION="xpi"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user