-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
executable file
·54 lines (43 loc) · 958 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
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
set -e
set -x
# gcc libffi-dev
sudo apt-get install python3-pip virtualenv screen unzip -y
if [ -z "$VIRTUAL_ENV" ]; then
virtualenv -p python3 D4GENV
echo export D4G_HOME=$(pwd) >> ./D4GENV/bin/activate
. ./D4GENV/bin/activate
fi
python3 -m pip install -r requirement.txt
if [ ! -d d4-core ]; then
git clone https://github.com/D4-project/d4-core.git
pushd d4-core
pushd client
git submodule init
git submodule update
make
sleep 5
popd
popd
fi
if [ ! -d d4-goclient ]; then
git clone https://github.com/D4-project/d4-goclient.git
fi
pushd configs
cp server.conf.sample server.conf
popd
mkdir logs
pushd d4-goclient
gox -output="../exe_goclient/d4-goclient_{{.OS}}_{{.Arch}}"
sleep 5
popd
pushd exe_goclient
find . -type f -exec sha256sum {} \; > ../sha256sum.txt
popd
# REDIS #
test ! -d redis/ && git clone https://github.com/antirez/redis.git
pushd redis/
git checkout 5.0
make
popd
./update_web.sh