fix: detect legacy gateway launchd labels
This commit is contained in:
parent
b9afa3d33f
commit
151ddd624b
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "openclaw",
|
"name": "openclaw",
|
||||||
"version": "2026.1.29-beta.6",
|
"version": "2026.1.29-beta.7",
|
||||||
"description": "WhatsApp gateway CLI (Baileys web) with Pi RPC agent",
|
"description": "WhatsApp gateway CLI (Baileys web) with Pi RPC agent",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
|||||||
@ -147,8 +147,20 @@ async function scanLaunchdDir(params: {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const marker = detectMarker(contents);
|
const marker = detectMarker(contents);
|
||||||
if (!marker) continue;
|
|
||||||
const label = tryExtractPlistLabel(contents) ?? labelFromName;
|
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 (isIgnoredLaunchdLabel(label)) continue;
|
||||||
if (marker === "openclaw" && isOpenClawGatewayLaunchdService(label, contents)) continue;
|
if (marker === "openclaw" && isOpenClawGatewayLaunchdService(label, contents)) continue;
|
||||||
results.push({
|
results.push({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user