-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpublish.bat
More file actions
37 lines (32 loc) · 924 Bytes
/
publish.bat
File metadata and controls
37 lines (32 loc) · 924 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
37
@echo off
setlocal
set ROOT=%~dp0
set OUT=%ROOT%Published
echo.
echo === Publishing CodingAgentExplorer ===
dotnet publish "%ROOT%CodingAgentExplorer\CodingAgentExplorer.csproj" ^
-c Release ^
-o "%OUT%\CodingAgentExplorer"
if errorlevel 1 goto :fail
echo.
echo === Publishing HookAgent (win-x64, single-file) ===
dotnet publish "%ROOT%HookAgent\HookAgent.csproj" ^
-c Release ^
-r win-x64 ^
-p:PublishSingleFile=true ^
--self-contained false ^
-o "%OUT%\HookAgent"
if errorlevel 1 goto :fail
echo.
echo Done. Output in: %OUT%
echo.
echo CodingAgentExplorer : %OUT%\CodingAgentExplorer\
echo HookAgent : %OUT%\HookAgent\HookAgent.exe (single file)
echo.
echo Both require .NET 10 runtime on the target machine.
echo Add %OUT%\HookAgent to your PATH to use HookAgent as a Claude Code hook command.
goto :eof
:fail
echo.
echo *** Publish failed (see errors above) ***
exit /b 1