-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.bat
More file actions
47 lines (38 loc) · 1.07 KB
/
Copy pathinstall.bat
File metadata and controls
47 lines (38 loc) · 1.07 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
@echo off
setlocal
set "ROOT=%~dp0"
set "PS=C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe"
echo [Bonsai Desk] Checking required tools...
where python >nul 2>&1
if errorlevel 1 (
echo [ERROR] Python was not found. Install Python from https://www.python.org/downloads/ and enable "Add Python to PATH".
pause
exit /b 1
)
where node >nul 2>&1
if errorlevel 1 (
echo [ERROR] Node.js was not found. Install the LTS version from https://nodejs.org/ and restart this terminal.
pause
exit /b 1
)
where npm >nul 2>&1
if errorlevel 1 (
echo [ERROR] npm was not found. Reinstall Node.js LTS from https://nodejs.org/.
pause
exit /b 1
)
echo [OK] Python, Node.js, and npm were found.
echo [Bonsai Desk] Installing dependencies...
"%PS%" -NoProfile -ExecutionPolicy Bypass -File "%ROOT%scripts\bootstrap.ps1"
if errorlevel 1 (
echo [ERROR] Installation failed. Please check the error output above.
pause
exit /b 1
)
echo.
echo [Bonsai Desk] Installation complete!
echo To start the app, double-click launch-app.bat or run:
echo .\launch-app.bat
echo.
pause
endlocal