-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.bat
26 lines (26 loc) · 903 Bytes
/
main.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
::=====setting environment=====
@ECHO OFF
set mod_desc=ETTOT.mod
set mod_dir=ETTOT
::=====setting environment end=====
::=====checking=====
ECHO Time:%date%
ECHO Checking the required folder...
if not exist output\ ( mkdir output\ ) else ( del /F /S /Q output\ & rmdir /S /Q output\ & mkdir output\ )
if not exist output\%mod_dir% mkdir output\%mod_dir%\
if exist mod.zip del /F /S /Q mod.zip
::=====checking end=====
::=====processing=====
xcopy %mod_dir%\ output\%mod_dir% /E /Q /C /Y
xcopy mod_descriptor\ output\ /E /Q /C /Y
ECHO path="mod/%mod_dir%" >> output\%mod_desc%
xcopy mod_descriptor\%mod_desc% output\%mod_dir%\ /Q /C /Y
ren output\%mod_dir%\%mod_desc% descriptor.mod
xcopy CHANGELOG.md output\%mod_dir%\ /Q /C /Y
xcopy thumbnail.png output\%mod_dir%\ /Q /C /Y
ECHO.
ECHO Compressing the mod files...
7z.exe a mod.zip .\output\*
::=====processing end=====
ECHO.
ECHO End of script running.