added libs to support 32bit windows
This commit is contained in:
parent
c75a625aa7
commit
8a93957c64
@ -1,5 +1,5 @@
|
|||||||
@ECHO off
|
@ECHO off
|
||||||
TITLE Downloading NadekoBot, please wait
|
TITLE Downloading Latest Build of NadekoBot...
|
||||||
::Setting convenient to read variables which don't delete the windows temp folder
|
::Setting convenient to read variables which don't delete the windows temp folder
|
||||||
SET root=%~dp0
|
SET root=%~dp0
|
||||||
CD /D %root%
|
CD /D %root%
|
||||||
@ -24,30 +24,43 @@ ECHO Downloading Nadeko...
|
|||||||
ECHO.
|
ECHO.
|
||||||
git clone -b dev --recursive --depth 1 --progress https://github.com/Kwoth/NadekoBot.git >nul
|
git clone -b dev --recursive --depth 1 --progress https://github.com/Kwoth/NadekoBot.git >nul
|
||||||
IF %ERRORLEVEL% EQU 128 (GOTO :giterror)
|
IF %ERRORLEVEL% EQU 128 (GOTO :giterror)
|
||||||
TITLE Installing NadekoBot, please wait
|
TITLE Installing NadekoBot, please wait...
|
||||||
ECHO.
|
ECHO.
|
||||||
ECHO Installing...
|
ECHO Installing Discord.Net(1/4)...
|
||||||
::Building Nadeko
|
::Building Nadeko
|
||||||
CD /D %build1%
|
CD /D %build1%
|
||||||
dotnet restore >nul 2>&1
|
dotnet restore >nul 2>&1
|
||||||
|
ECHO Installing Discord.Net(2/4)...
|
||||||
CD /D %build2%
|
CD /D %build2%
|
||||||
dotnet restore >nul 2>&1
|
dotnet restore >nul 2>&1
|
||||||
|
ECHO Installing Discord.Net(3/4)...
|
||||||
CD /D %build3%
|
CD /D %build3%
|
||||||
dotnet restore >nul 2>&1
|
dotnet restore >nul 2>&1
|
||||||
|
ECHO Installing Discord.Net(4/4)...
|
||||||
CD /D %build4%
|
CD /D %build4%
|
||||||
dotnet restore >nul 2>&1
|
dotnet restore >nul 2>&1
|
||||||
|
ECHO.
|
||||||
|
ECHO Discord.Net installation completed successfully...
|
||||||
|
ECHO.
|
||||||
|
ECHO Installing NadekoBot...
|
||||||
CD /D %build5%
|
CD /D %build5%
|
||||||
dotnet restore >nul 2>&1
|
dotnet restore >nul 2>&1
|
||||||
dotnet build --configuration Release >nul 2>&1
|
dotnet build --configuration Release >nul 2>&1
|
||||||
|
ECHO.
|
||||||
|
ECHO NadekoBot installation completed successfully...
|
||||||
::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)
|
||||||
:freshinstall
|
:freshinstall
|
||||||
::Moves the NadekoBot folder to keep things tidy
|
::Moves the NadekoBot folder to keep things tidy
|
||||||
|
ECHO.
|
||||||
|
ECHO Moving files, Please wait...
|
||||||
ROBOCOPY "%root%NadekoInstall_Temp" "%rootdir%" /E /MOVE >nul 2>&1
|
ROBOCOPY "%root%NadekoInstall_Temp" "%rootdir%" /E /MOVE >nul 2>&1
|
||||||
IF %ERRORLEVEL% GEQ 8 (GOTO :copyerror)
|
IF %ERRORLEVEL% GEQ 8 (GOTO :copyerror)
|
||||||
GOTO :end
|
IF EXIST "%PROGRAMFILES(X86)%" (GOTO 64BIT) ELSE (GOTO 32BIT)
|
||||||
:backupinstall
|
:backupinstall
|
||||||
TITLE Backing up old files
|
TITLE Backing up old files...
|
||||||
|
ECHO.
|
||||||
|
ECHO Moving and Backing up old files...
|
||||||
::Recursively copies all files and folders from NadekoBot to NadekoBot_Old
|
::Recursively copies all files and folders from NadekoBot to NadekoBot_Old
|
||||||
ROBOCOPY "%root%NadekoBot" "%root%NadekoBot_Old" /MIR >nul 2>&1
|
ROBOCOPY "%root%NadekoBot" "%root%NadekoBot_Old" /MIR >nul 2>&1
|
||||||
IF %ERRORLEVEL% GEQ 8 (GOTO :copyerror)
|
IF %ERRORLEVEL% GEQ 8 (GOTO :copyerror)
|
||||||
@ -70,7 +83,7 @@ IF EXIST "%root%NadekoBot\" (GOTO :backupinstall)
|
|||||||
RMDIR "%root%NadekoBot\" /S /Q >nul 2>&1
|
RMDIR "%root%NadekoBot\" /S /Q >nul 2>&1
|
||||||
ROBOCOPY "%root%NadekoInstall_Temp" "%rootdir%" /E /MOVE >nul 2>&1
|
ROBOCOPY "%root%NadekoInstall_Temp" "%rootdir%" /E /MOVE >nul 2>&1
|
||||||
IF %ERRORLEVEL% GEQ 8 (GOTO :copyerror)
|
IF %ERRORLEVEL% GEQ 8 (GOTO :copyerror)
|
||||||
GOTO :end
|
IF EXIST "%PROGRAMFILES(X86)%" (GOTO 64BIT) ELSE (GOTO 32BIT)
|
||||||
:dotnet
|
:dotnet
|
||||||
::Terminates the batch script if it can't run dotnet --version
|
::Terminates the batch script if it can't run dotnet --version
|
||||||
TITLE Error!
|
TITLE Error!
|
||||||
@ -102,6 +115,25 @@ IF EXIST "%root%NadekoBot\" (GOTO :backupinstall)
|
|||||||
PAUSE >nul 2>&1
|
PAUSE >nul 2>&1
|
||||||
CD /D "%root%"
|
CD /D "%root%"
|
||||||
GOTO :EOF
|
GOTO :EOF
|
||||||
|
:64BIT
|
||||||
|
ECHO.
|
||||||
|
ECHO Your System Architecture is 64bit...
|
||||||
|
GOTO end
|
||||||
|
:32BIT
|
||||||
|
ECHO.
|
||||||
|
ECHO Your System Architecture is 32bit...
|
||||||
|
timeout /t 5
|
||||||
|
ECHO.
|
||||||
|
ECHO Downloading libsodium.dll and libopus.dll...
|
||||||
|
SET "FILENAME=%~dp0\NadekoBot\src\NadekoBot\libsodium.dll"
|
||||||
|
bitsadmin.exe /transfer "Downloading libsodium.dll" /priority high https://github.com/Kwoth/NadekoBot/raw/dev/src/NadekoBot/_libs/32/libsodium.dll "%FILENAME%"
|
||||||
|
ECHO libsodium.dll downloaded.
|
||||||
|
ECHO.
|
||||||
|
timeout /t 5
|
||||||
|
SET "FILENAME=%~dp0\NadekoBot\src\NadekoBot\opus.dll"
|
||||||
|
bitsadmin.exe /transfer "Downloading libopus.dll" /priority high https://github.com/Kwoth/NadekoBot/raw/dev/src/NadekoBot/_libs/32/opus.dll "%FILENAME%"
|
||||||
|
ECHO libopus.dll downloaded.
|
||||||
|
GOTO end
|
||||||
:end
|
:end
|
||||||
::Normal execution of end of script
|
::Normal execution of end of script
|
||||||
TITLE Installation complete!
|
TITLE Installation complete!
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
@ECHO off
|
@ECHO off
|
||||||
TITLE Downloading NadekoBot, please wait
|
TITLE Downloading Stable Build of NadekoBot...
|
||||||
::Setting convenient to read variables which don't delete the windows temp folder
|
::Setting convenient to read variables which don't delete the windows temp folder
|
||||||
SET root=%~dp0
|
SET root=%~dp0
|
||||||
CD /D %root%
|
CD /D %root%
|
||||||
@ -24,30 +24,43 @@ ECHO Downloading Nadeko...
|
|||||||
ECHO.
|
ECHO.
|
||||||
git clone -b master --recursive --depth 1 --progress https://github.com/Kwoth/NadekoBot.git >nul
|
git clone -b master --recursive --depth 1 --progress https://github.com/Kwoth/NadekoBot.git >nul
|
||||||
IF %ERRORLEVEL% EQU 128 (GOTO :giterror)
|
IF %ERRORLEVEL% EQU 128 (GOTO :giterror)
|
||||||
TITLE Installing NadekoBot, please wait
|
TITLE Installing NadekoBot, please wait...
|
||||||
ECHO.
|
ECHO.
|
||||||
ECHO Installing...
|
ECHO Installing Discord.Net(1/4)...
|
||||||
::Building Nadeko
|
::Building Nadeko
|
||||||
CD /D %build1%
|
CD /D %build1%
|
||||||
dotnet restore >nul 2>&1
|
dotnet restore >nul 2>&1
|
||||||
|
ECHO Installing Discord.Net(2/4)...
|
||||||
CD /D %build2%
|
CD /D %build2%
|
||||||
dotnet restore >nul 2>&1
|
dotnet restore >nul 2>&1
|
||||||
|
ECHO Installing Discord.Net(3/4)...
|
||||||
CD /D %build3%
|
CD /D %build3%
|
||||||
dotnet restore >nul 2>&1
|
dotnet restore >nul 2>&1
|
||||||
|
ECHO Installing Discord.Net(4/4)...
|
||||||
CD /D %build4%
|
CD /D %build4%
|
||||||
dotnet restore >nul 2>&1
|
dotnet restore >nul 2>&1
|
||||||
|
ECHO.
|
||||||
|
ECHO Discord.Net installation completed successfully...
|
||||||
|
ECHO.
|
||||||
|
ECHO Installing NadekoBot...
|
||||||
CD /D %build5%
|
CD /D %build5%
|
||||||
dotnet restore >nul 2>&1
|
dotnet restore >nul 2>&1
|
||||||
dotnet build --configuration Release >nul 2>&1
|
dotnet build --configuration Release >nul 2>&1
|
||||||
|
ECHO.
|
||||||
|
ECHO NadekoBot installation completed successfully...
|
||||||
::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)
|
||||||
:freshinstall
|
:freshinstall
|
||||||
::Moves the NadekoBot folder to keep things tidy
|
::Moves the NadekoBot folder to keep things tidy
|
||||||
|
ECHO.
|
||||||
|
ECHO Moving files, Please wait...
|
||||||
ROBOCOPY "%root%NadekoInstall_Temp" "%rootdir%" /E /MOVE >nul 2>&1
|
ROBOCOPY "%root%NadekoInstall_Temp" "%rootdir%" /E /MOVE >nul 2>&1
|
||||||
IF %ERRORLEVEL% GEQ 8 (GOTO :copyerror)
|
IF %ERRORLEVEL% GEQ 8 (GOTO :copyerror)
|
||||||
GOTO :end
|
IF EXIST "%PROGRAMFILES(X86)%" (GOTO 64BIT) ELSE (GOTO 32BIT)
|
||||||
:backupinstall
|
:backupinstall
|
||||||
TITLE Backing up old files
|
TITLE Backing up old files...
|
||||||
|
ECHO.
|
||||||
|
ECHO Moving and Backing up old files...
|
||||||
::Recursively copies all files and folders from NadekoBot to NadekoBot_Old
|
::Recursively copies all files and folders from NadekoBot to NadekoBot_Old
|
||||||
ROBOCOPY "%root%NadekoBot" "%root%NadekoBot_Old" /MIR >nul 2>&1
|
ROBOCOPY "%root%NadekoBot" "%root%NadekoBot_Old" /MIR >nul 2>&1
|
||||||
IF %ERRORLEVEL% GEQ 8 (GOTO :copyerror)
|
IF %ERRORLEVEL% GEQ 8 (GOTO :copyerror)
|
||||||
@ -70,7 +83,7 @@ IF EXIST "%root%NadekoBot\" (GOTO :backupinstall)
|
|||||||
RMDIR "%root%NadekoBot\" /S /Q >nul 2>&1
|
RMDIR "%root%NadekoBot\" /S /Q >nul 2>&1
|
||||||
ROBOCOPY "%root%NadekoInstall_Temp" "%rootdir%" /E /MOVE >nul 2>&1
|
ROBOCOPY "%root%NadekoInstall_Temp" "%rootdir%" /E /MOVE >nul 2>&1
|
||||||
IF %ERRORLEVEL% GEQ 8 (GOTO :copyerror)
|
IF %ERRORLEVEL% GEQ 8 (GOTO :copyerror)
|
||||||
GOTO :end
|
IF EXIST "%PROGRAMFILES(X86)%" (GOTO 64BIT) ELSE (GOTO 32BIT)
|
||||||
:dotnet
|
:dotnet
|
||||||
::Terminates the batch script if it can't run dotnet --version
|
::Terminates the batch script if it can't run dotnet --version
|
||||||
TITLE Error!
|
TITLE Error!
|
||||||
@ -102,6 +115,25 @@ IF EXIST "%root%NadekoBot\" (GOTO :backupinstall)
|
|||||||
PAUSE >nul 2>&1
|
PAUSE >nul 2>&1
|
||||||
CD /D "%root%"
|
CD /D "%root%"
|
||||||
GOTO :EOF
|
GOTO :EOF
|
||||||
|
:64BIT
|
||||||
|
ECHO.
|
||||||
|
ECHO Your System Architecture is 64bit...
|
||||||
|
GOTO end
|
||||||
|
:32BIT
|
||||||
|
ECHO.
|
||||||
|
ECHO Your System Architecture is 32bit...
|
||||||
|
timeout /t 5
|
||||||
|
ECHO.
|
||||||
|
ECHO Downloading libsodium.dll and libopus.dll...
|
||||||
|
SET "FILENAME=%~dp0\NadekoBot\src\NadekoBot\libsodium.dll"
|
||||||
|
bitsadmin.exe /transfer "Downloading libsodium.dll" /priority high https://github.com/Kwoth/NadekoBot/raw/dev/src/NadekoBot/_libs/32/libsodium.dll "%FILENAME%"
|
||||||
|
ECHO libsodium.dll downloaded.
|
||||||
|
ECHO.
|
||||||
|
timeout /t 5
|
||||||
|
SET "FILENAME=%~dp0\NadekoBot\src\NadekoBot\opus.dll"
|
||||||
|
bitsadmin.exe /transfer "Downloading libopus.dll" /priority high https://github.com/Kwoth/NadekoBot/raw/dev/src/NadekoBot/_libs/32/opus.dll "%FILENAME%"
|
||||||
|
ECHO libopus.dll downloaded.
|
||||||
|
GOTO end
|
||||||
:end
|
:end
|
||||||
::Normal execution of end of script
|
::Normal execution of end of script
|
||||||
TITLE Installation complete!
|
TITLE Installation complete!
|
||||||
|
Loading…
Reference in New Issue
Block a user