This repository was archived by the owner on Mar 23, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathbuild.bat
More file actions
80 lines (70 loc) · 2.02 KB
/
Copy pathbuild.bat
File metadata and controls
80 lines (70 loc) · 2.02 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
@echo off
REM Cross-platform build script for AstraGuard AI (Windows)
REM Compatible with Windows Command Prompt and PowerShell
REM Installs dependencies and prepares the application
echo 🚀 Starting AstraGuard AI build process...
echo 📍 Project root: %~dp0
echo 🖥️ OS: Windows
REM Check for required commands
echo 🔍 Checking for required tools...
where python >nul 2>nul
if %errorlevel% neq 0 (
echo ❌ Error: Python is not installed or not in PATH
echo Please install Python from https://python.org
pause
exit /b 1
)
where npm >nul 2>nul
if %errorlevel% neq 0 (
echo ❌ Error: npm is not installed or not in PATH
echo Please install Node.js from https://nodejs.org
pause
exit /b 1
)
echo 📦 Installing Python dependencies...
if exist "requirements.txt" (
python -m pip install --user -r requirements.txt
if %errorlevel% neq 0 (
echo ❌ Failed to install Python dependencies
pause
exit /b 1
)
) else (
echo ⚠️ requirements.txt not found, skipping Python dependencies
)
echo 🏗️ Building Next.js frontend...
if exist "frontend\as_lp" (
cd "frontend\as_lp"
echo 📍 Building in: %cd%
if exist "package.json" (
echo 📦 Installing npm dependencies...
npm install
if %errorlevel% neq 0 (
echo ❌ Failed to install npm dependencies
cd ..\..
pause
exit /b 1
)
echo 🏗️ Running build...
npm run build
if %errorlevel% neq 0 (
echo ❌ Failed to build frontend
cd ..\..
pause
exit /b 1
)
) else (
echo ⚠️ package.json not found in frontend directory
)
cd ..\..
) else (
echo ⚠️ Frontend directory not found: frontend\as_lp
)
echo ✅ Build complete successfully!
echo.
echo 🎉 AstraGuard AI is ready to run!
echo Start the app with: npm run app
echo Start API with: npm run api
echo Start frontend with: npm run frontend
echo.
pause