-
Notifications
You must be signed in to change notification settings - Fork 0
/
builder.bat
72 lines (58 loc) · 1.67 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
@echo off
:start
cls
ECHO ============MAIN MENU============
ECHO -------------------------------------
echo 1. Build Desktop Application
echo 2. Run Desktop Application
echo 3. Package HTML Application
echo 4. Build and Package Desktop app for Sharing
echo 8. Maven Clean
ECHO -------------------------------------
set INPUT=
set /P INPUT=Please select an option:
IF /I '%INPUT%'=='1' GOTO BuildDesktop
IF /I '%INPUT%'=='2' GOTO runDesktop
IF /I '%INPUT%'=='3' GOTO buildHtml
IF /I '%INPUT%'=='4' GOTO package
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
: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/proigo-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/proigo-desktop-1.0-SNAPSHOT-jar-with-dependencies.jar" game
pause
GOTO start