forked from KryptonCaptain/Thaumic-Dyes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.bat
126 lines (103 loc) · 2.98 KB
/
setup.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
:restart
@echo off
@ECHO ##########################################################################
@ECHO.
@ECHO Gradle startup script for Windows
@ECHO This is to prepare the source for use with an IDE.
@ECHO Optionally you may compile the .jar as well.
@ECHO.
@ECHO ##########################################################################
@ECHO Choose an IDE:
@ECHO [1] Eclipse
@ECHO [2] Idea (Intelij)
@ECHO [3] Build the source.
@echo off
@ECHO.
@ECHO.
:tryagain
set /p variable=""
IF "%variable%"=="1" (goto eclipse)
IF "%variable%"=="eclipse" (goto eclipse)
IF "%variable%"=="Eclipse" (goto eclipse)
IF "%variable%"=="2" (goto intelij)
IF "%variable%"=="Intelij" (goto intelij)
IF "%variable%"=="intelij" (goto intelij)
IF "%variable%"=="idea" (goto intelij)
IF "%variable%"=="Idea" (goto intelij)
IF "%variable%"=="3" (goto build)
pause
@ECHO Incorrect option, try again.
goto tryagain
:eclipse
@echo on
start call gradlew setupDecompWorkspace --refresh-dependencies
@echo off
@ECHO.
@ECHO.
@ ECHO After the other window finishes, close it and
pause
@echo on
start call gradlew eclipse
@echo off
@ECHO.
@ECHO.
@ ECHO After the other window finishes, close it and
pause
@ECHO ##########################################################################
@ECHO.
@ECHO Mod is ready to be opened in Eclipse.
@ECHO You may open the project via gradle or directory import.
@ECHO NOTICE: if you get an error asking you to select a deobfuscateor, you can find this in:
@ECHO %USERPROFILE%/.gradle/caches/minecraft/net/minecraftforge/forge/FORGEVERSION/unpacked/conf
@ECHO.
@ECHO You may now exit this window.
@ECHO.
@ECHO ##########################################################################
pause
goto quit
:intelij
@echo on
start call gradlew setupDecompWorkspace --refresh-dependencies
@echo off
@ECHO.
@ECHO.
@ ECHO After the other window finishes, close it and
pause
@echo on
start call gradlew idea
@echo off
@ECHO.
@ECHO.
@ ECHO After the other window finishes, close it and
pause
@ECHO ##########################################################################
@ECHO.
@ECHO Mod is ready to be opened in Intelij/Idea.
@ECHO You may open the project via gradle import or via: Traincraft-5.ipr
@ECHO NOTICE: if you get an error asking you to select a deobfuscateor, you can find this in:
@ECHO %USERPROFILE%/.gradle/caches/minecraft/net/minecraftforge/forge/FORGEVERSION/unpacked/conf
@ECHO.
@ECHO You may now exit this window.
@ECHO.
@ECHO ##########################################################################
pause
goto quit
:build
@echo on
start call gradlew build
@echo off
@ECHO.
@ECHO.
@ ECHO After the other window finishes, close it and
pause
@ECHO ##########################################################################
@ECHO.
@ECHO To find the compiled jar file look in /build/lib
@ECHO.
@ECHO You may now exit this window, or continue to go back to the main menu.
@ECHO.
@ECHO ##########################################################################
pause
goto restart
:quit
exit