From 485f8e117b07758eea44745eb17b07e3f78d8fb7 Mon Sep 17 00:00:00 2001 From: orion Date: Sat, 4 Apr 2026 07:00:03 +0000 Subject: [PATCH] fix: build monitor from cmd entrypoint --- scripts/install.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install.mjs b/scripts/install.mjs index 95a835c..ec543d8 100644 --- a/scripts/install.mjs +++ b/scripts/install.mjs @@ -191,7 +191,7 @@ function installManagedMonitor(openclawPath) { mkdirSync(monitorDestDir, { recursive: true }); try { exec(`git clone --branch ${shellEscape(options.monitorBranch)} ${shellEscape(monitorRepo)} ${shellEscape(tmpDir)}`, { silent: !options.verbose }); - exec(`go build -o ${shellEscape(binaryPath)} .`, { cwd: tmpDir, silent: !options.verbose }); + exec(`go build -o ${shellEscape(binaryPath)} ./cmd/harborforge-monitor`, { cwd: tmpDir, silent: !options.verbose }); chmodSync(binaryPath, 0o755); logOk(`Managed monitor installed → ${binaryPath} (branch hint: ${options.monitorBranch})`); return binaryPath;