fix: download doxygen from the website itself

This commit is contained in:
Amin Yahyaabadi 2022-02-03 22:15:53 -08:00
parent 9ce8af143f
commit 3ff2184d6c
3 changed files with 6 additions and 6 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

@ -20,7 +20,7 @@ function getDoxygenPackageInfo(version: string, platform: NodeJS.Platform, _arch
extractFunction: (file: string, dest: string) => { extractFunction: (file: string, dest: string) => {
return extractTarByExe(file, dest, ["--strip-components=1"]) return extractTarByExe(file, dest, ["--strip-components=1"])
}, },
url: `https://downloads.sourceforge.net/project/doxygen/doxygen-binaries/rel-${version}/${folderName}.linux.bin.tar.gz`, url: `https://www.doxygen.nl/files/${folderName}.linux.bin.tar.gz`,
} }
} }
default: default:
@ -37,15 +37,15 @@ export async function setupDoxygen(version: string, setupDir: string, arch: stri
return { binDir } return { binDir }
} }
case "darwin": { case "darwin": {
setupBrewPack("doxygen", version) setupBrewPack("doxygen", undefined)
return setupBrewPack("graphviz", undefined) return setupBrewPack("graphviz", undefined)
} }
case "linux": { case "linux": {
try { try {
// doxygen on stable Ubuntu repositories is very old. So, we use get the binary from sourceforge. // doxygen on stable Ubuntu repositories is very old. So, we use get the binary from the website itself
await setupBin("doxygen", version, getDoxygenPackageInfo, setupDir, arch) await setupBin("doxygen", version, getDoxygenPackageInfo, setupDir, arch)
} catch (err) { } catch (err) {
warning(`Failed to download doxygen from sourceforge. ${err}. Falling back to apt-get.`) warning(`Failed to download doxygen binary. ${err}. Falling back to apt-get.`)
await setupAptPack("doxygen", undefined) await setupAptPack("doxygen", undefined)
} }
return setupAptPack("graphviz", undefined) return setupAptPack("graphviz", undefined)