- 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.
14 lines
435 B
JavaScript
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);
|
|
}
|