Files
nyaterm/scripts/prepare-conpty.mjs
Kang 31d1c51edb feat(conpty): integrate bundled ConPTY support and verification (#488)
- Added scripts to prepare and verify the Microsoft ConPTY package for Windows.
- Updated build workflows to include checks for bundled ConPTY in installers.
- Enhanced application support info to display ConPTY status and version.
- Modified the portable updater to handle ConPTY files during updates.
- Updated documentation to reflect changes in ConPTY usage and requirements.
- Introduced tests for ConPTY backend functionality to ensure reliability.
2026-09-26 08:53:48 +08:00

14 lines
435 B
JavaScript

import { spawnSync } from "node:child_process";
import { fileURLToPath } from "node:url";
if (process.platform === "win32") {
const script = fileURLToPath(new URL("./prepare-conpty.ps1", import.meta.url));
const result = spawnSync(
"powershell.exe",
["-NoProfile", "-ExecutionPolicy", "Bypass", "-File", script],
{ stdio: "inherit" },
);
if (result.error) throw result.error;
process.exit(result.status ?? 1);
}