Skip to content

Commit 3df1b77

Browse files
committed
test
1 parent 0f092e1 commit 3df1b77

2 files changed

Lines changed: 7 additions & 13 deletions

File tree

src/ProcessHandlesService/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ static void WINAPI ServiceMain(const DWORD /* argc */, LPWSTR* /* argv */) {
4242
}
4343

4444
int main() {
45-
spdlog::set_pattern("[%Y-%m-%d %H:%M:%S.%e][%s(%#)][thread %t] %v");
45+
spdlog::set_pattern("[%Y-%m-%d %H:%M:%S.%e][%s:%!:%#][thread %t] %v");
4646
spdlog::set_default_logger(spdlog::rotating_logger_mt(/* logger_name */ "ProcessHandlesService logger",
4747
/* filename */ (boost::dll::this_line_location().parent_path() / "DOpusScriptingExtensions.ProcessHandlesService.log.txt").string(),
4848
/* max_file_size */ 1024 * 1024, /* 1 MiB */

src/Shared/DownloadDependencies.ps1

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,17 @@ Write-Host "BuildDir='$BuildDir'"
1414
Write-Host "OutputDir='$OutputDir'"
1515

1616
Function CheckReturnCodeOfPreviousCommand($msg) {
17-
if(-Not $?) {
18-
Write-Error "${msg}. Error code: $LastExitCode"
19-
}
17+
if(-Not $?) { Write-Error "${msg}. Error code: $LastExitCode" }
2018
}
2119

2220
Function 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

3026
Function 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.
4539
DownloadZipAndUnpack -Uri https://www.nirsoft.net/utils/resourcesextract-x64.zip `
@@ -64,14 +58,14 @@ Copy-Item -Path $BuildDir/PROCEXP152.SYS.x64 -Destination $OutputDir/PROCEXP152.
6458
Write-Host "Copy magic.mgc file that is needed for LibMagic"
6559
Copy-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"
6862
DownloadZipAndUnpack -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
7165
Copy-Item -Path $BuildDir/exiftool/exiftool-13.50_64 -Destination $OutputDir/exiftool -Force -Recurse
7266
Rename-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"
7569
DownloadZipAndUnpack -Uri https://github.com/MediaArea/MediaInfo/archive/refs/tags/v26.01.zip `
7670
-OutFile $BuildDir/MediaInfo.zip `
7771
-OutDir $BuildDir/MediaInfo

0 commit comments

Comments
 (0)