Cxbx-Reloaded/appveyor-gather.bat

37 lines
739 B
Batchfile
Raw Normal View History

2018-02-15 23:36:25 +00:00
:: Cxbx-Reloaded gather script
2018-02-15 23:36:25 +00:00
@if "%1"=="" goto show_usage
@set ZIP_APP="%cd%\import\7za\7za.exe"
@set BUILD_PATH="%cd%\build\win32\%1\"
@set ARTIFACT_PATH="%cd%\export\%1.zip"
:: Add generic resources
2018-02-14 22:09:59 +00:00
@call %ZIP_APP% u %ARTIFACT_PATH% COPYING README.md
:: Check for build resources
@if not exist %BUILD_PATH% goto missing_build
@pushd %BUILD_PATH%
2018-02-14 22:09:59 +00:00
:: Add Cxbx binaries
@call %ZIP_APP% u %ARTIFACT_PATH% Cxbx.exe glew32.dll subhook.dll d3d8.dll
2018-02-14 22:09:59 +00:00
:: Add debugger binaries
@call %ZIP_APP% u %ARTIFACT_PATH% CxbxDebugger.exe capstone.dll cs_x86.dll
@popd
@goto eof
:missing_build
@echo Missing build directory %BUILD_PATH%
2018-02-15 23:36:25 +00:00
@set ERRORLEVEL=1
@goto eof
2018-02-15 23:36:25 +00:00
:show_usage
@echo Usage: %~0% build_config
@goto eof
:eof
2018-02-14 20:29:30 +00:00
@echo Gather complete