mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-06 00:32:25 +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
6
.github/workflows/release.yaml
vendored
6
.github/workflows/release.yaml
vendored
@ -69,7 +69,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Add all executable files (excluding tests)
|
# 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
|
for f in *; do
|
||||||
if [ -f "$f" ] && [ -x "$f" ] && [ "$f" != "tests" ]; then
|
if [ -f "$f" ] && [ -x "$f" ] && [ "$f" != "tests" ]; then
|
||||||
$ZIP_CMD "$f"
|
$ZIP_CMD "$f"
|
||||||
@ -77,10 +77,12 @@ jobs:
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Add shared libraries needed for runtime (from build/bin and build/libs)
|
# Add shared libraries needed for runtime (from build/bin and build/libs)
|
||||||
find . ../libs -type f -name "*.so*" -print0 | \
|
if [ -d ../libs ]; then
|
||||||
|
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
|
||||||
|
fi
|
||||||
|
|
||||||
# Verify zip file was created and contains files
|
# Verify zip file was created and contains files
|
||||||
if [ ! -f eqemu-server-linux-x64.zip ]; then
|
if [ ! -f eqemu-server-linux-x64.zip ]; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user