-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.bat
More file actions
executable file
·36 lines (31 loc) · 855 Bytes
/
build.bat
File metadata and controls
executable file
·36 lines (31 loc) · 855 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
echo ========================================
echo Building MeshRadar Portable Version
echo ========================================
REM Check Node.js
node --version >nul 2>&1
if errorlevel 1 (
echo Error: Node.js not found!
echo Install Node.js 18+ and add it to PATH
pause
exit /b 1
)
REM Check venv
if not exist "backend\.venv\Scripts\python.exe" (
echo Error: Virtual environment not found!
echo Create it: cd backend ^&^& python -m venv .venv ^&^& .venv\Scripts\pip install -r requirements.txt
pause
exit /b 1
)
REM Run build script with venv Python
echo Using Python from backend\.venv
backend\.venv\Scripts\python.exe build_portable.py
if errorlevel 1 (
echo.
echo Build failed!
pause
exit /b 1
)
echo.
echo Done! File: dist\MeshtasticWeb.exe
pause