-
Notifications
You must be signed in to change notification settings - Fork 2
/
install
40 lines (28 loc) · 775 Bytes
/
install
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
echo 'This version of the install script only works on Ubuntu. If you know what you're doing, you can modify it to work under any Linux distribution.'
mkdir ./client/.blckchnmsg
mkdir ./client/.keys
if [ "$EUID" -ne 0 ]
then echo "Please run as root - 'sudo ./install'"
exit
fi
hash snap 2>/dev/null || {
echo >&2 "snap is required, but wasn't found. Aborting."; exit 1;
}
hash apt 2>/dev/null || {
echo >&2 "apt is required, but wasn't found. Aborting."; exit 1;
}
hash python 2>/dev/null || {
apt install -y python3
apt install -y python3-pip
}
hash npm 2>/dev/null || {
apt install -y nodejs
}
hash solc 2>/dev/null || {
snap install solc
}
pip install virtualenv
virtualenv venv
source ./venv/bin/activate
pip install .
deactivate