mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
[mv3] Fix rule id-salvaging task
This commit is contained in:
parent
fcc77e7c92
commit
f7e00e4223
1 changed files with 4 additions and 4 deletions
|
|
@ -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…
Reference in a new issue