Script for Windows build

This commit is contained in:
MoneroOcean 2018-08-05 15:09:19 +02:00
parent faa0532237
commit 0f880db56f

18
build.bat Normal file
View file

@ -0,0 +1,18 @@
@echo off
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
rmdir /S /Q build
del %~dp0\xmrig-%1-win64.zip
mkdir build &&^
cd build &&^
git clone https://github.com/MoneroOcean/xmrig.git &&^
git clone https://github.com/xmrig/xmrig-deps.git &&^
mkdir xmrig\build &&^
cd xmrig\build &&^
git checkout %1 &&^
cmake .. -G "Visual Studio 15 2017 Win64" -DXMRIG_DEPS=%~dp0\build\xmrig-deps\msvc2017\x64 &&^
msbuild /p:Configuration=Release xmrig.sln &&^
cd Release &&^
copy ..\..\src\config.json . &&^
7za a -tzip -mx %~dp0\xmrig-%1-win64.zip xmrig.exe config.json &&^
cd %~dp0 &&^
rmdir /S /Q build