forked from SlimeVoid/SlimevoidLibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SlimevoidLib.bat
72 lines (61 loc) · 1.73 KB
/
SlimevoidLib.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
set programdir="C:\Programming"
set packagedir="%programdir%\Packages"
set repodir="%programdir%\Repositories"
set forgedir="%repodir%\MinecraftForge"
set fmldir="%repodir%\MinecraftForge\fml"
set mcpdir="%forgedir%\mcp"
set euryscore="%repodir%\EurysCore-FML"
cd %mcpdir%
if not exist %euryscore% GOTO :ECFAIL
GOTO :EC
:EC
if exist %mcpdir%\src GOTO :COPYSRC
GOTO :ECFAIL
:COPYSRC
if not exist "%mcpdir%\src-work" GOTO :CREATESRC
GOTO :ECFAIL
:CREATESRC
mkdir "%mcpdir%\src-work"
xcopy "%mcpdir%\src\*.*" "%mcpdir%\src-work\" /S
if exist "%mcpdir%\src-work" GOTO :COPYEC
GOTO :ECFAIL
:COPYEC
xcopy "%euryscore%\SV-common\*.*" "%mcpdir%\src\minecraft" /S
pause
call %mcpdir%\recompile.bat
call %mcpdir%\reobfuscate.bat
echo Recompile and Reobf Completed Successfully
pause
:REPACKAGE
if not exist "%mcpdir%\reobf" GOTO :ECFAIL
if exist "%packagedir%\SlimevoidLib" (
del "%packagedir%\SlimevoidLib\*.*" /S /Q
rmdir "%packagedir%\SlimevoidLib" /S /Q
)
mkdir "%packagedir%\SlimevoidLib"
xcopy "%mcpdir%\reobf\minecraft\*.*" "%packagedir%\SlimevoidLib\" /S
xcopy "%euryscore%\SV-resources\*.*" "%packagedir%\SlimevoidLib\" /S
echo "Slimevoid Library Packaged Successfully
pause
ren "%mcpdir%\src" src-old
echo Recompiled Source folder renamed
pause
ren "%mcpdir%\src-work" src
echo Original Source folder restored
pause
del "%mcpdir%\src-old" /S /Q
del "%mcpdir%\reobf" /S /Q
if exist "%mcpdir%\src-old" rmdir "%mcpdir%\src-old" /S /Q
if exist "%mcpdir%\reobf" rmdir "%mcpdir%\reobf" /S /Q
echo Folder structure reset
GOTO :ECCOMPLETE
:ECFAIL
echo Could not compile Eurys Core
pause
GOTO :EOF
:ECCOMPLETE
echo Slimevoid Library completed compile successfully
pause
GOTO :EOF
:EOF