mirror of https://github.com/aminya/setup-cpp
fix: use choco to install doxygen on windows
This commit is contained in:
parent
9b4f52ec33
commit
c10dc8c1e2
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue