Files
NapCatQQ/.pnpm-store/v3/files/f3/a6dc351cd68f2d547b8965803ec9c4ef8cc9c52252e34c6b981f6559028128b2c3e163679b27763c022ae9a2ab97d8fbdb80e809ef07f99eab6673fca0d17b
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

18 lines
461 B
Plaintext

import { ptyPath } from './prebuild-file-path';
let pty: IUnixNative;
try {
pty = require(ptyPath || '../build/Release/pty.node');
} catch (outerError) {
try {
pty = require(ptyPath ? '../build/Release/pty.node' : '../build/Debug/pty.node');
} catch (innerError) {
console.error('innerError', innerError);
// Re-throw the exception from the Release require if the Debug require fails as well
throw outerError;
}
}
export default pty;