-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·41 lines (35 loc) · 956 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
PWD=$(pwd)
PREFIX=$(npm config get prefix)
declare -a authors=( \
"bsc101" \
"docbobo" \
"docbobo" \
"docbobo" \
"marcelveldt" \
"nugget" \
"pluggemi" \
"varunrandery" \
)
declare -a extensions=( \
"roon-extension-rotel" \
"roon-extension-arcam" \
"roon-extension-denon" \
"roon-extension-harmony" \
"roon-extension-onkyo" \
"roon-community-dj" \
"roon-web-controller" \
"roon-remote" \
)
for i in "${!extensions[@]}"
do
echo ${authors[$i]}/${extensions[$i]}
npm install -g https://github.com/${authors[$i]}/${extensions[$i]}.git
cd $PREFIX/lib/node_modules/${extensions[$i]}
mkdir -p /home/node/.config/${extensions[$i]}
ln -s /home/node/.config/${extensions[$i]}/config.json config.json
if [ "${extensions[$i]}" = "roon-web-controller" ]; then
ln -s /home/node/.config/${extensions[$i]}/local.json config/local.json
fi
cd $PWD
done