-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathbuild.bat
More file actions
46 lines (34 loc) · 1.26 KB
/
build.bat
File metadata and controls
46 lines (34 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
@echo off
cls
dotnet --version >nul 2>&1
if %ERRORLEVEL% neq 0 (
echo .NET SDK is not installed. Please install .NET SDK to continue.
pause
exit /b
)
cd /d "%~dp0"
set rootOutputDir="%~dp0build"
echo Publishing FortBackend to "build/FortBackend" folder...
dotnet publish "FortBackend/FortBackend.csproj" --configuration Release --runtime win-x64 --output "%rootOutputDir%/FortBackend" --self-contained -p:PublishSingleFile=true
if %ERRORLEVEL% neq 0 (
echo Publish failed for FortBackend.
pause
exit /b
)
echo Publishing FortMatchmaker to "build/FortMatchmaker" folder...
dotnet publish "FortMatchmaker/FortMatchmaker.csproj" --configuration Release --runtime win-x64 --output "%rootOutputDir%/FortMatchmaker" --self-contained -p:PublishSingleFile=true
if %ERRORLEVEL% neq 0 (
echo Publish failed for FortMatchmaker.
pause
exit /b
)
setlocal
set "SCRIPT_DIR=%~dp0"
echo Installing "FortLauncherV2"...
start "" /D "%SCRIPT_DIR%FortLauncher\FortLauncherV2" cmd /c install.bat
echo Installing "FortDashboard"...
start "" /D "%SCRIPT_DIR%FortDashboard" cmd /c install.bat
endlocal
echo All projects published successfully to the "build" folder!
echo Note FortLauncher and FortDashboard modules has been installed, You manually have to build it!
pause