Skip to content

Commit

Permalink
Update builds for double dashes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben2776 committed Feb 13, 2025
1 parent ad75ee7 commit fe85c81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Build/Build Avalonia.Win32.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,4 @@ if (Test-Path $pdbPath) {
Remove-Item -Path $pdbPath -Force
}

#Remove uninstended space
Rename-Item -path $outputPath -NewName $outputPath.Replace(" ","")

#remove uninstended double dashes
Rename-Item -path $outputPath -NewName $outputPath.Replace("--","-")


3 changes: 3 additions & 0 deletions Build/Get-VersionInfo.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ $fileVersion = $xml.Project.PropertyGroup.FileVersion
# Combine VersionPrefix and VersionSuffix
$fullVersion = "$versionPrefix-$versionSuffix"

# Replace double dashes with a single dash
$fullVersion = $fullVersion -replace '--', '-'

# Output the results for GitHub Actions
Write-Output "::set-output name=version::$fullVersion"
Write-Output "::set-output name=file-version::$fileVersion"

0 comments on commit fe85c81

Please sign in to comment.