-
Notifications
You must be signed in to change notification settings - Fork 27
/
install.sh
63 lines (52 loc) · 985 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
55
56
57
58
59
60
61
62
63
#!/bin/bash
set -euxo pipefail
# check for python installed
if ! command -v python &> /dev/null
then
echo "python could not be found"
exit
fi
# check for pip installed
if ! command -v pip &> /dev/null
then
echo "pip could not be found"
exit
fi
# check for pipenv installed
if ! command -v pipenv &> /dev/null
then
echo "pipenv could not be found"
exit
fi
# check for node installed
if ! command -v node &> /dev/null
then
echo "node could not be found"
exit
fi
# check for yarn installed
if ! command -v yarn &> /dev/null
then
echo "yarn could not be found"
exit
fi
# check for ffmpeg installed
if ! command -v ffmpeg &> /dev/null
then
echo "ffmpeg could not be found"
exit
fi
# install pipenv environment
pipenv install
# build server
cd server
yarn build
# build twitch-chat-dumper
cd ../twitch-chat-dumper
yarn build
# build twitch-vod-chat
cd ../twitch-vod-chat
yarn buildlib
# build client-vue
cd ../client-vue
yarn build