mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-08 12:18:54 -05:00
Make .bat files default to highest 3.* installation
This commit is contained in:
parent
c7284ffa2a
commit
607f88cf75
10
startRed.bat
10
startRed.bat
@ -6,7 +6,7 @@ pushd %~dp0
|
||||
::Attempts to start py launcher without relying on PATH
|
||||
%SYSTEMROOT%\py.exe --version > NUL 2>&1
|
||||
IF %ERRORLEVEL% NEQ 0 GOTO attempt
|
||||
%SYSTEMROOT%\py.exe -3.5 red.py
|
||||
%SYSTEMROOT%\py.exe -3 red.py
|
||||
PAUSE
|
||||
GOTO end
|
||||
|
||||
@ -14,7 +14,7 @@ GOTO end
|
||||
:attempt
|
||||
py.exe --version > NUL 2>&1
|
||||
IF %ERRORLEVEL% NEQ 0 GOTO lastattempt
|
||||
py.exe -3.5 red.py
|
||||
py.exe -3 red.py
|
||||
PAUSE
|
||||
GOTO end
|
||||
|
||||
@ -27,9 +27,9 @@ PAUSE
|
||||
GOTO end
|
||||
|
||||
:message
|
||||
echo Couldn't find a valid Python 3.5 installation. Python needs to be installed and available in the PATH environment
|
||||
echo variable.
|
||||
echo Couldn't find a valid Python ^>3.5 installation. Python needs to be installed and available in the PATH environment
|
||||
echo variable.
|
||||
echo https://twentysix26.github.io/Red-Docs/red_win_requirements/#software
|
||||
PAUSE
|
||||
|
||||
:end
|
||||
:end
|
||||
|
||||
@ -8,7 +8,7 @@ pushd %~dp0
|
||||
::Attempts to start py launcher without relying on PATH
|
||||
%SYSTEMROOT%\py.exe --version > NUL 2>&1
|
||||
IF %ERRORLEVEL% NEQ 0 GOTO attempt
|
||||
%SYSTEMROOT%\py.exe -3.5 red.py
|
||||
%SYSTEMROOT%\py.exe -3 red.py
|
||||
timeout 3
|
||||
GOTO loopstart
|
||||
|
||||
@ -16,7 +16,7 @@ GOTO loopstart
|
||||
:attempt
|
||||
py.exe --version > NUL 2>&1
|
||||
IF %ERRORLEVEL% NEQ 0 GOTO lastattempt
|
||||
py.exe -3.5 red.py
|
||||
py.exe -3 red.py
|
||||
timeout 3
|
||||
GOTO loopstart
|
||||
|
||||
@ -29,9 +29,9 @@ timeout 3
|
||||
GOTO loopstart
|
||||
|
||||
:message
|
||||
echo Couldn't find a valid Python 3.5 installation. Python needs to be installed and available in the PATH environment
|
||||
echo variable.
|
||||
echo Couldn't find a valid Python ^>3.5 installation. Python needs to be installed and available in the PATH environment
|
||||
echo variable.
|
||||
echo https://twentysix26.github.io/Red-Docs/red_win_requirements/#software
|
||||
PAUSE
|
||||
|
||||
:end
|
||||
:end
|
||||
|
||||
@ -9,7 +9,7 @@ if NOT %errorLevel% == 0 (
|
||||
echo Right click on it ^-^> Run as administrator
|
||||
echo.
|
||||
PAUSE
|
||||
GOTO end
|
||||
GOTO end
|
||||
)
|
||||
|
||||
::Checking git and updating
|
||||
@ -24,7 +24,7 @@ echo Updating requirements...
|
||||
::Attempts to start py launcher without relying on PATH
|
||||
%SYSTEMROOT%\py.exe --version > NUL 2>&1
|
||||
IF %ERRORLEVEL% NEQ 0 GOTO attempt
|
||||
%SYSTEMROOT%\py.exe -3.5 -m pip install --upgrade -r requirements.txt
|
||||
%SYSTEMROOT%\py.exe -3 -m pip install --upgrade -r requirements.txt
|
||||
PAUSE
|
||||
GOTO end
|
||||
|
||||
@ -32,7 +32,7 @@ GOTO end
|
||||
:attempt
|
||||
py.exe --version > NUL 2>&1
|
||||
IF %ERRORLEVEL% NEQ 0 GOTO lastattempt
|
||||
py.exe -3.5 -m pip install --upgrade -r requirements.txt
|
||||
py.exe -3 -m pip install --upgrade -r requirements.txt
|
||||
PAUSE
|
||||
GOTO end
|
||||
|
||||
@ -45,7 +45,7 @@ PAUSE
|
||||
GOTO end
|
||||
|
||||
:pythonmessage
|
||||
echo Couldn't find a valid Python 3.5 installation. Python needs to be installed and available in the PATH environment variable.
|
||||
echo Couldn't find a valid Python ^>3.5 installation. Python needs to be installed and available in the PATH environment variable.
|
||||
echo https://twentysix26.github.io/Red-Docs/red_install_windows/#software
|
||||
PAUSE
|
||||
GOTO end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user