mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-19 12:42:26 +00:00
Refine Linux shared lib packaging
Co-authored-by: Valorith <76063792+Valorith@users.noreply.github.com>
This commit is contained in:
parent
c5fe0c20b8
commit
907ac747eb
12
.github/workflows/release.yaml
vendored
12
.github/workflows/release.yaml
vendored
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user