-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
83 lines (74 loc) · 2 KB
/
Copy pathbuild.bat
File metadata and controls
83 lines (74 loc) · 2 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
81
82
83
@echo off
REM Build script for Secure Remote Agent
echo ========================================
echo Building Secure Remote Agent
echo ========================================
REM Clean previous build
if exist build (
echo Cleaning previous build...
rmdir /s /q build
)
REM Configure
echo Configuring with CMake...
cmake --preset default
if %errorlevel% neq 0 (
echo CMake configuration failed!
pause
exit /b 1
)
REM Build core components
echo Building core library...
cmake --build build --target core --config Release
if %errorlevel% neq 0 (
echo Core build failed!
pause
exit /b 1
)
REM Build service
echo Building Windows Service...
cmake --build build --target service_main --config Release
if %errorlevel% neq 0 (
echo Service build failed!
pause
exit /b 1
)
REM Build UI application
echo Building Desktop UI...
cmake --build build --target main --config Release
if %errorlevel% neq 0 (
echo UI build failed!
pause
exit /b 1
)
REM Build plugins
echo Building Proxy Plugin...
cmake --build build --target proxy_plugin --config Release
if %errorlevel% neq 0 (
echo Proxy plugin build failed!
pause
exit /b 1
)
echo Building Scraper Plugin...
cmake --build build --target scraper_plugin --config Release
if %errorlevel% neq 0 (
echo Scraper plugin build failed!
pause
exit /b 1
)
echo ========================================
echo Build completed successfully!
echo ========================================
echo.
echo Built components:
echo - Service: build\service\Release\service_main.exe
echo - UI: build\app\Release\main.exe
echo - Proxy Plugin: build\plugins\proxy_plugin.dll
echo - Scraper Plugin: build\plugins\scraper_plugin.dll
echo.
echo To run the demo:
echo 1. Start the backend: cd demo\backend && python demo_server.py
echo 2. Install service: sc create "SecureRemoteAgent" binPath="%cd%\build\service\Release\service_main.exe"
echo 3. Start service: sc start "SecureRemoteAgent"
echo 4. Launch UI: build\app\Release\main.exe
echo.
pause