forked from danwillm/VRCFT-SteamLink
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-windows.bat
More file actions
60 lines (47 loc) · 1.69 KB
/
Copy pathbuild-windows.bat
File metadata and controls
60 lines (47 loc) · 1.69 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
@echo off
REM Build script for Windows
setlocal enabledelayedexpansion
echo Building VRCFT-SteamLink for Windows...
REM Configuration
set BUILD_TYPE=%1
if "%BUILD_TYPE%"=="" set BUILD_TYPE=Release
echo Build type: %BUILD_TYPE%
REM Get script directory
set SCRIPT_DIR=%~dp0
set PROJECT_ROOT=%SCRIPT_DIR%SLVRCFT
REM Step 1: Build using MSBuild (builds both C++ and C# projects)
echo [1/2] Building solution...
cd /d "%PROJECT_ROOT%"
REM Try to find MSBuild
set MSBUILD_PATH=
for %%i in (
"C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe"
"C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\MSBuild.exe"
"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\MSBuild.exe"
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe"
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\MSBuild.exe"
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe"
) do (
if exist %%i (
set MSBUILD_PATH=%%i
goto :found_msbuild
)
)
echo ERROR: MSBuild not found. Please install Visual Studio 2019 or 2022.
exit /b 1
:found_msbuild
echo Using MSBuild: %MSBUILD_PATH%
REM Build the solution
"%MSBUILD_PATH%" SLVRCFT.sln /p:Configuration=%BUILD_TYPE% /p:Platform=x64 /m
if errorlevel 1 (
echo Build failed!
exit /b 1
)
echo.
echo Build completed successfully!
echo.
echo Output directory: %PROJECT_ROOT%\SLExtTrackingModule\bin\%BUILD_TYPE%\net7.0
echo.
echo The module has been copied to:
echo %%AppData%%\VRCFaceTracking\CustomLibs\b146eda9-be48-4016-ab63-680a694064bd
endlocal