1
0
mirror of synced 2024-09-24 03:28:19 +02:00

Fix build script (#153)

・It's now compatible with x86 windows.
・Escaped parentheses in the script which was causing the issue.
This commit is contained in:
L1m0n3 2022-02-21 07:07:40 +09:00 committed by GitHub
parent 68bb7e905d
commit c12df9db99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,11 @@
@echo off
setlocal enabledelayedexpansion
set VSWHERE="!ProgramFiles(x86)!\Microsoft Visual Studio\Installer\vswhere.exe"
if defined ProgramFiles(x86) (
set VSWHERE="!ProgramFiles(x86)!\Microsoft Visual Studio\Installer\vswhere.exe"
) else (
set VSWHERE="!ProgramFiles!\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 (
@ -11,10 +15,10 @@ if exist !VSWHERE! (
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)
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)
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