Skip to content

Commit

Permalink
Add ffmpeg post-build step to write version info to unversioned dlls
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-malburg committed Oct 20, 2023
1 parent 55836ee commit 6c61245
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 4 deletions.
11 changes: 7 additions & 4 deletions custom-steps/ffmpeg/post-build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ param (
[Parameter(Mandatory=$true)][string]$BuildArtifactsPath
)

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

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

60 changes: 60 additions & 0 deletions custom-steps/ffmpeg/version-info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"files": [
{
"filename": "bin/avcodec-60.dll",
"fileDescription": "FFmpeg codec library",
"fileVersion": "60.3.100",
"productName": "FFmpeg",
"productVersion": "6.0",
"copyright": "Copyright (C) 2000-2023 FFmpeg Project"
},
{
"filename": "bin/avdevice-60.dll",
"fileDescription": "FFmpeg device handling library",
"fileVersion": "60.1.100",
"productName": "FFmpeg",
"productVersion": "6.0",
"copyright": "Copyright (C) 2000-2023 FFmpeg Project"
},
{
"filename": "bin/avfilter-9.dll",
"fileDescription": "FFmpeg audio/video filtering library",
"fileVersion": "9.3.100",
"productName": "FFmpeg",
"productVersion": "6.0",
"copyright": "Copyright (C) 2000-2023 FFmpeg Project"
},
{
"filename": "bin/avformat-60.dll",
"fileDescription": "FFmpeg container format library",
"fileVersion": "60.3.100",
"productName": "FFmpeg",
"productVersion": "6.0",
"copyright": "Copyright (C) 2000-2023 FFmpeg Project"
},
{
"filename": "bin/avutil-58.dll",
"fileDescription": "FFmpeg utility library",
"fileVersion": "58.2.100",
"productName": "FFmpeg",
"productVersion": "6.0",
"copyright": "Copyright (C) 2000-2023 FFmpeg Project"
},
{
"filename": "bin/swresample-4.dll",
"fileDescription": "FFmpeg audio resampling library",
"fileVersion": "4.10.100",
"productName": "FFmpeg",
"productVersion": "6.0",
"copyright": "Copyright (C) 2000-2023 FFmpeg Project"
},
{
"filename": "bin/swscale-7.dll",
"fileDescription": "FFmpeg image rescaling library",
"fileVersion": "7.1.100",
"productName": "FFmpeg",
"productVersion": "6.0",
"copyright": "Copyright (C) 2000-2023 FFmpeg Project"
}
]
}

0 comments on commit 6c61245

Please sign in to comment.