Skip to content

Commit 3326ce1

Browse files
committed
Exit script on msbuild error
1 parent 6763ea9 commit 3326ce1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build-natives/build-win.bat

+2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
premake5 --file=build-win.lua %1
44
msbuild steamworks4j.sln /p:Configuration=ReleaseDLL /p:Platform=Win32 /t:Rebuild
5+
@if %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%
56
copy bin\x32\ReleaseDLL\steamworks4j.dll ..\java-wrapper\src\main\resources\steamworks4j.dll
67
copy bin\x32\ReleaseDLL\steamworks4j-server.dll ..\server\src\main\resources\steamworks4j-server.dll
78
copy bin\x32\ReleaseDLL\steamworks4j-encryptedappticket.dll ..\server\src\main\resources\steamworks4j-encryptedappticket.dll
89
msbuild steamworks4j.sln /p:Configuration=ReleaseDLL /p:Platform=x64 /t:Rebuild
10+
@if %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%
911
copy bin\x64\ReleaseDLL\steamworks4j.dll ..\java-wrapper\src\main\resources\steamworks4j64.dll
1012
copy bin\x64\ReleaseDLL\steamworks4j-server.dll ..\server\src\main\resources\steamworks4j-server64.dll
1113
copy bin\x64\ReleaseDLL\steamworks4j-encryptedappticket.dll ..\server\src\main\resources\steamworks4j-encryptedappticket64.dll

0 commit comments

Comments
 (0)