Skip to content

Commit 3ff2184

Browse files
committed
fix: download doxygen from the website itself
1 parent 9ce8af1 commit 3ff2184

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

dist/setup_cpp.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/setup_cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/doxygen/doxygen.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function getDoxygenPackageInfo(version: string, platform: NodeJS.Platform, _arch
2020
extractFunction: (file: string, dest: string) => {
2121
return extractTarByExe(file, dest, ["--strip-components=1"])
2222
},
23-
url: `https://downloads.sourceforge.net/project/doxygen/doxygen-binaries/rel-${version}/${folderName}.linux.bin.tar.gz`,
23+
url: `https://www.doxygen.nl/files/${folderName}.linux.bin.tar.gz`,
2424
}
2525
}
2626
default:
@@ -37,15 +37,15 @@ export async function setupDoxygen(version: string, setupDir: string, arch: stri
3737
return { binDir }
3838
}
3939
case "darwin": {
40-
setupBrewPack("doxygen", version)
40+
setupBrewPack("doxygen", undefined)
4141
return setupBrewPack("graphviz", undefined)
4242
}
4343
case "linux": {
4444
try {
45-
// doxygen on stable Ubuntu repositories is very old. So, we use get the binary from sourceforge.
45+
// doxygen on stable Ubuntu repositories is very old. So, we use get the binary from the website itself
4646
await setupBin("doxygen", version, getDoxygenPackageInfo, setupDir, arch)
4747
} catch (err) {
48-
warning(`Failed to download doxygen from sourceforge. ${err}. Falling back to apt-get.`)
48+
warning(`Failed to download doxygen binary. ${err}. Falling back to apt-get.`)
4949
await setupAptPack("doxygen", undefined)
5050
}
5151
return setupAptPack("graphviz", undefined)

0 commit comments

Comments
 (0)