blob: 9e911f750430d5933302377b702f03dcb9732d97 (
plain)
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
61
|
@echo off
echo WARNING!!! You are about to compile and upload STABLE versions of Miranda NG! Are you absolutely sure?!
pause
set comp=bin15
for /F "tokens=1,2,3,4 delims= " %%i in (build/build.no.stable) do (
if "%%l" == "" (
set Branch=%%i_%%j_%%k
set MirVer=%%i.%%j.%%k
) else (
set Branch=%%i_%%j_%%k_%%l
set MirVer=%%i.%%j.%%k.%%l
)
)
call git_update.bat %Branch%
set GIT_STATUS=%ERRORLEVEL%
if %GIT_STATUS%==0 echo Git update success
if not %GIT_STATUS%==0 goto :Error
xcopy /S /Y tools\build_scripts\*.* . >nul
del /F /Q version.txt
pushd build
copy build.no.stable build.no
copy make_ver_stable.bat make_ver.bat
popd
echo Building v%MirVer% > version.txt
start /min /wait z1_ReBuild_Full.bat 32 %comp%
start /min /wait z1_ReBuild_Full.bat 64 %comp%
call z2_PackPluginUpdater.bat 32 DEV_STABLE %comp%
call z2_PackPluginUpdater.bat 64 DEV_STABLE %comp%
pushd %comp%
if exist z_Errors*.txt echo There were errors! && pause
popd
call z3_PackArchivesStable.bat 32 %comp%
call z3_PackArchivesStable.bat 64 %comp%
call z4_UploadPluginUpdaterStable.bat 32
call z4_UploadPluginUpdaterStable.bat 64
call z5_UploadArchivesStable.bat PASS
goto :eof
:Error
echo GIT FAIL! > git_error.txt
echo ============================= GIT FAIL! =============================
pause
exit
|