-
Notifications
You must be signed in to change notification settings - Fork 15
/
MakeRelease.bat
45 lines (30 loc) · 1.03 KB
/
MakeRelease.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
SET mod_name=Locks
SET target_directory=D:\Gry\Steam\steamapps\common\RimWorld\Mods\%mod_name%
SET zip_directory=C:\Users\Hazzer\Desktop\%mod_name%.zip
:: ========= Copy ==========
rd "%target_directory%" /s /q
mkdir "%target_directory%"
:: About
mkdir "%target_directory%\About"
xcopy "About\*.*" "%target_directory%\About" /e
:: Languages
mkdir "%target_directory%\Languages"
xcopy "Languages\*.*" "%target_directory%\Languages" /e
:: Textures
mkdir "%target_directory%\Textures"
xcopy "Textures\*.*" "%target_directory%\Textures" /e
:: 1.0
mkdir "%target_directory%\1.0"
xcopy "1.0\*.*" "%target_directory%\1.0" /e
:: 1.0
mkdir "%target_directory%\1.2"
xcopy "1.2\*.*" "%target_directory%\1.2" /e
:: 1.0
mkdir "%target_directory%\1.3"
xcopy "1.3\*.*" "%target_directory%\1.3" /e
:: LoadFolders.xml
copy "LoadFolders.xml" "%target_directory%\LoadFolders.xml"
:: changelog.txt
copy "changelog.txt" "%target_directory%\changelog.txt"
:: ========= Zip archive ==========
"D:\Programy\7-Zip\7z.exe" a -r "%zip_directory%" "%target_directory%\*"