-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathbuild.bat
More file actions
93 lines (83 loc) · 3.44 KB
/
Copy pathbuild.bat
File metadata and controls
93 lines (83 loc) · 3.44 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
@echo off
setlocal enabledelayedexpansion
chcp 65001 >nul
:MAIN_MENU
cls
echo ╔══════════════════════════════════════╗
echo ║ XLib Builder ║
echo ╠══════════════════════════════════════╣
echo ║ [1] Compile XLib ║
echo ║ [2] Install dependency stubs ║
echo ║ [3] License ║
echo ║ [0] Quit ║
echo ╚══════════════════════════════════════╝
echo.
echo XLib dynamically links with proprietary Mojang binaries.
echo These are not provided automatically for compilation.
echo You can either install them manually through BuildTools
echo or compile XLib with stubs that provide the needed signatures
echo at compile time. Compiling with stubs makes no difference
echo for running XLib on a Bukkit server. It does however override
echo the Spigot servers installed to your local Maven repository.
echo If you are a developer who wants to compile other projects
echo against real Spigot servers, consider making a backup or
echo building server versions you're possibly missing with BuildTools.
echo.
echo Make sure JDK 8 or higher is installed. If not, you can get it here:
echo https://www.azul.com/downloads/?os=windows^&architecture=x86-64-bit^&package=jdk#zulu
echo.
set /p "CHOICE=Please choose [0-3]: "
if "%CHOICE%"=="1" goto COMPILE
if "%CHOICE%"=="2" goto INSTALL_STUBS
if "%CHOICE%"=="3" goto LICENSE
if "%CHOICE%"=="0" goto EXIT
echo [!] Invalid input. Please enter 1, 2 or 0.
timeout /t 2 >nul
goto MAIN_MENU
:COMPILE
cls
echo ╔══════════════════════════════════════╗
echo ║ Compiling... ║
echo ╚══════════════════════════════════════╝
echo.
java -jar mvnbt.jar --goal install --version 3.9.16
echo.
XLib compilation finished.
echo.
pause
goto MAIN_MENU
:INSTALL_STUBS
cls
echo ╔══════════════════════════════════════╗
echo ║ Installing dependencies stubs... ║
echo ╚══════════════════════════════════════╝
echo.
java -jar mvnbt.jar --dir nmsstub --goal install --version 3.9.16
echo.
Dependency stub installation finished.
:INSTALL_STUBS_DONE
echo.
echo ╔══════════════════════════════════════╗
echo ║ Proceed to compile XLib? ║
echo ╠══════════════════════════════════════╣
echo ║ 1. Compile XLib ║
echo ║ 0. Quit ║
echo ╚══════════════════════════════════════╝
echo.
set /p "COMPILE_NOW=Please choose [0-1]: "
if "%COMPILE_NOW%"=="1" goto COMPILE
if "%COMPILE_NOW%"=="0" goto EXIT
echo [!] Invalid input. Please enter 1 or 0.
timeout /t 2 >nul
goto INSTALL_STUBS_DONE
:LICENSE
cls
type LICENSE
echo.
pause
goto MAIN_MENU
:EXIT
cls
echo Good bye!
timeout /t 1 >nul
exit /b 0