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;