mirror of https://github.com/aminya/setup-cpp
fix: fix cppcheck path on windows
This commit is contained in:
parent
1c9ab5ba6f
commit
3284f1f1f9
|
@ -8,8 +8,9 @@ export async function setupCppcheck(version: string | undefined, _setupCppDir: s
|
||||||
switch (process.platform) {
|
switch (process.platform) {
|
||||||
case "win32": {
|
case "win32": {
|
||||||
await setupChocoPack("cppcheck", version)
|
await setupChocoPack("cppcheck", version)
|
||||||
addPath("C:\\Program Files\\Cppcheck")
|
const binDir = "C:\\Program Files\\Cppcheck"
|
||||||
return undefined
|
addPath(binDir)
|
||||||
|
return { binDir }
|
||||||
}
|
}
|
||||||
case "darwin": {
|
case "darwin": {
|
||||||
return setupBrewPack("cppcheck", version)
|
return setupBrewPack("cppcheck", version)
|
||||||
|
|
Loading…
Reference in New Issue