Release v0.1.6.4 prepare for release

This commit is contained in:
2025-08-29 12:48:39 +02:00
parent 5a6e8707bb
commit 84c7b9962a
9 changed files with 17 additions and 12 deletions

View File

@ -8,7 +8,7 @@ if (-not $Token) {
$Token = $env:GITEA_TOKEN
if (-not $Token) {
Write-Host "Fehler: Kein Token angegeben und GITEA_TOKEN Umgebungsvariable nicht gesetzt!" -ForegroundColor Red
Write-Host "Verwendung: .\create_release_simple.ps1 -Token 'your_token' oder setze GITEA_TOKEN Umgebungsvariable" -ForegroundColor Yellow
Write-Host "Verwendung: .\create_release.ps1 -Token 'your_token' oder setze GITEA_TOKEN Umgebungsvariable" -ForegroundColor Yellow
Write-Host "Das Script führt automatisch einen Build durch und lädt alle Artefakte hoch." -ForegroundColor Cyan
exit 1
}
@ -25,15 +25,20 @@ if (-not $lastTag) {
Write-Host "Letzter Tag: $lastTag" -ForegroundColor Green
# Version parsen
# Version parsen und nächsten verfügbaren Tag finden
if ($lastTag -match "^v(\d+)\.(\d+)\.(\d+)(.*)$") {
$major = [int]$matches[1]
$minor = [int]$matches[2]
$patch = [int]$matches[3]
$suffix = $matches[4]
$newPatch = $patch + 1
$newVersion = "v$major.$minor.$newPatch$suffix"
# Finde den nächsten verfügbaren Patch-Level
$newPatch = $patch
do {
$newPatch++
$newVersion = "v$major.$minor.$newPatch$suffix"
$tagExists = git tag --list $newVersion 2>$null
} while ($tagExists)
Write-Host "Neue Version: $newVersion" -ForegroundColor Green
} else {
@ -173,7 +178,7 @@ if (-not $remoteUrl) {
$firstRemote = $allRemotes[0]
$remoteUrl = git remote get-url $firstRemote 2>$null
$remoteName = $firstRemote
Write-Host "Verwende ersten verfügbaren Remote '$firstRemote': $remoteUrl" -ForegroundColor Yellow
Write-Host "Verwende ersten verfügbaren Remote '$firstRemote': $url" -ForegroundColor Yellow
}
}