-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathnadeko_installer_2_28_3.sh
52 lines (43 loc) · 985 Bytes
/
nadeko_installer_2_28_3.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 1.9 --recursive --depth 1 https://github.com/Kwoth/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 add /opt/NadekoBot/src/NadekoBot package ImageSharp --version 1.0.0-alpha9-00194 --source https://www.myget.org/F/imagesharp/api/v3/index.json
dotnet build --configuration Release
echo ""
echo "Building done."
echo ""
echo "Installation Complete."
exit 0