mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-19 16:58:20 +00:00
Package Linux shared libs in release
Co-authored-by: Valorith <76063792+Valorith@users.noreply.github.com>
This commit is contained in:
@@ -31,8 +31,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
apt-get update -qq
|
||||||
apt-get install -y build-essential ninja-build ccache uuid-dev
|
DEBIAN_FRONTEND=noninteractive apt-get install -y -qq build-essential ninja-build ccache uuid-dev
|
||||||
|
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: |
|
run: |
|
||||||
@@ -69,16 +69,17 @@ 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"
|
||||||
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 -uj eqemu-server-linux-x64.zip "$f"
|
$ZIP_CMD "$f"
|
||||||
fi
|
fi
|
||||||
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 .. -type f -name "*.so*" \( -path "../bin/*" -o -path "../libs/*" \) -print0 | \
|
find . ../libs -type f -name "*.so*" -print0 | \
|
||||||
while IFS= read -r -d '' lib; do
|
while IFS= read -r -d '' lib; do
|
||||||
zip -uj eqemu-server-linux-x64.zip "$lib"
|
$ZIP_CMD "$lib"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Verify zip file was created and contains files
|
# Verify zip file was created and contains files
|
||||||
|
|||||||
Reference in New Issue
Block a user