Complete C# server cutover

This commit is contained in:
Nomads_Reach
2026-08-16 02:36:32 -04:00
parent ddadf87423
commit 757e614cdd
79 changed files with 923 additions and 13129 deletions
+34 -44
View File
@@ -3,64 +3,54 @@ setlocal enabledelayedexpansion
echo.
echo ================================================================================
echo Commonwealth Online - Qt GUI Setup Helper
echo Commonwealth Online - Qt Host and C# Server Setup Check
echo ================================================================================
echo.
echo This script will help you set up Qt6 for building the GUI.
echo.
REM Check CMake
cmake --version >nul 2>&1
if errorlevel 1 (
echo [ERROR] CMake not found. Please install from https://cmake.org/download
pause
echo [ERROR] CMake not found.
exit /b 1
)
echo [OK] CMake found
REM Check Visual Studio
if not exist "C:\Program Files\Microsoft Visual Studio\2022\Community" (
if not exist "C:\Program Files\Microsoft Visual Studio\2022\Professional" (
echo.
echo [ERROR] Visual Studio 2022 not found
echo Please install from https://visualstudio.microsoft.com/downloads/
pause
exit /b 1
)
dotnet --version >nul 2>&1
if errorlevel 1 (
echo [ERROR] .NET 8 SDK not found or dotnet is not in PATH.
exit /b 1
)
for /f "tokens=*" %%V in ('dotnet --version') do set DOTNET_VERSION=%%V
echo [OK] .NET SDK found: !DOTNET_VERSION!
if not exist "C:\Program Files\Microsoft Visual Studio\2022\Community" if not exist "C:\Program Files\Microsoft Visual Studio\2022\Professional" if not exist "C:\Program Files\Microsoft Visual Studio\2022\Enterprise" (
echo [ERROR] Visual Studio 2022 not found.
exit /b 1
)
echo [OK] Visual Studio 2022 found
REM Check Qt6
set QT6_FOUND=0
if exist "C:\Qt\6.8.0\msvc2022_64\lib\cmake\Qt6" set QT6_FOUND=1 & set QT_PATH=C:\Qt\6.8.0\msvc2022_64
if exist "C:\Qt\6.7.0\msvc2022_64\lib\cmake\Qt6" set QT6_FOUND=1 & set QT_PATH=C:\Qt\6.7.0\msvc2022_64
if exist "C:\Qt\6.6.0\msvc2022_64\lib\cmake\Qt6" set QT6_FOUND=1 & set QT_PATH=C:\Qt\6.6.0\msvc2022_64
if exist "C:\Qt\6.5.0\msvc2022_64\lib\cmake\Qt6" set QT6_FOUND=1 & set QT_PATH=C:\Qt\6.5.0\msvc2022_64
if exist "C:\Qt\6.4.0\msvc2022_64\lib\cmake\Qt6" set QT6_FOUND=1 & set QT_PATH=C:\Qt\6.4.0\msvc2022_64
if %QT6_FOUND%==0 (
echo.
echo [ERROR] Qt6 not found at standard locations
echo.
echo Qt6 installation required! Download from: https://www.qt.io/download-open-source
echo.
echo Installation paths checked:
echo - C:\Qt\6.8.0\msvc2022_64
echo - C:\Qt\6.7.0\msvc2022_64
echo - C:\Qt\6.6.0\msvc2022_64
echo - C:\Qt\6.5.0\msvc2022_64
echo - C:\Qt\6.4.0\msvc2022_64
echo.
echo If Qt6 is installed elsewhere, manually edit build.bat
echo and update the Qt6 search paths.
echo.
pause
exit /b 1
set QT_PATH=
for %%Q in (
"C:\Qt\6.11.1\msvc2022_64"
"C:\Qt\6.10.2\msvc2022_64"
"C:\Qt\6.8.0\msvc2022_64"
"C:\Qt\6.7.0\msvc2022_64"
"C:\Qt\6.6.0\msvc2022_64"
"C:\Qt\6.5.0\msvc2022_64"
"C:\Qt\6.4.0\msvc2022_64"
) do (
if exist "%%~Q\lib\cmake\Qt6" if !QT6_FOUND!==0 (
set QT6_FOUND=1
set QT_PATH=%%~Q
)
)
if %QT6_FOUND%==0 (
echo [ERROR] Qt6 MSVC 2022 package not found at the standard C:\Qt locations.
exit /b 1
)
echo [OK] Qt6 found at: %QT_PATH%
echo.
echo All prerequisites found! You can now run build.bat
echo.
pause
echo All prerequisites found. build.bat will build the Qt host and publish the bundled C# server.
exit /b 0