mirror of
https://github.com/Grasscutters/GrassClipper.git
synced 2024-11-16 04:45:34 +00:00
java version checking
This commit is contained in:
parent
474752df17
commit
66abd0feba
@ -34,6 +34,9 @@ echo Downloading keystore.p12...
|
|||||||
:: Download the keystore.p12 file
|
:: Download the keystore.p12 file
|
||||||
powershell Invoke-WebRequest -Uri %ARTIFACT_URL% -OutFile "./%FOLDER_NAME%/keystore.p12"
|
powershell Invoke-WebRequest -Uri %ARTIFACT_URL% -OutFile "./%FOLDER_NAME%/keystore.p12"
|
||||||
|
|
||||||
|
:: Check java version, this will automatically output some tuff
|
||||||
|
call .\scripts\javaver.cmd %BRANCH%
|
||||||
|
|
||||||
:: Allow resource downloading to be optional, since it takes a while
|
:: Allow resource downloading to be optional, since it takes a while
|
||||||
set REPLY=y
|
set REPLY=y
|
||||||
set /p "REPLY=Download server resources? (This can take a while) [y|n]:"
|
set /p "REPLY=Download server resources? (This can take a while) [y|n]:"
|
||||||
|
@ -21,16 +21,30 @@ if %BRANCH% EQU stable (
|
|||||||
:: Ensure java 8
|
:: Ensure java 8
|
||||||
if %MAJOR% EQU 1 (
|
if %MAJOR% EQU 1 (
|
||||||
if %MINOR% LSS 8 (
|
if %MINOR% LSS 8 (
|
||||||
echo Java version is less than 8, please download Java 8
|
echo =======================================================================================
|
||||||
|
echo !! Java version is less than 8 !!
|
||||||
|
echo Please download Java 8 to ensure %BRANCH% branch server launches correctly.
|
||||||
|
echo =======================================================================================
|
||||||
exit /b
|
exit /b
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if %MAJOR% NEQ 1 (
|
||||||
|
echo =======================================================================================
|
||||||
|
echo !! Java version is not 8 !!
|
||||||
|
echo Please download Java 8 to ensure %BRANCH% branch server launches correctly.
|
||||||
|
echo =======================================================================================
|
||||||
|
exit /b
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
if %BRANCH% EQU development (
|
if %BRANCH% EQU development (
|
||||||
:: Ensure java 17
|
:: Ensure java 17
|
||||||
if %MAJOR% LSS 17 (
|
if %MAJOR% LSS 17 (
|
||||||
echo Java version is less than 17, please download Java 17
|
echo =======================================================================================
|
||||||
|
echo !! Java version is less than 17 !!
|
||||||
|
echo Please download Java 17 to ensure %BRANCH% branch server launches correctly.
|
||||||
|
echo =======================================================================================
|
||||||
exit /b
|
exit /b
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user