Files
qiming/qimingclaw/crates/agent-electron-client/scripts/prepare/prepare-sandbox-helper-windows.js

16 lines
548 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env node
/**
* 场景仅限 Windows 客户端沙箱:仅在 win32 宿主上构建 qiming-sandbox-helper.exe
* 供 prepare:all 串联。macOS/Linux 上立即退出 0不执行 cargo。
*/
const { execSync } = require("child_process");
const path = require("path");
if (process.platform !== "win32") {
console.log("[prepare-sandbox-helper-win] 非 Windows跳过 build:sandbox-helper");
process.exit(0);
}
const script = path.join(__dirname, "build-sandbox-helper.js");
execSync(`node "${script}"`, { stdio: "inherit" });