Centralize release version in root VERSION file.

This commit is contained in:
2026-07-28 09:12:53 -06:00
parent 8150d6c48c
commit 344f5af01b
6 changed files with 13 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
param ([string] $templateFilename, [string] $outputFilename)
$versionParts = Select-String -Path "${env:SOLUTIONDIR}meson.build" -Pattern " version: '([^']+)',$" | Select-Object -First 1 | %{ $_.Matches[0].Groups[1].Value.Split('.') }
$versionParts = (Get-Content "${env:SOLUTIONDIR}VERSION" -Raw).Trim().Split('.')
[string[]] $contents = Get-Content $templateFilename -Encoding UTF8 | %{
while ($_ -match '^(.*?)<#=(.*?)#>(.*?)$') {