-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.bat
More file actions
34 lines (28 loc) · 873 Bytes
/
run.bat
File metadata and controls
34 lines (28 loc) · 873 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
@echo off
setlocal
cd /d "%~dp0"
echo ==================================================
echo pgModeler 1.x Launcher
echo ==================================================
:: 1. Check for Administrator Privileges
openfiles >nul 2>&1
if %errorlevel% neq 0 (
echo [INFO] Requesting Administrator privileges...
powershell -Command "Start-Process '%~nx0' -Verb RunAs"
exit /b
)
:: 2. Check MSYS2
if not exist "C:\msys64\msys2_shell.cmd" (
echo [ERROR] MSYS2 not found at C:\msys64
echo Please install MSYS2 first.
pause
exit
)
echo Launching MSYS2 environment...
echo The build process will happen in the new window.
echo Please wait until that window says "SUCCESS" and asks you to press Enter.
:: Call MSYS2 to run build.sh
C:\msys64\msys2_shell.cmd -mingw64 -here -defterm -no-start -c "./build.sh"
echo.
echo Launcher finished.
pause