-
Notifications
You must be signed in to change notification settings - Fork 0
/
builder.bat
86 lines (68 loc) · 1.74 KB
/
builder.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
@echo off
:start
cls
ECHO ============MAIN MENU============
ECHO -------------------------------------
echo 5. Build Android
echo 6. Build and Deploy Android
echo 7. Build Signed APK Android
echo 8. Maven Clean
ECHO -------------------------------------
set INPUT=
set /P INPUT=Please select an option:
IF /I '%INPUT%'=='5' GOTO BuildAndroid
IF /I '%INPUT%'=='6' GOTO Android
IF /I '%INPUT%'=='7' GOTO AndroidSigned
IF /I '%INPUT%'=='8' GOTO MavenClean
ECHO ============INVALID INPUT============
ECHO -------------------------------------
ECHO Please select a number from the Main
echo Menu [1-9] or select 'Q' to quit.
ECHO -------------------------------------
ECHO ======PRESS ANY KEY TO CONTINUE======
PAUSE > NUL
GOTO start
:Android
call %M2%/mvn install
pause
GOTO start
:AndroidSigned
call %M2%/mvn package -P sign
pause
GOTO start
:BuildAndroid
call %M2%/mvn package
pause
GOTO start
:BuildDesktop
call %M2%/mvn -Pdesktop package
ECHO ============POST DESKTOP INSTALL MENU============
ECHO -------------------------------------
echo 1. Run Desktop Application
echo 2. Re-Build Desktop Application
echo Or Select Any Other Option To Return To Main Menu
ECHO -------------------------------------
set INPUT=
set /P INPUT=Please select an option:
IF /I '%INPUT%'=='1' GOTO runDesktop
IF /I '%INPUT%'=='2' GOTO BuildDesktop
GOTO start
:runDesktop
call "%JAVA_HOME%/bin/java" -jar desktop/target/mcpcah-desktop-1.0-SNAPSHOT-jar-with-dependencies.jar
pause
GOTO start
:buildHtml
call %M2%/mvn -Phtml package > output.txt
pause
GOTO start
:MavenClean
call %M2%/mvn clean
pause
GOTO start
:package
call %M2%/mvn -Pdesktop package
mkdir game
xcopy Launcher.bat game
xcopy "desktop/target/soccar-desktop-2.0-SNAPSHOT-jar-with-dependencies.jar" game
pause
GOTO start