Skip to content

Commit

Permalink
Add libzip post-build step to write version info to unversioned dll
Browse files Browse the repository at this point in the history
We need to do the same thing for libzip for now as well.
  • Loading branch information
mike-malburg committed Oct 20, 2023
1 parent 6c61245 commit cd548f1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
10 changes: 10 additions & 0 deletions custom-steps/libzip/post-build.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
param (
[Parameter(Mandatory=$true)][string]$BuildArtifactsPath
)

Import-Module "$PSScriptRoot/../../ps-modules/Build" -DisableNameChecking -Force

if (-not (Get-IsOnWindowsOS)) {
exit
}
Update-VersionInfoForDlls -buildArtifactsPath $buildArtifactsPath -versionInfoJsonPath "$PSScriptRoot/version-info.json"
12 changes: 12 additions & 0 deletions custom-steps/libzip/version-info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"files": [
{
"filename": "bin/zip.dll",
"fileDescription": "library for handling zip archives",
"fileVersion": "1.9.2",
"productName": "libzip",
"productVersion": "1.9.2",
"copyright": "Copyright (C) 1999-2021 Dieter Baron and Thomas Klausner"
}
]
}

0 comments on commit cd548f1

Please sign in to comment.