1
0
mirror of synced 2025-02-17 11:08:33 +01:00

Add build script (#148)

This commit is contained in:
L1m0n3 2022-02-16 21:29:23 +09:00 committed by GitHub
parent a2e8d1ee67
commit 68bb7e905d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

20
build.bat Normal file
View File

@ -0,0 +1,20 @@
@echo off
setlocal enabledelayedexpansion
set VSWHERE="!ProgramFiles(x86)!\Microsoft Visual Studio\Installer\vswhere.exe"
if exist !VSWHERE! (
for /f "usebackq delims=" %%i in (`!VSWHERE! -latest -prerelease -products * -requires Microsoft.Component.MSBuild -find MSBuild\**\Bin\MSBuild.exe`) do (
set MSBUILD="%%i"
)
if exist !MSBUILD! (
!MSBUILD! TJAPlayer3.sln /t:build -restore /p:configuration=release /p:platform=x86
) else (
echo MSBuild is not installed. Please read: https://github.com/l1m0n3/OpenTaiko/wiki/How-to-build-OpenTaiko-without-using-Visual-Studio-(on-Windows)
)
) else (
echo Visual Studio Installer is not installed. Please read: https://github.com/l1m0n3/OpenTaiko/wiki/How-to-build-OpenTaiko-without-using-Visual-Studio-(on-Windows)
)
pause