(path: string)
| 843 | return map[nodeArch] || null; |
| 844 | } |
| 845 | |
| 846 | private async runOpenListCommand(installPath: string, args: string[]): Promise<string> { |
| 847 | const executable = path.join(installPath, "openlist"); |
| 848 | try { |
| 849 | const { stdout, stderr } = await execFileAsync(executable, args, { |
| 850 | cwd: installPath, |
| 851 | encoding: "utf-8", |
| 852 | timeout: 30_000, |
| 853 | maxBuffer: 4 * 1024 * 1024, |
| 854 | windowsHide: true, |
| 855 | }); |
| 856 | return `${String(stdout || "")}${String(stderr || "")}`; |
| 857 | } catch (error: unknown) { |
no outgoing calls
no test coverage detected