Skip to content

Commit

Permalink
Merge pull request #150 from azubieta/fix_libharfbuzz_missing
Browse files Browse the repository at this point in the history
Copy dependencies recursively
  • Loading branch information
raoulh authored Nov 14, 2017
2 parents d56b0ba + 28794b6 commit 5c8d9b3
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions scripts/ci/linux/appimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,21 +84,17 @@ apt-get install -f -y
mkdir -p $TARGET_DIR/lib/x86_64-linux-gnu/qt5/plugins/platforms/
cp -r /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/* $TARGET_DIR/lib/x86_64-linux-gnu/qt5/plugins/platforms/

list=$(find $TARGET_DIR -type f)
for bynary in $list; do
if [ -f $bynary ]; then
deps=$(ldd $bynary | cut -d ' ' -f 3)
for file in $deps; do
if [ -f $file ]; then
DIR=$(dirname "${file}")
mkdir -p ${APPDIR}${DIR}
cp $file ${APPDIR}${file}
fi
done
fi;
# copy deps recursively
old_list=""
list=$(find .)
while [ "$old_list" != "$list" ]
do
copy_deps
old_list="$list"
list=$(find . | sort | uniq)
done

copy_deps


########################################################################
# Delete stuff that should not go into the AppImage
Expand All @@ -107,7 +103,6 @@ copy_deps
# Delete dangerous libraries; see
# https://github.com/probonopd/AppImages/blob/master/excludelist
delete_blacklisted
find . -name *harfbuzz* -delete

########################################################################
# desktopintegration asks the user on first run to install a menu item
Expand Down

0 comments on commit 5c8d9b3

Please sign in to comment.