1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-13 10:32:11 +01:00

Update build-appimage.sh

This commit is contained in:
David Rosca 2018-02-28 22:03:18 +01:00
parent 22a976dab5
commit 87ce04b11d
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

15
linux/build-appimage.sh Executable file → Normal file
View File

@ -71,7 +71,7 @@ ${BLD1}--disable-dbus${BLD0}
${BLD1}--sourcedir=${BLD0}
Assuming this script is located in ${ITL1}falkon/scripts${ITL0},
Assuming this script is located in ${ITL1}falkon/linux${ITL0},
otherwise you must specify the path to
Falkon source directory.
@ -202,10 +202,8 @@ make DESTDIR="${PWD}" install
fi
mv usr/local bundle_build_dir
mv bundle_build_dir/lib/plugins/falkon bundle_build_dir/share/falkon/plugins
rmdir bundle_build_dir/lib/plugins
pushd bundle_build_dir/share/falkon/plugins
chrpath --replace '$ORIGIN/../../../lib' *.so
pushd bundle_build_dir/lib/plugins/falkon
chrpath --replace '$ORIGIN/../..' *.so
popd
NEEDEDLIBSLIST="libicudata.so.56
@ -286,7 +284,7 @@ ln -s falkon.png bundle_build_dir/.DirIcon
pushd bundle_build_dir
mv bin/falkon ./ && rm -fr bin
chrpath --replace '$ORIGIN' lib/libFalkonPrivate.so.2
chrpath --replace '$ORIGIN' lib/libFalkonPrivate.so.3.*
chrpath --replace '$ORIGIN/lib' falkon
chrpath --replace '$ORIGIN/lib' QtWebEngineProcess
@ -306,7 +304,8 @@ set -e
FALKON_DIR="\$(dirname "\$(readlink -f "\$0")")"
XDG_DATA_DIRS="\${FALKON_DIR}/share:\${XDG_DATA_DIRS}"
export XDG_DATA_DIRS
FALKON_PLUGIN_PATH="\${FALKON_DIR}/lib/plugins/falkon"
export XDG_DATA_DIRS FALKON_PLUGIN_PATH
cd "\${FALKON_DIR}/"
exec ./falkon "\$@"
@ -337,7 +336,7 @@ fi
if [[ ${TEST} != "yes" ]] ; then
printf "${RDFG}You must have the following tools installed:${DFFG}
${ITL1}mmksquashfs, chrpath${ITL0}!\n"
${ITL1}mksquashfs, chrpath${ITL0}!\n"
exit 1
fi