mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 03:01:25 +00:00
refactor: rename to openclaw
This commit is contained in:
@@ -17,15 +17,15 @@ const formatLine = (label: string, value: string) => {
|
||||
};
|
||||
|
||||
function resolveTaskName(env: Record<string, string | undefined>): string {
|
||||
const override = env.CLAWDBOT_WINDOWS_TASK_NAME?.trim();
|
||||
const override = env.OPENCLAW_WINDOWS_TASK_NAME?.trim();
|
||||
if (override) return override;
|
||||
return resolveGatewayWindowsTaskName(env.CLAWDBOT_PROFILE);
|
||||
return resolveGatewayWindowsTaskName(env.OPENCLAW_PROFILE);
|
||||
}
|
||||
|
||||
export function resolveTaskScriptPath(env: Record<string, string | undefined>): string {
|
||||
const override = env.CLAWDBOT_TASK_SCRIPT?.trim();
|
||||
const override = env.OPENCLAW_TASK_SCRIPT?.trim();
|
||||
if (override) return override;
|
||||
const scriptName = env.CLAWDBOT_TASK_SCRIPT_NAME?.trim() || "gateway.cmd";
|
||||
const scriptName = env.OPENCLAW_TASK_SCRIPT_NAME?.trim() || "gateway.cmd";
|
||||
const stateDir = resolveGatewayStateDir(env);
|
||||
return path.join(stateDir, scriptName);
|
||||
}
|
||||
@@ -225,8 +225,8 @@ export async function installScheduledTask({
|
||||
const taskDescription =
|
||||
description ??
|
||||
formatGatewayServiceDescription({
|
||||
profile: env.CLAWDBOT_PROFILE,
|
||||
version: environment?.CLAWDBOT_SERVICE_VERSION ?? env.CLAWDBOT_SERVICE_VERSION,
|
||||
profile: env.OPENCLAW_PROFILE,
|
||||
version: environment?.OPENCLAW_SERVICE_VERSION ?? env.OPENCLAW_SERVICE_VERSION,
|
||||
});
|
||||
const script = buildTaskScript({
|
||||
description: taskDescription,
|
||||
|
||||
Reference in New Issue
Block a user