-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpack.bat
More file actions
87 lines (74 loc) · 2.58 KB
/
pack.bat
File metadata and controls
87 lines (74 loc) · 2.58 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
@echo off
chcp 65001 >nul
setlocal EnableDelayedExpansion
echo ========================================
echo Mud Code Generator - NuGet Package Build
echo ========================================
echo.
set CONFIGURATION=Release
set OUTPUT_DIR=artifacts\packages
if not exist "%OUTPUT_DIR%" mkdir "%OUTPUT_DIR%"
echo [1/4] Building Mud.HttpUtils...
dotnet build Core\Mud.HttpUtils\Mud.HttpUtils.csproj -c %CONFIGURATION% --nologo -v q
if errorlevel 1 (
echo [ERROR] Failed to build Mud.HttpUtils
exit /b 1
)
echo [2/4] Building Mud.HttpUtils.Generator...
dotnet build Core\Mud.HttpUtils.Generator\Mud.HttpUtils.Generator.csproj -c %CONFIGURATION% --nologo -v q
if errorlevel 1 (
echo [ERROR] Failed to build Mud.HttpUtils.Generator
exit /b 1
)
echo [3/4] Building Mud.EntityCodeGenerator...
dotnet build Core\Mud.EntityCodeGenerator\Mud.EntityCodeGenerator.csproj -c %CONFIGURATION% --nologo -v q
if errorlevel 1 (
echo [ERROR] Failed to build Mud.EntityCodeGenerator
exit /b 1
)
echo [4/4] Building Mud.ServiceCodeGenerator...
dotnet build Core\Mud.ServiceCodeGenerator\Mud.ServiceCodeGenerator.csproj -c %CONFIGURATION% --nologo -v q
if errorlevel 1 (
echo [ERROR] Failed to build Mud.ServiceCodeGenerator
exit /b 1
)
echo.
echo ========================================
echo Creating NuGet Packages...
echo ========================================
echo.
echo [1/4] Packing Mud.HttpUtils...
dotnet pack Core\Mud.HttpUtils\Mud.HttpUtils.csproj -c %CONFIGURATION% --output %OUTPUT_DIR% --nologo -v q
if errorlevel 1 (
echo [ERROR] Failed to pack Mud.HttpUtils
exit /b 1
)
echo [2/4] Packing Mud.HttpUtils.Generator...
dotnet pack Core\Mud.HttpUtils.Generator\Mud.HttpUtils.Generator.csproj -c %CONFIGURATION% --output %OUTPUT_DIR% --nologo -v q
if errorlevel 1 (
echo [ERROR] Failed to pack Mud.HttpUtils.Generator
exit /b 1
)
echo [3/4] Packing Mud.EntityCodeGenerator...
dotnet pack Core\Mud.EntityCodeGenerator\Mud.EntityCodeGenerator.csproj -c %CONFIGURATION% --output %OUTPUT_DIR% --nologo -v q
if errorlevel 1 (
echo [ERROR] Failed to pack Mud.EntityCodeGenerator
exit /b 1
)
echo [4/4] Packing Mud.ServiceCodeGenerator...
dotnet pack Core\Mud.ServiceCodeGenerator\Mud.ServiceCodeGenerator.csproj -c %CONFIGURATION% --output %OUTPUT_DIR% --nologo -v q
if errorlevel 1 (
echo [ERROR] Failed to pack Mud.ServiceCodeGenerator
exit /b 1
)
echo.
echo ========================================
echo Build Complete!
echo ========================================
echo.
echo Packages saved to: %OUTPUT_DIR%
echo.
dir /b "%OUTPUT_DIR%\*.nupkg" 2>nul
echo.
echo Done!
endlocal