mirror of
https://github.com/openclaw/openclaw.git
synced 2026-02-09 05:19:32 +08:00
fix: detect legacy gateway launchd labels
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "openclaw",
|
||||
"version": "2026.1.29-beta.6",
|
||||
"version": "2026.1.29-beta.7",
|
||||
"description": "WhatsApp gateway CLI (Baileys web) with Pi RPC agent",
|
||||
"type": "module",
|
||||
"main": "dist/index.js",
|
||||
|
||||
@@ -147,8 +147,20 @@ async function scanLaunchdDir(params: {
|
||||
continue;
|
||||
}
|
||||
const marker = detectMarker(contents);
|
||||
if (!marker) continue;
|
||||
const label = tryExtractPlistLabel(contents) ?? labelFromName;
|
||||
if (!marker) {
|
||||
const legacyLabel = isLegacyLabel(labelFromName) || isLegacyLabel(label);
|
||||
if (!legacyLabel) continue;
|
||||
results.push({
|
||||
platform: "darwin",
|
||||
label,
|
||||
detail: `plist: ${fullPath}`,
|
||||
scope: params.scope,
|
||||
marker: isLegacyLabel(label) ? "clawdbot" : "moltbot",
|
||||
legacy: true,
|
||||
});
|
||||
continue;
|
||||
}
|
||||
if (isIgnoredLaunchdLabel(label)) continue;
|
||||
if (marker === "openclaw" && isOpenClawGatewayLaunchdService(label, contents)) continue;
|
||||
results.push({
|
||||
|
||||
Reference in New Issue
Block a user