From 9711ab30e195719df0c026657ba736b067a7db1a Mon Sep 17 00:00:00 2001 From: Martichou Date: Sun, 3 Mar 2024 11:31:13 +0100 Subject: [PATCH] feat: release process specify GLIBC version in filename Signed-off-by: Martichou --- .github/workflows/release.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c863a04..5476eef 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,6 +33,19 @@ jobs: run: | cd ./frontend pnpm build + GLIBC_VER=$(ldd --version | head -n1 | awk '{print $NF}') + for file in ${{ github.workspace }}/frontend/src-tauri/target/release/bundle/*/r-quick-share*; do + extension="${file##*.}" + + if [[ ! -f "$file" ]] || [[ "$extension" == AppDir ]]; then + echo "Skipping $file" + continue + fi + + new_name="${file%.*}_GLIBC-${GLIBC_VER}.$extension" + mv "$file" "$new_name" + echo "Renamed $file to $new_name" + done - uses: softprops/action-gh-release@v1 with: files: ${{ github.workspace }}/frontend/src-tauri/target/release/bundle/*/r-quick-share*