forked from tokyoweb3/LazyGravity
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlaunch_dev.bat
More file actions
36 lines (27 loc) · 954 Bytes
/
Copy pathlaunch_dev.bat
File metadata and controls
36 lines (27 loc) · 954 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
35
36
@echo off
setlocal
:: Find an available port for CDP starting from 9222
set "AG_PORT=9222"
:find_port
netstat -ano | findstr ":%AG_PORT% " >nul
if %errorlevel% equ 0 (
set /a AG_PORT=%AG_PORT%+1
goto find_port
)
echo [LazyLaunch] Found available CDP port: %AG_PORT%
:: Path to Antigravity executable
set "AG_PATH=%LOCALAPPDATA%\Programs\Antigravity\Antigravity.exe"
if not exist "%AG_PATH%" (
echo [ERROR] Antigravity executable not found at: %AG_PATH%
pause
exit /b 1
)
echo [LazyLaunch] Starting Antigravity with --remote-debugging-port=%AG_PORT%...
start "" "%AG_PATH%" --remote-debugging-port=%AG_PORT%
:: Wait a moment for Antigravity to initialize the port
timeout /t 3 /nobreak >nul
:: Set environment variable to tell LazyGravity which account/port to use
:: Format: "name:port,name:port" or just "name:port"
set "ANTIGRAVITY_ACCOUNTS=local:%AG_PORT%"
echo [LazyLaunch] Starting LazyGravity (Dev Mode)...
npm run dev