Skip to content

Commit

Permalink
add node-red-contrib-gpio dependecies (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbyquaker committed May 5, 2019
1 parent db1cff0 commit 76525c2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bundle-pkgs.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ const blacklist = [
const extraFiles = {
'redmatic-homekit': [
'bin/ffmpeg'
],
'node-red-contrib-gpio': [
'bin/pig2vcd',
'bin/pigpiod',
'bin/pigs'
]
};

Expand Down
5 changes: 5 additions & 0 deletions prebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,14 @@ cat addon_files/redmatic/lib/package.json | jq 'del(.dependencies.npm,.dependenc
scp $DEST/package.json $REMOTE:$REMOTE_PATH

ssh -t $REMOTE "cd $REMOTE_PATH ; npm install --global-style --unsafe-perm"
ssh -t $REMOTE "cd $REMOTE_PATH/node_modules/node-red-contrib-gpio ; npm install --save --unsafe-perm raspi-io"

rm -r ${DEST}/lib/node_modules

scp $REMOTE:/usr/bin/pig2vcd $DEST/bin/
scp $REMOTE:/usr/bin/pigpiod $DEST/bin/
scp $REMOTE:/usr/bin/pigs $DEST/bin/

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

while read -r binary; do
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 76525c2

Please sign in to comment.