返回 DeepSeek-Reasonix
smoke-env.mjs
根目录 / desktop / packaging / smoke-env.mjs
1 import { join } from "node:path";
2
3 // A disposable home is sufficient isolation. Development mode would bypass
4 // the very build mismatch that a production startup smoke must catch.
5 export function packagedSmokeEnv(parent, home) {
6 const env = { ...parent };
7 for (const key of Object.keys(env)) {
8 if (/^REASONIX_/i.test(key) || /^(NODE_OPTIONS|ELECTRON_RUN_AS_NODE)$/i.test(key)) delete env[key];
9 }
10 return {
11 ...env,
12 REASONIX_HOME: home,
13 REASONIX_STATE_HOME: home,
14 REASONIX_CACHE_HOME: join(home, "cache"),
15 };
16 }
17
17 lines Plain Text