Skip to content

Commit

Permalink
Add expat post-build versioning step
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-malburg committed Nov 3, 2023
1 parent 2a1b2fb commit a98322c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
13 changes: 13 additions & 0 deletions custom-steps/expat/post-build.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
param (
[Parameter(Mandatory=$true)][string]$BuildArtifactsPath
)

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

if ((Get-IsOnMacOS)) {
Remove-DylibSymlinks -BuildArtifactsPath $BuildArtifactsPath
}
elseif((Get-IsOnWindowsOS)) {
Update-VersionInfoForDlls -buildArtifactsPath $buildArtifactsPath -versionInfoJsonPath "$PSScriptRoot/version-info.json"
}

12 changes: 12 additions & 0 deletions custom-steps/expat/version-info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"files": [
{
"filename": "bin/libexpat.dll",
"fileDescription": "Expat XML Parser 2.5.0",
"fileVersion": "2.5.0",
"productName": "Expat 2.5.0",
"productVersion": "2.5.0",
"copyright": "Copyright © 1997-2022 Thai Open Source Software Center, Clark Cooper, and the Expat maintainers"
}
]
}

0 comments on commit a98322c

Please sign in to comment.