forked from willysunny/Nadecker
-
Notifications
You must be signed in to change notification settings - Fork 2
/
install.sh
52 lines (42 loc) · 861 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
#!/bin/sh
echo ""
echo "NadekoBot Installer started."
if hash git 1>/dev/null 2>&1
then
echo ""
echo "Git Installed."
else
echo ""
echo "Git is not installed. Please install Git."
exit 1
fi
if hash dotnet 1>/dev/null 2>&1
then
echo ""
echo "Dotnet installed."
else
echo ""
echo "Dotnet is not installed. Please install dotnet."
exit 1
fi
root=/opt
cd "$root"
echo ""
echo "Downloading NadekoBot, please wait."
git clone -b shikhir-arora-liqukwd --recursive --depth 1 https://github.com/shikhir-arora/NadekoBot.git
echo ""
echo "NadekoBot downloaded."
echo ""
echo "Downloading Nadeko dependencies"
cd $root/NadekoBot
dotnet restore
echo ""
echo "Download done"
echo ""
echo "Building NadekoBot"
dotnet build --configuration Release
echo ""
echo "Building done."
echo ""
echo "Installation Complete."
exit 0