-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCode-Claw.cmd
More file actions
53 lines (49 loc) · 1.06 KB
/
Code-Claw.cmd
File metadata and controls
53 lines (49 loc) · 1.06 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
@echo off
setlocal
cd /d "%~dp0"
title Code-Claw Launcher
echo.
echo ========================================
echo Code-Claw (小龙虾) 🦞
echo 本地 AI 编程助手
echo ========================================
echo.
:: Check Node.js
where node >nul 2>nul
if errorlevel 1 (
echo [ERROR] Node.js is not installed.
echo Please install Node.js 22+ from https://nodejs.org/
pause
exit /b 1
)
:: Install dependencies if needed
if not exist "node_modules\.bin\electron.cmd" (
echo [INFO] First time setup - installing dependencies...
echo.
call npm install
if errorlevel 1 (
echo [ERROR] npm install failed.
pause
exit /b 1
)
echo.
echo [INFO] Installing frontend dependencies...
cd ai-code-studio
call npm install
if errorlevel 1 (
echo [ERROR] Frontend npm install failed.
cd ..
pause
exit /b 1
)
echo.
echo [INFO] Building frontend...
call npm run build
cd ..
echo.
echo [OK] Setup complete!
echo.
)
:: Launch
echo [INFO] Starting Code-Claw...
.\node_modules\.bin\electron.cmd .\desktop\main.mjs