File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -367,8 +367,6 @@ jobs:
367367
368368 - name : Create jetsocat ZIP files for winget
369369 run : |
370- Set-PSDebug -Trace 1
371-
372370 $Version = "${{ needs.preflight.outputs.version }}"
373371 $ZipFolder = "jetsocat-zips"
374372 New-Item -ItemType Directory -Path $ZipFolder -Force
@@ -418,6 +416,17 @@ jobs:
418416 Write-Warning "Could not find binary for $OS $Arch"
419417 }
420418 }
419+
420+ # Rename macOS universal binary to follow the naming convention (without version).
421+ Get-ChildItem -Recurse -Filter "jetsocat_*_${Version}_universal" -File | ForEach-Object {
422+ Rename-Item -Path $_.FullName -NewName "jetsocat-macos-universal"
423+ }
424+
425+ # Rename Windows PDB files to follow the naming convention (without version).
426+ Get-ChildItem -Recurse -Filter "jetsocat_Windows_${Version}_*.pdb" -File | ForEach-Object {
427+ $Arch = $_.BaseName -replace "jetsocat_Windows_${Version}_", ""
428+ Rename-Item -Path $_.FullName -NewName "jetsocat-windows-$Arch.pdb"
429+ }
421430 shell : pwsh
422431
423432 - name : Create GitHub release
You can’t perform that action at this time.
0 commit comments