chore: streamline legacy artifact renaming in GitHub Actions workflow

- Replaced inline script for renaming legacy artifacts with a dedicated script call to `rename_legacy_artifacts.sh` for improved maintainability and clarity.
This commit is contained in:
2025-12-05 23:19:31 -06:00
parent bf8c22c31a
commit c5ae53bf55

View File

@@ -221,17 +221,7 @@ jobs:
matrix.variant == 'legacy' &&
(github.event_name == 'push' ||
(github.event_name == 'workflow_dispatch' && inputs[matrix.build_input] == true))
shell: bash
run: |
shopt -s nullglob
for f in dist/*-win-installer.exe dist/*-win-portable.exe dist/*-linux.AppImage dist/*-linux.deb; do
[ -e "$f" ] || continue
dir=$(dirname "$f")
base=$(basename "$f")
ext="${base##*.}"
name="${base%.$ext}"
mv "$f" "$dir/${name}-legacy.${ext}"
done
run: ./scripts/rename_legacy_artifacts.sh
- name: Upload build artifacts
if: |