From 36756dbf872a1f291105061e7fc523811c557885 Mon Sep 17 00:00:00 2001 From: hobbyquaker Date: Sat, 31 Oct 2020 14:42:41 +0100 Subject: [PATCH] remove unwanted modules from x86_64 build --- build_addon.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_addon.sh b/build_addon.sh index 1bfddde4..f4209d24 100755 --- a/build_addon.sh +++ b/build_addon.sh @@ -67,7 +67,7 @@ cp $BUILD_DIR/assets/favicon/apple-icon-180x180.png $ADDON_TMP/redmatic/www/ cp $BUILD_DIR/assets/favicon/favicon-96x96.png $ADDON_TMP/redmatic/www/ echo "installing node modules..." -if [ "$ARCH" == "i686" ]; then +if [ "$ARCH" == "i686" ] || [ "$ARCH" == "x86_64" ]; then echo "removing Raspberry Pi specific modules..." mv $ADDON_TMP/redmatic/lib/package.json $ADDON_TMP/redmatic/lib/package.json.tmp cat $ADDON_TMP/redmatic/lib/package.json.tmp | jq 'del(.dependencies."node-red-contrib-johnny-five",.dependencies."node-red-contrib-rcswitch2")' > $ADDON_TMP/redmatic/lib/package.json