-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
installer.sh
executable file
·86 lines (79 loc) · 2.26 KB
/
installer.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#!/bin/sh
PACKAGER="brew install"
if [ "$OSTYPE" == "linux-gnu"* ]; then
echo linux-gnu detected
PACKAGER="sudo apt install"
apt update
elif [ "$OSTYPE" == "darwin"* ]; then
echo macOS detected
PACKAGER="brew install"
brew update
elif [ "$OSTYPE" == "cygwin" ]; then
echo detected cygwin POSIX compatibility layer and Linux environment emulation for Windows
elif [ "$OSTYPE" == "msys" ]; then
echo detected Lightweight shell and GNU utilities compiled for Windows
elif [ "$OSTYPE" == "win32" ]; then
echo detected Windows
elif [ "$OSTYPE" == "freebsd"* ]; then
echo detected FreeBSD
else
echo unknown os
fi
exit
echo Installing linux dependencies: gource, ffmpeg, lighthouse
install () {
echo installing $1 with
echo $PACKAGER $1
$PACKAGER $1
echo
sleep 1
}
install gource
install ffmpeg
npm install lighthouse
echo done
echo running main 🧬 AminoSee installer
sleep 1
sudo apt install node-pre-gyp
whereis aminosee
which aminosee
echo Current dir:
pwd
echo This should be run from root the AminoSee repo
echo "About to run: npm install; npm link; sudo npm link aminosee; aminosee --demo"
echo
# git status
echo
echo running admin this:
echo npm i -g node-gyp@latest && npm config set node_gyp "/usr/local/lib/node_modules/node-gyp/bin/node-gyp.js"
sleep 1
sudo npm i -g node-gyp@latest && npm config set node_gyp "/usr/local/lib/node_modules/node-gyp/bin/node-gyp.js"
npm install
echo "If the following works, your source code install is up:"
echo npm run start
npm run start
#npm link
#echo about to run this as regular user:
echo npm link
npm link
sleep 1
echo to install for all users enter admin pass. then you can juust type "aminosee" at the shell
sudo npm link aminosee
echo "If the following works, you can now just type aminosee at the command prompt: doing it now as test"
echo aminosee --test -m8
sleep 1
aminosee --test -m8
sleep 1
echo "If you didnt see some colourful Hilbert patterns try:"
echo "npm run start --test -m8"
echo
whereis aminosee
which aminosee
aminosee --test -m8
# locate aminosee | grep aminosee$ &
sleep 1
echo about to create symlinks in /usr/local/bin
COMMMAND="sudo ln -s /usr/local/lib/node_modules/aminosee/bin/aminosee /usr/local/bin/aminosee"
echo $COMMAND
sleep 1
eval $COMMAND