build/windows: Fix 'revision 2' being shown in 'RC 2' MSIX About dialog

Following 9d9d7226
This commit is contained in:
Bruno 2024-12-29 21:42:40 -03:00
parent d62dfc052b
commit 1e37822533
No known key found for this signature in database
1 changed files with 5 additions and 2 deletions

View File

@ -227,8 +227,11 @@ foreach ($bundle in $supported_archs)
Copy-Item "$bundle" "$vfs" -Recurse -Force
## Set revision on about dialog (this does the same as '-Drevision' build option)
(Get-Content "$vfs\share\gimp\*\gimp-release") | Foreach-Object {$_ -replace "revision=0","revision=$revision"} |
Set-Content "$vfs\share\gimp\*\gimp-release"
if ($gimp_version -notmatch 'RC[0-9]')
{
(Get-Content "$vfs\share\gimp\*\gimp-release") | Foreach-Object {$_ -replace "revision=0","revision=$revision"} |
Set-Content "$vfs\share\gimp\*\gimp-release"
}
## Disable Update check (ONLY FOR RELEASES)
if ($CI_COMMIT_TAG -match 'GIMP_[0-9]*_[0-9]*_[0-9]*' -or $GIMP_CI_MS_STORE -like 'MSIXUPLOAD*')