Strengthen packaged server artifact checks

This commit is contained in:
Nomads_Reach
2026-08-16 02:57:12 -04:00
parent a788b5c076
commit 1fbfc3a51b
+8 -4
View File
@@ -39,15 +39,19 @@ if not exist "!SERVER_DIR!\CommonwealthOnline.Server.exe" (
exit /b 1
)
if exist "!SERVER_DIR!\*.py" (
echo ERROR: Python source found in staged server package.
exit /b 1
set PROHIBITED_FOUND=0
for /r "!SERVER_DIR!" %%F in (*.py *.pyw *.pyi *.pyc *.pyo *.whl *.egg requirements*.txt Pipfile Pipfile.lock pyproject.toml poetry.lock setup.py setup.cfg tox.ini) do (
if exist "%%F" (
echo ERROR: Prohibited legacy runtime artifact found in staged package: %%F
set PROHIBITED_FOUND=1
)
)
if "!PROHIBITED_FOUND!"=="1" exit /b 1
echo.
echo Deployment complete:
echo !DEPLOY_DIR!\CommonwealthOnlineHost.exe
echo !SERVER_DIR!\CommonwealthOnline.Server.exe
echo.
echo Copy the entire Release directory when distributing. Python and a separate .NET runtime are not required.
echo Copy the entire Release directory when distributing. The bundled server is self-contained.
exit /b 0