feat: update desktop workflows and app center

This commit is contained in:
inman
2026-05-13 19:14:56 +08:00
parent 20b5aff4ad
commit 7c8781a6e3
160 changed files with 55492 additions and 1423 deletions

View File

@@ -37,6 +37,7 @@ import { syncProxyConfigToOpenClaw } from '../utils/openclaw-proxy';
import { logger } from '../utils/logger';
import { prependPathEntry } from '../utils/env-path';
import { buildDotnetEnv } from '../utils/dotnet-runtime';
import { buildPlaywrightRuntimeEnv, ensureYinianPlaywrightRuntimeDirs } from '../utils/playwright-runtime';
import { copyPluginFromNodeModules, ensureCloudSyncPluginInstalled, fixupPluginManifest, cpSyncSafe } from '../utils/plugin-install';
import { stripSystemdSupervisorEnv } from './config-sync-env';
import { ensureYinianModelRuntimeConfigured } from '../utils/model-diagnostics';
@@ -556,6 +557,8 @@ export async function prepareGatewayLaunchContext(port: number): Promise<Gateway
? prependPathEntry(baseEnvRecord, binPath).env
: baseEnvRecord;
const baseEnvWithDotnet = buildDotnetEnv(baseEnvPatched);
ensureYinianPlaywrightRuntimeDirs();
const playwrightEnv = buildPlaywrightRuntimeEnv(baseEnvWithDotnet);
const nodePath = buildNodePathEnv(baseEnvPatched, [
join(process.cwd(), 'node_modules'),
join(app.getAppPath(), 'node_modules'),
@@ -567,6 +570,7 @@ export async function prepareGatewayLaunchContext(port: number): Promise<Gateway
...providerEnv,
...uvEnv,
...proxyEnv,
...playwrightEnv,
...bundledPackageManagerEnv,
...(nodePath ? { NODE_PATH: nodePath } : {}),
OPENCLAW_GATEWAY_TOKEN: appSettings.gatewayToken,