fix: use choco to install doxygen on windows

This commit is contained in:
Amin Yahyaabadi 2022-05-09 17:43:56 -07:00
parent 9b4f52ec33
commit c10dc8c1e2
3 changed files with 5 additions and 11 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

@ -41,15 +41,9 @@ function getDoxygenPackageInfo(version: string, platform: NodeJS.Platform, _arch
export async function setupDoxygen(version: string, setupDir: string, arch: string) { export async function setupDoxygen(version: string, setupDir: string, arch: string) {
switch (process.platform) { switch (process.platform) {
case "win32": { case "win32": {
let installationInfo: InstallationInfo
try {
installationInfo = await setupBin("doxygen", version, getDoxygenPackageInfo, setupDir, arch)
} catch (err) {
notice(`Failed to download doxygen binary. ${err}. Falling back to choco.`)
await setupChocoPack("doxygen.install", version) await setupChocoPack("doxygen.install", version)
const binDir = activateWinDoxygen() const binDir = activateWinDoxygen()
installationInfo = { binDir } const installationInfo = { binDir }
}
await setupGraphviz(getVersion("graphviz", undefined), "", arch) await setupGraphviz(getVersion("graphviz", undefined), "", arch)
return installationInfo return installationInfo
} }