-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.bat
61 lines (44 loc) · 1.59 KB
/
build.bat
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
@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
)
echo Publishing FortLauncher to "build/FortLauncher" folder...
dotnet publish "FortLauncher/FortLauncher/FortLauncher.csproj" --configuration Release --runtime win-x64 --output "%rootOutputDir%/FortLauncher" --self-contained -p:PublishSingleFile=true
if %ERRORLEVEL% neq 0 (
echo Publish failed for FortLauncher.
pause
exit /b
)
:: echo Building FortDashboard to "build/FortDashboard" folder...
:: cd "$ROOT_OUTPUT_DIR/../FortDashboard"
:: npm install --verbose
:: if %ERRORLEVEL% neq 0 (
:: echo npm install failed for FortDashboard.
:: pause
:: exit /b
:: )
:: echo npm install completed successfully.
:: npm run build
echo "Building FortDashboard..."
echo All projects published successfully to the "build" folder!
pause