Kaynağa Gözat

besseres build script

Kolja Strohm 6 yıl önce
ebeveyn
işleme
2eec6732e2
2 değiştirilmiş dosya ile 16 ekleme ve 2 silme
  1. 1 1
      SpielServer/start.cpp
  2. 15 1
      build.bat

+ 1 - 1
SpielServer/start.cpp

@@ -54,7 +54,7 @@ int main()
 	dat->release();
 	std::cout << "SS: Der Server ist heruntergefahren.\n";
 	file.close();
-	std::cout.rdbuf( sbuf );
+    std::cout.rdbuf( sbuf );
     Framework::releaseFramework();
 	return 0;
 }

+ 15 - 1
build.bat

@@ -1,2 +1,16 @@
+:DebugLinux64
+SET RETURN=DebugLinux64
+SET NEXT=ReleaseLinux64
 "D:\Visual Studio 2017\MSBuild\15.0\Bin\MSBuild.exe" "Spiel Server.sln" /t:rebuild /p:configuration=debug /p:platform=x64
-"D:\Visual Studio 2017\MSBuild\15.0\Bin\MSBuild.exe" "Spiel Server.sln" /t:rebuild /p:configuration=release /p:platform=x64
+if errorlevel 1 GOTO Error
+:ReleaseLinux64
+SET RETURN=ReleaseLinux64
+SET NEXT=End
+"D:\Visual Studio 2017\MSBuild\15.0\Bin\MSBuild.exe" "Spiel Server.sln" /t:rebuild /p:configuration=release /p:platform=x64
+if errorlevel 1 GOTO Error
+GOTO End
+:Error
+SET /p redo=Nochmal versuchen?(j/n):
+IF /I '%redo%' equ 'j' GOTO %RETURN%
+GOTO %NEXT%
+:End