From 517f45a73faa1e65100df5a167cb55bc64ff1b3f Mon Sep 17 00:00:00 2001 From: Tim Sinaeve Date: Sat, 18 Oct 2025 11:42:32 +0200 Subject: [PATCH] Fix IA32 artifact renaming --- .github/workflows/main.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a43e379..6b34f1d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -125,13 +125,19 @@ jobs: if [[ -d artifacts/windows-ia32-artifacts ]]; then for file in artifacts/windows-ia32-artifacts/*.exe; do base="$(basename "$file")" - ext="${base##*.}" - stem="${base%.$ext}" - cp "$file" "release_upload/${stem}-ia32.${ext}" + target="$base" + if [[ "$base" != *-ia32.exe ]]; then + target="${base%.exe}-ia32.exe" + fi + cp "$file" "release_upload/$target" done for file in artifacts/windows-ia32-artifacts/*.exe.blockmap; do base="$(basename "$file")" - cp "$file" "release_upload/${base/.exe/-ia32.exe}" + target="$base" + if [[ "$base" != *-ia32.exe.blockmap ]]; then + target="${base/.exe/-ia32.exe}" + fi + cp "$file" "release_upload/$target" done if [[ -f artifacts/windows-ia32-artifacts/latest.yml ]]; then cp artifacts/windows-ia32-artifacts/latest.yml release_upload/latest-ia32.yml