feat: 添加 CSC_CLOUD_INVOKER 环境变量标识调用来源

This commit is contained in:
DoSun 2026-05-13 10:05:37 +08:00
parent 0755facc63
commit f2d2083b94

View File

@ -227,7 +227,7 @@ async function runCsCloud(args: string[]): Promise<void> {
const child = spawn(bin, args, {
stdio: "inherit",
windowsHide: false,
env: { ...process.env },
env: { ...process.env, CSC_CLOUD_INVOKER: "csc" },
})
const code = await new Promise<number | null>((resolve) => {
child.on("error", (err) => {