forked from OCB7D2D/OcbElectricityOverhaul
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path01-CreateRelease.bat
58 lines (42 loc) · 1.1 KB
/
01-CreateRelease.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
@echo off
SET VERSION=snapshot
if not "%1"=="" (
SET VERSION=%1
)
goto MAIN
:BUILD
if not exist build\ (
mkdir build
)
if exist build\%NAME%\ (
echo remove existing directory
rmdir build\%NAME% /S /Q
)
mkdir build\%NAME%
echo create %VERSION%
xcopy %FOLDER%\*.xml build\%NAME%\
xcopy %FOLDER%\*.md build\%NAME%\
xcopy %FOLDER%\*.dll build\%NAME%\
xcopy %FOLDER%\Config build\%NAME%\Config\ /S
xcopy %FOLDER%\Resources build\%NAME%\Resources\ /S
xcopy %FOLDER%\UIAtlases build\%NAME%\UIAtlases\ /S
xcopy %FOLDER%\BepInEx build\%NAME%\BepInEx\ /S
xcopy %FOLDER%\patchers\*.dll build\%NAME%\patchers\
xcopy %FOLDER%\98-install-bepinex.sh build\%NAME%\
xcopy %FOLDER%\98-install-bepinex.bat build\%NAME%\
xcopy %FOLDER%\99-uninstall-bepinex.sh build\%NAME%\
xcopy %FOLDER%\99-uninstall-bepinex.bat build\%NAME%\
cd build
echo Packaging %NAME%-%VERSION%.zip
powershell Compress-Archive %NAME% %NAME%-%VERSION%.zip -Force
cd ..
SET RV=%ERRORLEVEL%
if "%CI%"=="" pause
exit /B %RV%
:MAIN
SET FOLDER=.
SET NAME=ElectricityOverhaul
call :BUILD
SET FOLDER=Addons\ZMXuiCPOCBEO
SET NAME=ZMXuiCPOCBEO
call :BUILD