Files
cindy/apps/desktop/scripts/plugin-ui.verify.mjs
2026-10-31 02:40:08 +08:00

8 lines
515 B
JavaScript

/** Runs the standard real Electron Host with a plugin virtual service in a unique profile. */
import { spawnSync } from 'node:child_process';
import { fileURLToPath } from 'node:url';
for (const extra of [[], ['--raw'], ['--author=static'], ['--author=loader'], ['--author=files']]) {
const result = spawnSync(process.execPath, [fileURLToPath(new URL('./mcp-apps-sandbox.verify.mjs', import.meta.url)), '--plugin', ...extra], { stdio: 'inherit' });
if (result.status !== 0) process.exit(result.status ?? 1);
}