diff --git a/bin/wappalyzer-build b/bin/wappalyzer-build index 44cb73a39..9c4989728 100755 --- a/bin/wappalyzer-build +++ b/bin/wappalyzer-build @@ -37,9 +37,11 @@ do dest="$WAPPALYZER_ROOT/src/icons/converted/$(basename "$svg").png" - if [[ ! -f "$dest" ]]; then - node $WAPPALYZER_NODE_PATH/node_modules/svg2png/bin/svg2png-cli "$svg" --width=32 --height=32 --output "$dest" || true + if [[ -f "$dest" ]]; then + rm "$dest" fi + + #node $WAPPALYZER_NODE_PATH/node_modules/svg2png/bin/svg2png-cli "$svg" --width=32 --height=32 --output "$dest" || true done IFS="$OIFS" @@ -66,20 +68,14 @@ pushd $WAPPALYZER_ROOT/src/drivers/chrome > /dev/null zip -qr $WAPPALYZER_ROOT/build/wappalyzer_chrome.zip . -# Google Chrome -echo "Building WebExtension drivers..." +# WebExtension +echo "Building WebExtension driver..." pushd $WAPPALYZER_ROOT/src/drivers/webextension > /dev/null -zip -qr $WAPPALYZER_ROOT/build/wappalyzer_webextension.firefox.zip . -x manifest.chrome-opera.json manifest.edge.json - -printf "@ manifest.firefox.json\n@=manifest.json\n" | zipnote -w $WAPPALYZER_ROOT/build/wappalyzer_webextension.firefox.zip - -zip -qr $WAPPALYZER_ROOT/build/wappalyzer_webextension.chrome-opera.zip . -x manifest.firefox.json manifest.edge.json - -printf "@ manifest.chrome-opera.json\n@=manifest.json\n" | zipnote -w $WAPPALYZER_ROOT/build/wappalyzer_webextension.chrome-opera.zip +zip -qr $WAPPALYZER_ROOT/build/wappalyzer_webextension.zip . -x manifest.edge.json -zip -qr $WAPPALYZER_ROOT/build/wappalyzer_webextension.edge.zip . -x manifest.chrome-opera.json manifest.firefox.json +zip -qr $WAPPALYZER_ROOT/build/wappalyzer_webextension.edge.zip . -x manifest.json printf "@ manifest.edge.json\n@=manifest.json\n" | zipnote -w $WAPPALYZER_ROOT/build/wappalyzer_webextension.edge.zip diff --git a/schema.json b/schema.json index 8be26af2a..c70605b61 100644 --- a/schema.json +++ b/schema.json @@ -9,7 +9,16 @@ "additionalProperties": false, "patternProperties": { "^[0-9]+$": { - "type": "string" + "type": "object", + "required": true, + "properties": { + "priority": { + "type": "string" + }, + "name": { + "type": "string" + } + } } } }, @@ -22,7 +31,7 @@ "cats": { "type": "array", "items": { - "type": "integer" + "type": "string" }, "required": true }, diff --git a/src/apps.json b/src/apps.json index 34e62fab6..04b2f0408 100755 --- a/src/apps.json +++ b/src/apps.json @@ -2,7 +2,7 @@ "apps": { "1&1": { "cats": [ - 6 + "6" ], "icon": "1and1.svg", "implies": "PHP", @@ -11,7 +11,7 @@ }, "1C-Bitrix": { "cats": [ - 1 + "1" ], "headers": { "Set-Cookie": "BITRIX_", @@ -25,7 +25,7 @@ }, "2z Project": { "cats": [ - 1 + "1" ], "icon": "2z Project.png", "meta": { @@ -35,7 +35,7 @@ }, "3DM": { "cats": [ - 19 + "19" ], "html": "