[Windows] Add ImageMagick tool (#6247)

* Add ImageMagick tool

* Add ImageMagick tool
This commit is contained in:
Erik Bershel
2022-09-16 10:23:13 +02:00
committed by GitHub
parent 058d0730dd
commit 7f10a5a590
5 changed files with 18 additions and 3 deletions

View File

@@ -119,7 +119,8 @@ $toolsList = @(
(Get-WinAppDriver), (Get-WinAppDriver),
(Get-WixVersion), (Get-WixVersion),
(Get-ZstdVersion), (Get-ZstdVersion),
(Get-YAMLLintVersion) (Get-YAMLLintVersion),
(Get-ImageMagickVersion)
) )
if (Test-IsWin19) { if (Test-IsWin19) {
$toolsList += @( $toolsList += @(

View File

@@ -307,3 +307,9 @@ function Get-SwigVersion {
$swigVersion = $Matches.Version $swigVersion = $Matches.Version
return "Swig $swigVersion" return "Swig $swigVersion"
} }
function Get-ImageMagickVersion {
(magick -version | Select-String -Pattern "Version") -match "(?<version>\d+\.\d+\.\d+-\d+)" | Out-Null
$magickVersion = $Matches.Version
return "ImageMagick $magickVersion"
}

View File

@@ -102,4 +102,10 @@ Describe "CMake" {
It "cmake" { It "cmake" {
"cmake --version" | Should -ReturnZeroExitCode "cmake --version" | Should -ReturnZeroExitCode
} }
}
Describe "ImageMagick" {
It "ImageMagick" {
"magick -version" | Should -ReturnZeroExitCode
}
} }

View File

@@ -461,7 +461,8 @@
{ {
"name": "cmake.install", "name": "cmake.install",
"args": [ "--installargs", "ADD_CMAKE_TO_PATH=\"System\"" ] "args": [ "--installargs", "ADD_CMAKE_TO_PATH=\"System\"" ]
} },
{ "name": "imagemagick" }
] ]
}, },
"node": { "node": {

View File

@@ -375,7 +375,8 @@
{ {
"name": "cmake.install", "name": "cmake.install",
"args": [ "--installargs", "ADD_CMAKE_TO_PATH=\"System\"" ] "args": [ "--installargs", "ADD_CMAKE_TO_PATH=\"System\"" ]
} },
{ "name": "imagemagick" }
] ]
}, },
"node": { "node": {