Skip to content

Commit 689954c

Browse files
committed
Add batch build script for AppVeyor
1 parent 859c2b3 commit 689954c

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

xrbuild.cmd

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
md res\bins\
2+
3+
if %PLATFORM% == 'Debug' if %CONFIGURATION% == 'x86' goto :DX86
4+
if %PLATFORM% == 'Debug' if %CONFIGURATION% == 'x64' goto :DX64
5+
if %PLATFORM% == 'Release' if %CONFIGURATION% == 'x86' goto :RX86
6+
if %PLATFORM% == 'Release' if %CONFIGURATION% == 'x64' goto :RX64
7+
8+
echo FAIL
9+
goto :END
10+
11+
:DX86
12+
cd bin\Win32\Debug
13+
copy *.dll ..\..\..\res\bins\
14+
copy *.exe ..\..\..\res\bins\
15+
cd ..\..\..\
16+
dir
17+
copy License.txt .\res\
18+
copy README.md .\res\
19+
cd res\
20+
7z a xdOpenXRay.Dx86.7z .\*
21+
goto :END
22+
23+
:DX64
24+
cd bin\Win64\Debug
25+
copy *.dll ..\..\..\res\bins\
26+
copy *.exe ..\..\..\res\bins\
27+
cd ..\..\..\
28+
dir
29+
copy License.txt .\res\
30+
copy README.md .\res\
31+
cd res\
32+
7z a xdOpenXRay.Dx64.7z .\*
33+
goto :END
34+
35+
:RX86
36+
cd bin\Win86\Release
37+
copy *.dll ..\..\..\res\bins\
38+
copy *.exe ..\..\..\res\bins\
39+
cd ..\..\..\
40+
dir
41+
copy License.txt .\res\
42+
copy README.md .\res\
43+
cd res\
44+
7z a xdOpenXRay.Rx86.7z .\*
45+
goto :END
46+
47+
:RX64
48+
cd bin\Win64\Release
49+
copy *.dll ..\..\..\res\bins\
50+
copy *.exe ..\..\..\res\bins\
51+
cd ..\..\..\
52+
dir
53+
copy License.txt .\res\
54+
copy README.md .\res\
55+
cd res\
56+
7z a xdOpenXRay.Rx64.7z .\*
57+
goto :END
58+
59+
:END

0 commit comments

Comments
 (0)