1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-08 04:49:12 +02:00

[mv3] Fix rule id-salvaging task

This commit is contained in:
Raymond Hill 2024-02-25 20:49:25 -05:00
parent fcc77e7c92
commit f7e00e4223
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -117,10 +117,6 @@ if [ "$QUICK" != "yes" ]; then
cp "$UBO_DIR"/src/web_accessible_resources/* "$TMPDIR"/web_accessible_resources/
cd "$TMPDIR"
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
rm -rf "$TMPDIR"
fi
@ -129,6 +125,10 @@ echo "*** uBOLite.mv3: extension ready"
echo "Extension location: $DES/"
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"
if [ "$PLATFORM" = "firefox" ]; then
EXTENSION="xpi"