feat: prepare sellable source delivery edition
This commit is contained in:
14
scripts/release/get-app-version.ps1
Normal file
14
scripts/release/get-app-version.ps1
Normal file
@@ -0,0 +1,14 @@
|
||||
param(
|
||||
[string]$PomPath = (Join-Path $PSScriptRoot '..\..\backend\pom.xml')
|
||||
)
|
||||
|
||||
$resolvedPath = Resolve-Path -LiteralPath $PomPath -ErrorAction Stop
|
||||
[xml]$pom = Get-Content -LiteralPath $resolvedPath -Raw -Encoding UTF8
|
||||
$version = $pom.project.version
|
||||
|
||||
if ([string]::IsNullOrWhiteSpace($version)) {
|
||||
Write-Error "Failed to read <project><version> from $resolvedPath"
|
||||
exit 1
|
||||
}
|
||||
|
||||
Write-Output $version.Trim()
|
||||
Reference in New Issue
Block a user