mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-05 07:52:25 +00:00
Merge pull request #27 from Valorith/copilot/include-dll-files-in-package
Include vcpkg shared libraries in Linux release artifact
This commit is contained in:
commit
dc36f19cf1
18
.github/workflows/release.yaml
vendored
18
.github/workflows/release.yaml
vendored
@ -95,7 +95,7 @@ jobs:
|
|||||||
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, build/libs, and vcpkg_installed)
|
||||||
bin_lib_count="$(find . -maxdepth 1 -type f \( -name "*.so" -o -name "*.so.[0-9]*" \) | wc -l)"
|
bin_lib_count="$(find . -maxdepth 1 -type f \( -name "*.so" -o -name "*.so.[0-9]*" \) | wc -l)"
|
||||||
if [ "$bin_lib_count" -gt 0 ]; then
|
if [ "$bin_lib_count" -gt 0 ]; then
|
||||||
find . -maxdepth 1 -type f \( -name "*.so" -o -name "*.so.[0-9]*" \) -print0 | \
|
find . -maxdepth 1 -type f \( -name "*.so" -o -name "*.so.[0-9]*" \) -print0 | \
|
||||||
@ -118,6 +118,22 @@ jobs:
|
|||||||
echo "No build/libs directory found; skipping shared library packaging"
|
echo "No build/libs directory found; skipping shared library packaging"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
for vcpkg_dir in ../vcpkg_installed ../../vcpkg_installed; do
|
||||||
|
if [ -d "$vcpkg_dir" ]; then
|
||||||
|
lib_count="$(find "$vcpkg_dir" -type f \( -name "*.so" -o -name "*.so.[0-9]*" \) ! -path "*/debug/*" -print | wc -l)"
|
||||||
|
if [ "$lib_count" -gt 0 ]; then
|
||||||
|
find "$vcpkg_dir" -type f \( -name "*.so" -o -name "*.so.[0-9]*" \) ! -path "*/debug/*" -print0 | \
|
||||||
|
while IFS= read -r -d '' lib; do
|
||||||
|
zip_add_unique "$lib"
|
||||||
|
done
|
||||||
|
else
|
||||||
|
echo "No shared libraries found in $vcpkg_dir"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "No $vcpkg_dir directory found; skipping vcpkg shared library packaging"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
# 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
|
||||||
echo "Error: Failed to create zip file"
|
echo "Error: Failed to create zip file"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user