-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
MakeRelease.bat
58 lines (42 loc) · 1.43 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
46
47
48
49
50
51
52
53
54
55
56
57
58
SET mod_name=PrisonLabor
SET target_directory=D:\Gry\Steam\steamapps\common\RimWorld\Mods\%mod_name%
SET zip_directory=C:\Users\Hazzer\Desktop\%mod_name%.zip
:: ========= Copy ==========
del "%zip_directory%"
rd "%target_directory%" /s /q
mkdir "%target_directory%"
:: About
mkdir "%target_directory%\About"
xcopy "About\*.*" "%target_directory%\About" /e
:: Assemblies
::mkdir "%target_directory%\Assemblies"
::xcopy "Assemblies\*.*" "%target_directory%\Assemblies" /e
:: Defs
::mkdir "%target_directory%\Defs"
::xcopy "Defs\*.*" "%target_directory%\Defs" /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.1
mkdir "%target_directory%\1.1"
xcopy "1.1\*.*" "%target_directory%\1.1" /e
:: 1.2
mkdir "%target_directory%\1.2"
xcopy "1.2\*.*" "%target_directory%\1.2" /e
:: 1.3
mkdir "%target_directory%\1.3"
xcopy "1.3\*.*" "%target_directory%\1.3" /e
mkdir "%target_directory%\Ideology"
xcopy "Ideology\*.*" "%target_directory%\Ideology" /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%\*"