mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-01-05 17:13:29 +08:00
feat(Script): Don't open Visual Studio if it's open already (#546)
This commit is contained in:
parent
9256c54123
commit
3e9444c6b7
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user