mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-02 00:42:41 +00:00
Guard shared lib packaging
Co-authored-by: Valorith <76063792+Valorith@users.noreply.github.com>
This commit is contained in:
parent
56266f6f21
commit
2b60bda5b7
7
.github/workflows/release.yaml
vendored
7
.github/workflows/release.yaml
vendored
@ -78,10 +78,17 @@ jobs:
|
|||||||
|
|
||||||
# Add shared libraries needed for runtime (from build/bin and build/libs)
|
# Add shared libraries needed for runtime (from build/bin and build/libs)
|
||||||
if [ -d ../libs ]; then
|
if [ -d ../libs ]; then
|
||||||
|
lib_count="$(find ../libs -type f \( -name "*.so" -o -name "*.so.[0-9]*" \) | wc -l)"
|
||||||
|
if [ "$lib_count" -gt 0 ]; then
|
||||||
find ../libs -type f \( -name "*.so" -o -name "*.so.[0-9]*" \) -print0 | \
|
find ../libs -type f \( -name "*.so" -o -name "*.so.[0-9]*" \) -print0 | \
|
||||||
while IFS= read -r -d '' lib; do
|
while IFS= read -r -d '' lib; do
|
||||||
$ZIP_CMD "$lib"
|
$ZIP_CMD "$lib"
|
||||||
done
|
done
|
||||||
|
else
|
||||||
|
echo "No shared libraries found in build/libs"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "No build/libs directory found; skipping shared library packaging"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Verify zip file was created and contains files
|
# Verify zip file was created and contains files
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user