From 907ac747ebceb72e76791b355fa4db5c6f8aba19 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 25 Jan 2026 00:29:12 +0000 Subject: [PATCH] Refine Linux shared lib packaging Co-authored-by: Valorith <76063792+Valorith@users.noreply.github.com> --- .github/workflows/release.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3a170ceee..632525778 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -69,7 +69,7 @@ jobs: fi # Add all executable files (excluding tests) - ZIP_CMD="zip -uj -j eqemu-server-linux-x64.zip" + ZIP_CMD="zip -uj eqemu-server-linux-x64.zip" for f in *; do if [ -f "$f" ] && [ -x "$f" ] && [ "$f" != "tests" ]; then $ZIP_CMD "$f" @@ -77,10 +77,12 @@ jobs: done # Add shared libraries needed for runtime (from build/bin and build/libs) - find . ../libs -type f -name "*.so*" -print0 | \ - while IFS= read -r -d '' lib; do - $ZIP_CMD "$lib" - done + if [ -d ../libs ]; then + find . ../libs -type f \( -name "*.so" -o -name "*.so.[0-9]*" \) -print0 | \ + while IFS= read -r -d '' lib; do + $ZIP_CMD "$lib" + done + fi # Verify zip file was created and contains files if [ ! -f eqemu-server-linux-x64.zip ]; then