mirror of
https://github.com/gorhill/uBlock.git
synced 2025-01-31 12:11:36 +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/
|
||||
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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user