Skip to content

Commit c15206b

Browse files
committed
Add installation of bundled libraries for zsync2 in make-anyimage.sh
1 parent 0572777 commit c15206b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

scripts/make-anyimage.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,17 @@ meson setup build-anyimage --prefix=/usr \
106106
meson compile -C build-anyimage
107107
meson install -C build-anyimage
108108

109+
# ── Install bundled libraries needed by fetched tools ────────────────
110+
# The fetch-zsync-tools.sh script extracts zsync2 from an AppImage that
111+
# was built against OpenSSL 1.1. It also extracts the missing .so files
112+
# into build-anyimage/lib/, but meson only installs the binary.
113+
# Copy those libs to the system so quick-sharun's ldd check passes.
114+
if [ -d build-anyimage/lib ]; then
115+
echo "Installing bundled libraries for zsync2..."
116+
cp -v build-anyimage/lib/*.so* /usr/lib/ 2>/dev/null || true
117+
ldconfig 2>/dev/null || true
118+
fi
119+
109120
# ── Get version ──────────────────────────────────────────────────────
110121
VERSION=$(meson introspect build-anyimage --projectinfo 2>/dev/null \
111122
| awk -F'"' '/"version"/{print $4}')

0 commit comments

Comments
 (0)