Fixed scripts

This commit is contained in:
Kwoth 2017-01-02 09:43:56 +01:00
parent bd2a370c43
commit b6e0c8c38e

View File

@ -4,9 +4,12 @@ TITLE Downloading NadekoBot, please wait
SET root=%~dp0 SET root=%~dp0
CD /D %root% CD /D %root%
SET rootdir=%cd% SET rootdir=%cd%
SET build1=%root%NadekoInstall_Temp\NadekoBot\discord.net\src\Discord.Net\ SET build1=%root%NadekoInstall_Temp\NadekoBot\discord.net\src\Discord.Net.API\
SET build2=%root%NadekoInstall_Temp\NadekoBot\discord.net\src\Discord.Net.Commands\ SET build2=%root%NadekoInstall_Temp\NadekoBot\discord.net\src\Discord.Net.Core\
SET build3=%root%NadekoInstall_Temp\NadekoBot\src\NadekoBot\ SET build3=%root%NadekoInstall_Temp\NadekoBot\discord.net\src\Discord.Net.Rest\
SET build4=%root%NadekoInstall_Temp\NadekoBot\discord.net\src\Discord.Net.WebSocket\
SET build5=%root%NadekoInstall_Temp\NadekoBot\discord.net\src\Discord.Net.Commands\
SET build6=%root%NadekoInstall_Temp\NadekoBot\src\NadekoBot\
SET installtemp=%root%NadekoInstall_Temp\ SET installtemp=%root%NadekoInstall_Temp\
::Deleting traces of last setup for the sake of clean folders, if by some miracle it still exists ::Deleting traces of last setup for the sake of clean folders, if by some miracle it still exists
IF EXIST %installtemp% ( RMDIR %installtemp% /S /Q >nul 2>&1) IF EXIST %installtemp% ( RMDIR %installtemp% /S /Q >nul 2>&1)
@ -32,6 +35,12 @@ CD /D %build2%
dotnet restore >nul 2>&1 dotnet restore >nul 2>&1
CD /D %build3% CD /D %build3%
dotnet restore >nul 2>&1 dotnet restore >nul 2>&1
CD /D %build4%
dotnet restore >nul 2>&1
CD /D %build5%
dotnet restore >nul 2>&1
CD /D %build6%
dotnet restore >nul 2>&1
dotnet build --configuration Release >nul 2>&1 dotnet build --configuration Release >nul 2>&1
::Attempts to backup old files if they currently exist in the same folder as the batch file ::Attempts to backup old files if they currently exist in the same folder as the batch file
IF EXIST "%root%NadekoBot\" (GOTO :backupinstall) IF EXIST "%root%NadekoBot\" (GOTO :backupinstall)