mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-23 15:52:55 +01:00
shebang: Move parameters from set. Add newline after for consistency. curl: Add -f; Prevents output on error. Use -O where applicable; -o with the same filename as the URL is pointless. Add -S after -s: Makes curl still error despite being silent. build-symbols: Add zip fallback. get-discord-rpc: Move git clone parameters before repository for readability. Use --depth 1 to speed up cloning. install-nsis: Use ProgramData environment variable. build-appimage-docker.sh: Add -e to docker run. Run script directly. build-appimage.sh: Make if more consistent. Remove unused Travis scripts. setenv: unset instead of blanking variables. vstool.cmd: Use ProgramFiles(x86) environment variable.
24 lines
569 B
Batchfile
24 lines
569 B
Batchfile
@echo off
|
|
|
|
rem Invokes a tool within a Visual Studio prompt
|
|
rem Uses %PLATFORM% to set architecture of prompt
|
|
|
|
set "vspath=%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise"
|
|
if exist "%vspath%" goto found
|
|
set "vspath=%ProgramFiles(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%
|