-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.bat
60 lines (59 loc) · 2.45 KB
/
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
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
::=====setting environment=====
@ECHO OFF
set mod_desc=ETC.mod
set mod_dir=ETC
::=====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 *.zip del /F /S /Q *.zip
::=====checking end=====
::=====integrating files=====
ECHO.
ECHO Copying started.
ECHO.
xcopy eu4_chinese\ output\%mod_dir%\ /E /Q /C /Y
xcopy eu4_chinese_sup\ output\%mod_dir%\ /E /Q /C /Y
del /F /S /Q output\%mod_dir%\descriptor.mod
del /F /S /Q output\%mod_dir%\history\provinces
del /F /S /Q output\%mod_dir%\interface\endgamedialog.gui
@REM xcopy ExtendedTimeline\ output\%mod_dir%\ /E /Q /C /Y
xcopy cn_text\ output\%mod_dir%\ /E /Q /C /Y
xcopy addition\ output\%mod_dir%\ /E /Q /C /Y
xcopy mod_descriptor\%mod_desc% 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
::=====integrating files end=====
::=====post-processing=====
ECHO.
ECHO Copying the file is finished, finishing the aftermath...
ECHO.
@REM 7z.exe x ET.zip ExtendedTimeline/ -o.
::====fix crash====
@REM del /F /S /Q output\%mod_dir%\*_DE.txt
@REM del /F /S /Q output\%mod_dir%\*_DE.txt
@REM del /F /S /Q output\%mod_dir%\common\scripted_effects
@REM del /F /S /Q output\%mod_dir%\common\scripted_triggers
@REM rmdir /S /Q output\%mod_dir%\common\scripted_effects
@REM rmdir /S /Q output\%mod_dir%\common\scripted_triggers
@REM xcopy ExtendedTimeline\common\scripted_effects\00_scripted_effects.txt output\%mod_dir%\common\scripted_effects\ /Q /C /Y
@REM xcopy ExtendedTimeline\common\scripted_triggers\00_scripted_triggers.txt output\%mod_dir%\common\scripted_triggers\ /Q /C /Y
::====fix crash end====
xcopy CHANGELOG.md output\%mod_dir%\ /Q /C /Y
del output\%mod_dir%\thumbnail.png
xcopy thumbnail.png output\%mod_dir%\ /Q /C /Y
@REM del /F /S /Q output\%mod_dir%\*_DE.txt
@REM del /F /S /Q output\%mod_dir%\*_FR.txt
@REM del /F /S /Q output\%mod_dir%\*_SP.txt
@REM del /F /S /Q output\%mod_dir%\localisation\*_l_french.yml
@REM del /F /S /Q output\%mod_dir%\localisation\*_l_german.yml
@REM del /F /S /Q output\%mod_dir%\localisation\*_l_spanish.yml
ECHO.
ECHO Compressing the mod files...
7z.exe a %mod_dir%-%TAG_NAME%-%COMMIT_ID%.zip .\output\%mod_dir%*
::=====post-processing end=====
ECHO.
ECHO End of script running.