5 |
# |
# |
6 |
# If running on a raspberry 1(A/B) raspian/wheezy - downgrade node.js to 5.4.0 |
# If running on a raspberry 1(A/B) raspian/wheezy - downgrade node.js to 5.4.0 |
7 |
# Please note that raspian/wheezy for arm defaults to gcc 4.6 |
# Please note that raspian/wheezy for arm defaults to gcc 4.6 |
8 |
# gcc 4.7 is needed for compiling node-js modules |
# <strike>gcc 4.7</strike> is needed for compiling node-js modules |
9 |
|
# 2017-01-03 gcc 4.8 is required |
10 |
|
|
11 |
BRANCH=stable |
BRANCH=stable |
12 |
|
|
102 |
|
|
103 |
if [ ! -x "/usr/local/bin/node" ] ; then |
if [ ! -x "/usr/local/bin/node" ] ; then |
104 |
echo "installing node.js" |
echo "installing node.js" |
105 |
n stable || exit |
n lts || exit |
106 |
fi |
fi |
107 |
|
|
108 |
if [ ! -x "/usr/local/bin/gulp" ] ; then |
if [ ! -x "/usr/local/bin/gulp" ] ; then |
152 |
# xo-server |
# xo-server |
153 |
echo "building xo-server" |
echo "building xo-server" |
154 |
cd xo-server |
cd xo-server |
155 |
npm install || exit |
npm install --unsafe-perm || exit |
156 |
npm run build || exit |
npm run build || exit |
157 |
|
|
158 |
#for some reasone leveldown fails occasionally on arm/raspberry pi |
#for some reasone leveldown fails occasionally on arm/raspberry pi |