Skip to content

Commit

Permalink
Add batch build script for AppVeyor
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Dec 11, 2017
1 parent 859c2b3 commit 689954c
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions xrbuild.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
md res\bins\

if %PLATFORM% == 'Debug' if %CONFIGURATION% == 'x86' goto :DX86
if %PLATFORM% == 'Debug' if %CONFIGURATION% == 'x64' goto :DX64
if %PLATFORM% == 'Release' if %CONFIGURATION% == 'x86' goto :RX86
if %PLATFORM% == 'Release' if %CONFIGURATION% == 'x64' goto :RX64

echo FAIL
goto :END

:DX86
cd bin\Win32\Debug
copy *.dll ..\..\..\res\bins\
copy *.exe ..\..\..\res\bins\
cd ..\..\..\
dir
copy License.txt .\res\
copy README.md .\res\
cd res\
7z a xdOpenXRay.Dx86.7z .\*
goto :END

:DX64
cd bin\Win64\Debug
copy *.dll ..\..\..\res\bins\
copy *.exe ..\..\..\res\bins\
cd ..\..\..\
dir
copy License.txt .\res\
copy README.md .\res\
cd res\
7z a xdOpenXRay.Dx64.7z .\*
goto :END

:RX86
cd bin\Win86\Release
copy *.dll ..\..\..\res\bins\
copy *.exe ..\..\..\res\bins\
cd ..\..\..\
dir
copy License.txt .\res\
copy README.md .\res\
cd res\
7z a xdOpenXRay.Rx86.7z .\*
goto :END

:RX64
cd bin\Win64\Release
copy *.dll ..\..\..\res\bins\
copy *.exe ..\..\..\res\bins\
cd ..\..\..\
dir
copy License.txt .\res\
copy README.md .\res\
cd res\
7z a xdOpenXRay.Rx64.7z .\*
goto :END

:END

0 comments on commit 689954c

Please sign in to comment.