Skip to content

Commit fe64642

Browse files
authored
ci(release): uniformize remaining jetsocat artifact names (#1740)
Rename macOS universal binary and Windows PDB files to follow the same naming convention introduced in #1526 (no version, lowercase, hyphens).
1 parent e4052b2 commit fe64642

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)