forked from pierotofy/NodeODM
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_deps.sh
More file actions
43 lines (34 loc) · 1.15 KB
/
install_deps.sh
File metadata and controls
43 lines (34 loc) · 1.15 KB
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
42
43
#!/bin/bash
if [ -z "$NVM_DIR" ]; then
echo "Error: NVM_DIR environment variable is not set" >&2
exit 1
fi
if [ -z "$NODE_VERSION" ]; then
echo "Error: NODE_VERSION environment variable is not set" >&2
exit 1
fi
for i in {1..20}; do
apt-get update && apt-get install -y curl gpg-agent && break
echo "apt-get failed, retrying... ($i/20)"
sleep 30
done
mkdir -p $NVM_DIR
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
source $NVM_DIR/nvm.sh
nvm install $NODE_VERSION
nvm alias default $NODE_VERSION
for i in {1..20}; do
apt-get install -y unzip p7zip-full libgtk-3-0 xvfb libegl1 libgomp1 --no-install-recommends && npm install -g nodemon && break
echo "apt-get failed, retrying... ($i/20)"
sleep 30
done
npm install --production
curl -o- https://github.com/uav4geo/NodeThermalTools/releases/download/v0.0.1/Thermal_Tools.AppImage
cd $(dirname "$0")
TT_BIN="bin/Thermal_Tools.AppImage"
curl -L -o $TT_BIN https://github.com/uav4geo/NodeThermalTools/releases/download/v0.0.1/Thermal_Tools.AppImage
chmod +x $TT_BIN
$TT_BIN --appimage-extract
mv squashfs-root/{.,}* bin
rm $TT_BIN
mv bin/AppRun $TT_BIN