AppImage: CEF lives in usr/lib, beside the libcef the binary loads
linuxdeploy points binaries at usr/lib and copied libcef.so there, away from CEF's data: two 1.45 GB copies and a crash on ICU data. The CEF runtime now moves to usr/lib, and linuxdeploy runs with the AppDir's lib path, so libcef.so is found in place and kept once. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
09d2a6b681
commit
ba5c0798cb
2 files changed
+11
-2
No files matched your search
@@ -88,11 +88,19 @@ for helper in ely-lok-worker ely-pdf-worker; do
|
||||
fi
|
||||
done
|
||||
if [ -f "$bin/libcef.so" ]; then
|
||||
deployed+=(--library "$bin/libcef.so")
|
||||
# Binaries here load from usr/lib; CEF's data sits with libcef.
|
||||
cef=${ELY_CEF:-$root/engines/cef}
|
||||
mkdir -p "$appdir/usr/lib"
|
||||
for item in "$bin"/*; do
|
||||
if [ -e "$cef/${item##*/}" ]; then
|
||||
mv "$item" "$appdir/usr/lib/"
|
||||
fi
|
||||
done
|
||||
deployed+=(--library "$appdir/usr/lib/libcef.so")
|
||||
fi
|
||||
|
||||
# linuxdeploy bundles libraries and fails on a missing one.
|
||||
"$deploy" --appimage-extract-and-run --appdir "$appdir" "${deployed[@]}" \
|
||||
LD_LIBRARY_PATH=$appdir/usr/lib "$deploy" --appimage-extract-and-run --appdir "$appdir" "${deployed[@]}" \
|
||||
--desktop-file "$work/$slug.desktop" --icon-file "$icon"
|
||||
|
||||
mkdir -p "$dist"
|
||||
|
||||
Reference in new issue
Block a user