mirror of
https://gitee.com/xiarenalofs/squad-rain-ops-mini.git
synced 2026-08-05 13:05:52 +08:00
41 lines
1.1 KiB
Batchfile
41 lines
1.1 KiB
Batchfile
@echo off
|
|
echo =======================================================
|
|
echo RainOps RCON Query Build Script (Linux x64)
|
|
echo =======================================================
|
|
echo.
|
|
|
|
echo [1/3] Cleaning old files...
|
|
if exist "bin\Release\net6.0\linux-x64\publish" (
|
|
rd /s /q "bin\Release\net6.0\linux-x64\publish"
|
|
echo Old files cleaned.
|
|
) else (
|
|
echo No clean up needed.
|
|
)
|
|
echo.
|
|
|
|
echo [2/3] Publishing single file (linux-x64)...
|
|
echo Executing: dotnet publish -c Release -r linux-x64 --self-contained true -p:PublishSingleFile=true
|
|
echo.
|
|
|
|
dotnet publish -c Release -r linux-x64 --self-contained true -p:PublishSingleFile=true
|
|
|
|
if %errorlevel% neq 0 (
|
|
echo.
|
|
echo [ERROR] Build failed! Please check the error messages above.
|
|
color 0c
|
|
pause
|
|
exit /b %errorlevel%
|
|
)
|
|
|
|
echo.
|
|
echo [3/3] Build success!
|
|
echo.
|
|
echo =======================================================
|
|
echo Output Location:
|
|
echo bin\Release\net6.0\linux-x64\publish\RainOpsMini
|
|
echo =======================================================
|
|
echo.
|
|
|
|
explorer "bin\Release\net6.0\linux-x64\publish"
|
|
pause
|