Skip to content

Commit

Permalink
add node-red-contrib-lgtv prebuild (close #423)
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbyquaker committed Nov 7, 2020
1 parent f0da231 commit 4010919
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 17 deletions.
3 changes: 2 additions & 1 deletion addon_files/redmatic/lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"node-red-contrib-doorbird": "0.2.8",
"node-red-contrib-comfoair": "0.0.6",
"node-red-node-discovery": "0.0.22",
"node-red-contrib-chatbot": "0.19.7"
"node-red-contrib-chatbot": "0.19.7",
"node-red-contib-lgtv": "1.1.0"
}
}
32 changes: 16 additions & 16 deletions prebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@ case "$ARCH" in
;;
esac

if [ $ARCH == "i686" ]; then
JQ_CMD='del(.dependencies."node-red-contrib-johnny-five",.dependencies.npm,.dependencies."node-red",.dependencies."@node-red-contrib-themes/midnight-red")'
else
JQ_CMD='del(.dependencies.npm,.dependencies."node-red",.dependencies."@node-red-contrib-themes/midnight-red")'
fi

cat addon_files/redmatic/lib/package.json | jq $JQ_CMD > $DEST/package.json

scp $DEST/package.json $REMOTE:$REMOTE_PATH

ssh -t $REMOTE "cd $REMOTE_PATH ; env JOBS=max npm install --global-style --no-package-lock"
ssh -t $REMOTE "cd $REMOTE_PATH ; env JOBS=max npm rebuild"

if ! [ $ARCH == "i686" ]; then
ssh -t $REMOTE "cd $REMOTE_PATH/node_modules/node-red-contrib-johnny-five && npm install --save --unsafe-perm --global-style --production raspi-io"
fi
#if [ $ARCH == "i686" ]; then
# JQ_CMD='del(.dependencies."node-red-contrib-johnny-five",.dependencies.npm,.dependencies."node-red",.dependencies."@node-red-contrib-themes/midnight-red")'
#else
# JQ_CMD='del(.dependencies.npm,.dependencies."node-red",.dependencies."@node-red-contrib-themes/midnight-red")'
#fi
#
#cat addon_files/redmatic/lib/package.json | jq $JQ_CMD > $DEST/package.json
#
#scp $DEST/package.json $REMOTE:$REMOTE_PATH
#
#ssh -t $REMOTE "cd $REMOTE_PATH ; env JOBS=max npm install --global-style --no-package-lock"
#ssh -t $REMOTE "cd $REMOTE_PATH ; env JOBS=max npm rebuild"
#
#if ! [ $ARCH == "i686" ]; then
# ssh -t $REMOTE "cd $REMOTE_PATH/node_modules/node-red-contrib-johnny-five && npm install --save --unsafe-perm --global-style --production raspi-io"
#fi

files=`ssh -t $REMOTE "cd $REMOTE_PATH ; find ./ -type f -name \*.node |grep -v obj.target"`

Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 4010919

Please sign in to comment.