-
Notifications
You must be signed in to change notification settings - Fork 24
/
manager.bat
87 lines (64 loc) · 1.5 KB
/
manager.bat
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
@ECHO off
cls
:start
cls
ECHO MAKE SURE THIS IS IN YOUR MAIN DIRECTORY WITH A FILE NAMED GRADLEW.BAT
ECHO This was designed for 1.12.2
ECHO
ECHO 1. Build jar file
ECHO 2. Run client
ECHO 3. Run server
ECHO 4. Run setup
ECHO 5. Clean project
ECHO.
CHOICE /C 12345 /M "Enter your choice:"
IF ERRORLEVEL 5 GOTO clean
IF ERRORLEVEL 4 GOTO setup
IF ERRORLEVEL 3 GOTO server
IF ERRORLEVEL 2 GOTO client
IF ERRORLEVEL 1 GOTO build
:build
cls
gradlew build
ECHO Would you like to return to start?
CHOICE /C 12 /M "1 for yes 2 for no"
IF ERRORLEVEL 2 GOTO exit
IF ERRORLEVEL 1 GOTO start
:client
cls
gradlew runClient
ECHO Would you like to return to start?
CHOICE /C 12 /M "1 for yes 2 for no"
IF ERRORLEVEL 2 GOTO exit
IF ERRORLEVEL 1 GOTO start
:server
CHOICE /C 12 /M "1 for yes 2 for no"
IF ERRORLEVEL 2 GOTO exit
IF ERRORLEVEL 1 GOTO start
:setup
ECHO.
ECHO.
ECHO Pick your coding software for it to setup.
CHOICE /C 12 /M "1 for idea 2 for eclipse"
IF ERRORLEVEL 2 GOTO idea
IF ERRORLEVEL 1 GOTO eclipse
:idea
cls
gradlew setupdecompworkspace idea genintellijruns
echo if you see no errors here continue, else search up the error and rerun the program.
pause
ECHO Would you like to return to start?
CHOICE /C 12 /M "1 for yes 2 for no"
IF ERRORLEVEL 2 GOTO exit
IF ERRORLEVEL 1 GOTO start
:eclipse
cls
gradlew setupdecompworkspace eclipse
ECHO Would you like to return to start?
CHOICE /C 12 /M "1 for yes 2 for no"
IF ERRORLEVEL 2 GOTO exit
IF ERRORLEVEL 1 GOTO start
:exit
cls
ECHO SHUTTING DOWN...
exit