fix: ignore graphviz installation error on windows

This commit is contained in:
Amin Yahyaabadi 2022-02-03 22:44:57 -08:00
parent 3ff2184d6c
commit da57a9205b
3 changed files with 7 additions and 3 deletions

2
dist/setup_cpp.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -32,7 +32,11 @@ export async function setupDoxygen(version: string, setupDir: string, arch: stri
switch (process.platform) { switch (process.platform) {
case "win32": { case "win32": {
await setupChocoPack("doxygen.install", version) await setupChocoPack("doxygen.install", version)
try {
await setupChocoPack("graphviz", undefined) await setupChocoPack("graphviz", undefined)
} catch (err) {
warning(`${err}`)
}
const binDir = activateWinDoxygen() const binDir = activateWinDoxygen()
return { binDir } return { binDir }
} }