mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-08-27 04:37:41 +00:00
Remove checked-in vswhere.exe binary
This commit is contained in:
@@ -134,7 +134,8 @@ if /I "%VC_ARCH%" NEQ "%PROCESSOR_ARCHITECTURE%" (
|
|||||||
)
|
)
|
||||||
|
|
||||||
rem Find Visual Studio and run vcvarsall.bat
|
rem Find Visual Studio and run vcvarsall.bat
|
||||||
set VSWHERE="%SOURCE_ROOT%\scripts\vswhere.exe"
|
call "%SOURCE_ROOT%\scripts\find-vswhere.bat"
|
||||||
|
if !ERRORLEVEL! NEQ 0 goto Error
|
||||||
for /f "usebackq delims=" %%i in (`%VSWHERE% -latest -property installationPath`) do (
|
for /f "usebackq delims=" %%i in (`%VSWHERE% -latest -property installationPath`) do (
|
||||||
call "%%i\VC\Auxiliary\Build\vcvarsall.bat" %VC_ARCH%
|
call "%%i\VC\Auxiliary\Build\vcvarsall.bat" %VC_ARCH%
|
||||||
)
|
)
|
||||||
@@ -142,6 +143,7 @@ if !ERRORLEVEL! NEQ 0 goto Error
|
|||||||
|
|
||||||
rem Find VC redistributable DLLs
|
rem Find VC redistributable DLLs
|
||||||
for /f "usebackq delims=" %%i in (`%VSWHERE% -latest -find VC\Redist\MSVC\*\%ARCH%\Microsoft.VC*.CRT`) do set VC_REDIST_DLL_PATH=%%i
|
for /f "usebackq delims=" %%i in (`%VSWHERE% -latest -find VC\Redist\MSVC\*\%ARCH%\Microsoft.VC*.CRT`) do set VC_REDIST_DLL_PATH=%%i
|
||||||
|
if !ERRORLEVEL! NEQ 0 goto Error
|
||||||
|
|
||||||
echo Cleaning output directories
|
echo Cleaning output directories
|
||||||
rmdir /s /q %DEPLOY_FOLDER%
|
rmdir /s /q %DEPLOY_FOLDER%
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
@echo off
|
||||||
|
|
||||||
|
rem Search the PATH first, then well-known paths
|
||||||
|
where /q vswhere.exe
|
||||||
|
if %ERRORLEVEL% EQU 0 (
|
||||||
|
set VSWHERE=vswhere.exe
|
||||||
|
) else if exist "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" (
|
||||||
|
set VSWHERE="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
|
||||||
|
) else if exist "%ProgramFiles%\Microsoft Visual Studio\Installer\vswhere.exe" (
|
||||||
|
set VSWHERE="%ProgramFiles%\Microsoft Visual Studio\Installer\vswhere.exe"
|
||||||
|
) else (
|
||||||
|
exit /b 1
|
||||||
|
)
|
||||||
|
|
||||||
|
exit /b 0
|
||||||
@@ -65,7 +65,8 @@ mkdir %BUILD_FOLDER%
|
|||||||
mkdir %INSTALLER_FOLDER%
|
mkdir %INSTALLER_FOLDER%
|
||||||
|
|
||||||
rem Find Visual Studio and run vcvarsall.bat
|
rem Find Visual Studio and run vcvarsall.bat
|
||||||
set VSWHERE="%SOURCE_ROOT%\scripts\vswhere.exe"
|
call "%SOURCE_ROOT%\scripts\find-vswhere.bat"
|
||||||
|
if !ERRORLEVEL! NEQ 0 goto Error
|
||||||
for /f "usebackq delims=" %%i in (`%VSWHERE% -latest -property installationPath`) do (
|
for /f "usebackq delims=" %%i in (`%VSWHERE% -latest -property installationPath`) do (
|
||||||
call "%%i\VC\Auxiliary\Build\vcvarsall.bat" x86
|
call "%%i\VC\Auxiliary\Build\vcvarsall.bat" x86
|
||||||
)
|
)
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user