forked from WinMerge/winmerge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CreateRelease.cmd
44 lines (35 loc) · 950 Bytes
/
CreateRelease.cmd
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
set workdir=BuildTmp\Src
if "%1" == "vs2017" (
set vsversion=vs2017
) else (
set vsversion=vs2019
)
pushd "%~dp0"
rmdir /q /s %workdir% > NUL 2> NUL
mkdir %workdir% 2> NUL
git submodule init
git submodule update
git checkout-index -a -f --prefix=%workdir%\
for /d %%d in (Externals\*) do (
pushd %%d
if exist .git (
rmdir /q /s ..\..\%workdir%\%%d
mkdir ..\..\%workdir%\%%d
git checkout-index -a -f --prefix=..\..\%workdir%\%%d\
)
popd
)
pushd %workdir%
call DownloadDeps.cmd
call BuildAll.%vsversion%.cmd
mkdir ..\..\Build\Releases\PDB\%APPVER%\Win32 2> NUL
mkdir ..\..\Build\Releases\PDB\%APPVER%\x64 2> NUL
for /F %%f in (Build\Releases\files.txt) do (
copy %%f ..\..\Build\Releases\
)
copy Build\Releases\files.txt ..\..\Build\Releases\
copy Build\Release\*.pdb ..\..\Build\Releases\PDB\%APPVER%\Win32\
copy Build\x64\Release\*.pdb ..\..\Build\Releases\PDB\%APPVER%\x64\
popd
call UploadToVirusTotal.cmd
popd