mirror of https://github.com/aminya/setup-cpp
fix: update the default to doxygen 1.9.4
This commit is contained in:
parent
4b6411c5f2
commit
2ddc806c2e
|
@ -12,7 +12,7 @@ const DefaultVersions: Record<string, string> = {
|
||||||
python: "3.8.10",
|
python: "3.8.10",
|
||||||
kcov: "40", // https://github.com/SimonKagstrom/kcov/releases
|
kcov: "40", // https://github.com/SimonKagstrom/kcov/releases
|
||||||
task: "3.12.0", // https://github.com/go-task/task/releases
|
task: "3.12.0", // https://github.com/go-task/task/releases
|
||||||
doxygen: "1.9.1", // https://packages.ubuntu.com/search?suite=all&arch=any&searchon=names&keywords=doxygen
|
doxygen: process.platform === "darwin" ? "1.9.3" : "1.9.4", // https://www.doxygen.nl/download.html // https://packages.ubuntu.com/search?suite=all&arch=any&searchon=names&keywords=doxygen
|
||||||
gcc: process.platform === "win32" ? "11.2.0.07112021" : "11", // https://community.chocolatey.org/packages/mingw#versionhistory and // https://packages.ubuntu.com/search?suite=all&arch=any&searchon=names&keywords=gcc
|
gcc: process.platform === "win32" ? "11.2.0.07112021" : "11", // https://community.chocolatey.org/packages/mingw#versionhistory and // https://packages.ubuntu.com/search?suite=all&arch=any&searchon=names&keywords=gcc
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ import { InstallationInfo, PackageInfo, setupBin } from "../utils/setup/setupBin
|
||||||
import { setupBrewPack } from "../utils/setup/setupBrewPack"
|
import { setupBrewPack } from "../utils/setup/setupBrewPack"
|
||||||
import { setupChocoPack } from "../utils/setup/setupChocoPack"
|
import { setupChocoPack } from "../utils/setup/setupChocoPack"
|
||||||
import { addBinExtension } from "../utils/extension/extension"
|
import { addBinExtension } from "../utils/extension/extension"
|
||||||
import { extractTar } from "../utils/setup/extract"
|
import { extractTar, extractZip } from "../utils/setup/extract"
|
||||||
import { notice } from "../utils/io/io"
|
import { notice } from "../utils/io/io"
|
||||||
import { setupGraphviz } from "../graphviz/graphviz"
|
import { setupGraphviz } from "../graphviz/graphviz"
|
||||||
import { getVersion } from "../default_versions"
|
import { getVersion } from "../default_versions"
|
||||||
|
@ -23,6 +23,16 @@ function getDoxygenPackageInfo(version: string, platform: NodeJS.Platform, _arch
|
||||||
url: `https://www.doxygen.nl/files/${folderName}.linux.bin.tar.gz`,
|
url: `https://www.doxygen.nl/files/${folderName}.linux.bin.tar.gz`,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
case "win32": {
|
||||||
|
const folderName = `doxygen-${version}`
|
||||||
|
return {
|
||||||
|
binRelativeDir: "bin/",
|
||||||
|
binFileName: addBinExtension("doxygen"),
|
||||||
|
extractedFolderName: folderName,
|
||||||
|
extractFunction: extractZip,
|
||||||
|
url: `https://www.doxygen.nl/files/${folderName}.windows.x64.bin.zip`,
|
||||||
|
}
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
throw new Error(`Unsupported platform '${platform}'`)
|
throw new Error(`Unsupported platform '${platform}'`)
|
||||||
}
|
}
|
||||||
|
@ -31,10 +41,17 @@ 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)
|
||||||
await setupGraphviz(getVersion("graphviz", undefined), "", arch)
|
|
||||||
const binDir = activateWinDoxygen()
|
const binDir = activateWinDoxygen()
|
||||||
return { binDir }
|
installationInfo = { binDir }
|
||||||
|
}
|
||||||
|
await setupGraphviz(getVersion("graphviz", undefined), "", arch)
|
||||||
|
return installationInfo
|
||||||
}
|
}
|
||||||
case "darwin": {
|
case "darwin": {
|
||||||
const installationInfo = setupBrewPack("doxygen", undefined)
|
const installationInfo = setupBrewPack("doxygen", undefined)
|
||||||
|
|
Loading…
Reference in New Issue