fix: use apt's default for doxygen on older ubuntu

This commit is contained in:
Amin Yahyaabadi 2022-05-20 19:35:03 -07:00
parent d321271fc9
commit 43b287e9ae
4 changed files with 6 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

@ -33,7 +33,7 @@ export function getVersion(name: string, version: string | undefined, osVersion:
case "meson": case "meson":
return osVersion[0] === 18 ? "0.61.4" : "" /* pip default */ return osVersion[0] === 18 ? "0.61.4" : "" /* pip default */
case "doxygen": case "doxygen":
return "1.9.1" return "" /* apt default */
default: { default: {
// nothing // nothing
} }

View File

@ -56,6 +56,9 @@ export async function setupDoxygen(version: string, setupDir: string, arch: stri
} }
case "linux": { case "linux": {
let installationInfo: InstallationInfo let installationInfo: InstallationInfo
if (version === "") {
installationInfo = setupAptPack("doxygen", undefined)
}
try { try {
// doxygen on stable Ubuntu repositories is very old. So, we use get the binary from the website itself // 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) installationInfo = await setupBin("doxygen", version, getDoxygenPackageInfo, setupDir, arch)