1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(appimage): Patch manually copied libs to include rpath for local dir

linuxdeployqt already does this for its copied libs. Required for included libs to find libs inside the appimage that they depend on.
This commit is contained in:
Anthony Bilinski 2021-10-27 17:32:55 -07:00
parent cb6fd88239
commit cb8a095fd2
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

View File

@ -173,7 +173,9 @@ libs=(
) )
for lib in "${libs[@]}"; do for lib in "${libs[@]}"; do
lib_file_name=$(basename "$lib")
cp -P $(echo "$lib"*) "$LOCAL_LIB_DIR" cp -P $(echo "$lib"*) "$LOCAL_LIB_DIR"
patchelf --set-rpath '$ORIGIN' "$LOCAL_LIB_DIR/$lib_file_name"
done done
# this is important, aitool automatically uses the same filename in .zsync meta file. # this is important, aitool automatically uses the same filename in .zsync meta file.