@@ -14,23 +14,17 @@ Write-Host "BuildDir='$BuildDir'"
1414Write-Host " OutputDir='$OutputDir '"
1515
1616Function CheckReturnCodeOfPreviousCommand ($msg ) {
17- if (-Not $? ) {
18- Write-Error " ${msg} . Error code: $LastExitCode "
19- }
17+ if (-Not $? ) { Write-Error " ${msg} . Error code: $LastExitCode " }
2018}
2119
2220Function DownloadFile ($Uri , $OutFile ) {
23- if (Test-Path $OutFile ) {
24- return
25- }
21+ if (Test-Path $OutFile ) { return }
2622 Write-Host " Download '$Uri ' -> '$OutFile '"
2723 Invoke-WebRequest - Uri $Uri - OutFile $OutFile
2824}
2925
3026Function DownloadZipAndUnpack ($Uri , $OutFile , $OutDir ) {
31- if (Test-Path $OutDir ) {
32- return
33- }
27+ if (Test-Path $OutDir ) { return }
3428 DownloadFile - Uri $Uri - OutFile $OutFile
3529 New-Item - ItemType Directory `
3630 - Path $OutDir `
@@ -39,7 +33,7 @@ Function DownloadZipAndUnpack($Uri, $OutFile, $OutDir) {
3933 Expand-Archive - Path $OutFile - DestinationPath $OutDir - Force
4034}
4135
42- Write-Host " Download PROCEXP152.SYS file"
36+ Write-Host " Configure PROCEXP152.SYS file"
4337
4438# There is no direct link to download PROCEXP152.SYS driver. However, the Handle tool contains it as a resource.
4539DownloadZipAndUnpack - Uri https:// www.nirsoft.net/ utils/ resourcesextract- x64.zip `
@@ -64,14 +58,14 @@ Copy-Item -Path $BuildDir/PROCEXP152.SYS.x64 -Destination $OutputDir/PROCEXP152.
6458Write-Host " Copy magic.mgc file that is needed for LibMagic"
6559Copy-Item - Path $BuildDir / vcpkg_installed/ vcpkg/ pkgs/ libmagic_x64- windows/ tools/ libmagic/ share/ misc/ magic.mgc - Destination $OutputDir / magic.mgc - Force
6660
67- Write-Host " Download ExifTool binaries"
61+ Write-Host " Configure ExifTool binaries"
6862DownloadZipAndUnpack - Uri https:// netix.dl.sourceforge.net/ project/ exiftool/ exiftool- 13.50_64 .zip?viasf= 1 `
6963 - OutFile $BuildDir / exiftool- 13.50_64 .zip `
7064 - OutDir $BuildDir / exiftool
7165Copy-Item - Path $BuildDir / exiftool/ exiftool- 13.50_64 - Destination $OutputDir / exiftool - Force - Recurse
7266Rename-Item " $OutputDir /exiftool/exiftool(-k).exe" - NewName " exiftool.exe"
7367
74- Write-Host " Download language files for MediaInfoLib"
68+ Write-Host " Configure language files for MediaInfoLib"
7569DownloadZipAndUnpack - Uri https:// github.com / MediaArea/ MediaInfo/ archive/ refs/ tags/ v26.01. zip `
7670 - OutFile $BuildDir / MediaInfo.zip `
7771 - OutDir $BuildDir / MediaInfo
0 commit comments