fix: fix double doxygen installation on ubuntu 18

This commit is contained in:
Amin Yahyaabadi 2022-05-20 20:13:17 -07:00
parent d1458aa5c0
commit 5d3ac21c56
3 changed files with 11 additions and 10 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

@ -58,7 +58,7 @@ export async function setupDoxygen(version: string, setupDir: string, arch: stri
let installationInfo: InstallationInfo
if (version === "") {
installationInfo = setupAptPack("doxygen", undefined)
}
} else {
try {
// doxygen on stable Ubuntu repositories is very old. So, we use get the binary from the website itself
installationInfo = await setupBin("doxygen", version, getDoxygenPackageInfo, setupDir, arch)
@ -67,6 +67,7 @@ export async function setupDoxygen(version: string, setupDir: string, arch: stri
notice(`Failed to download doxygen binary. ${err}. Falling back to apt-get.`)
installationInfo = setupAptPack("doxygen", undefined)
}
}
await setupGraphviz(getVersion("graphviz", undefined), "", arch)
return installationInfo
}