-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.bat
More file actions
40 lines (33 loc) · 922 Bytes
/
build.bat
File metadata and controls
40 lines (33 loc) · 922 Bytes
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
@echo off
REM Master build script for AffinityPluginLoader
REM Builds both .NET assemblies and native AffinityBootstrap.dll
setlocal enabledelayedexpansion
set CONFIGURATION=%1
if "%CONFIGURATION%"=="" set CONFIGURATION=Release
echo ========================================
echo Building AffinityPluginLoader
echo ========================================
echo.
REM Build .NET projects
echo [1/2] Building .NET projects...
dotnet build -c %CONFIGURATION%
if %errorlevel% neq 0 (
echo Error: .NET build failed
exit /b 1
)
echo.
REM Build AffinityBootstrap
echo [2/2] Building AffinityBootstrap...
cd AffinityBootstrap
call build.bat
set BOOTSTRAP_RESULT=%errorlevel%
cd ..
if %BOOTSTRAP_RESULT% neq 0 (
echo Error: AffinityBootstrap build failed
exit /b 1
)
echo.
echo ========================================
echo Build completed successfully!
echo ========================================
exit /b 0