feat(Script): Don't open Visual Studio if it's open already (#546)

This commit is contained in:
Yimura 2022-10-30 20:41:37 +01:00 committed by GitHub
parent 9256c54123
commit 3e9444c6b7

View File

@ -1,14 +1,15 @@
@echo off
git submodule update --init
echo "Updating current branch and submodules"
echo Updating current branch and submodules
git pull && git submodule update
echo "Generating project files"
echo Generating project files
premake5 vs2022
IF %ERRORLEVEL% NEQ 0 (
PAUSE
)
echo "Opening project..."
start BigBaseV2.sln
tasklist /FI "WINDOWTITLE eq BigBaseV2 - Microsoft Visual Studio" /FI "STATUS eq running" 2>NUL | find /I /N "devenv.exe" >NUL
IF %ERRORLEVEL% NEQ 0 (start BigBaseV2.sln) ELSE (echo Visual Studio is already open, doing nothing. && PAUSE)