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*