Skip to content

Commit

Permalink
remove unwanted modules from x86_64 build
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbyquaker committed Oct 31, 2020
1 parent f584435 commit 36756db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build_addon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 36756db

Please sign in to comment.