mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2024-08-29 21:46:05 +02:00
![Ted John](/assets/img/avatar_default.png)
- Move many of the post build operations in openrc2.proj to bash scripts, some of which can be shared with the macOS and Linux CIs. - Improve performance of NSIS stage by grabbing a pre-packaged portable zip from GitHub. This typically saves the CI a minute and is more reliable.
24 lines
575 B
Batchfile
24 lines
575 B
Batchfile
@echo off
|
|
|
|
rem Invokes a tool within a Visual Studio prompt
|
|
rem Uses %PLATFORM% to set architecture of prompt
|
|
|
|
set "vspath=C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise"
|
|
if exist "%vspath%" goto found
|
|
set "vspath=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community"
|
|
if exist "%vspath%" goto found
|
|
|
|
:notfound
|
|
echo Visual Studio directory not found
|
|
exit /b 1
|
|
|
|
:found
|
|
if "%platform%"=="x64" (
|
|
call "%vspath%\Common7\Tools\VsDevCmd.bat" -no_logo -arch=x64
|
|
) else (
|
|
call "%vspath%\Common7\Tools\VsDevCmd.bat" -no_logo
|
|
)
|
|
|
|
%*
|
|
exit /b %errorlevel%
|