Changeset View
Changeset View
Standalone View
Standalone View
packaging/linux/appimage/build-image.sh
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | |||||
44 | cp -r $DEPS_INSTALL_PREFIX/share/kf5 $APPDIR/usr/share | 44 | cp -r $DEPS_INSTALL_PREFIX/share/kf5 $APPDIR/usr/share | ||
45 | cp -r $DEPS_INSTALL_PREFIX/share/mime $APPDIR/usr/share | 45 | cp -r $DEPS_INSTALL_PREFIX/share/mime $APPDIR/usr/share | ||
46 | cp -r $DEPS_INSTALL_PREFIX/translations $APPDIR/usr/ | 46 | cp -r $DEPS_INSTALL_PREFIX/translations $APPDIR/usr/ | ||
47 | 47 | | |||
48 | # Step 2: Relocate x64 binaries from the architecture specific directory as required for Appimages | 48 | # Step 2: Relocate x64 binaries from the architecture specific directory as required for Appimages | ||
49 | mv $APPDIR/usr/lib/x86_64-linux-gnu/* $APPDIR/usr/lib | 49 | mv $APPDIR/usr/lib/x86_64-linux-gnu/* $APPDIR/usr/lib | ||
50 | rm -rf $APPDIR/usr/lib/x86_64-linux-gnu/ | 50 | rm -rf $APPDIR/usr/lib/x86_64-linux-gnu/ | ||
51 | 51 | | |||
52 | # Step 3: Update the rpath in the various plugins we have to make sure they'll be loadable in an Appimage context | 52 | # Step 3: Move plugins to loadable location | ||
53 | for lib in $PLUGINS/*.so*; do | 53 | mv $PLUGINS $APPDIR/usr/plugins | ||
54 | | ||||
55 | # Step 4: Update the rpath in the various plugins we have to make sure they'll be loadable in an Appimage context | ||||
56 | for lib in $APPDIR/usr/plugins/kmymoney/*.so*; do | ||||
54 | patchelf --set-rpath '$ORIGIN/..' $lib; | 57 | patchelf --set-rpath '$ORIGIN/..' $lib; | ||
55 | done | 58 | done | ||
56 | 59 | | |||
57 | # Step 4: Build the image!!! | 60 | # Step 5: Build the image!!! | ||
58 | linuxdeployqt $APPDIR/usr/share/applications/org.kde.kmymoney.desktop \ | 61 | linuxdeployqt $APPDIR/usr/share/applications/org.kde.kmymoney.desktop \ | ||
59 | -executable=$APPDIR/usr/bin/kmymoney \ | 62 | -executable=$APPDIR/usr/bin/kmymoney \ | ||
60 | -qmldir=$DEPS_INSTALL_PREFIX/qml \ | 63 | -qmldir=$DEPS_INSTALL_PREFIX/qml \ | ||
61 | -verbose=2 \ | 64 | -verbose=2 \ | ||
62 | -bundle-non-qt-libs \ | 65 | -bundle-non-qt-libs \ | ||
63 | -appimage | 66 | -appimage \ | ||
67 | -exclude-libs=libnss3.so,libnssutil3.so | ||||
64 | 68 | | |||
65 | # Step 5: Find out what version of KMyMoney we built and give the Appimage a proper name | 69 | # Step 5: Find out what version of KMyMoney we built and give the Appimage a proper name | ||
66 | cd $BUILD_PREFIX/kmymoney-build | 70 | cd $BUILD_PREFIX/kmymoney-build | ||
67 | KMYMONEY_VERSION=$(grep "KMyMoney VERSION" CMakeLists.txt | cut -d '"' -f 2) | 71 | KMYMONEY_VERSION=$(grep "KMyMoney VERSION" CMakeLists.txt | cut -d '"' -f 2) | ||
68 | 72 | | |||
69 | # Also find out the revision of Git we built | 73 | # Also find out the revision of Git we built | ||
70 | # Then use that to generate a combined name we'll distribute | 74 | # Then use that to generate a combined name we'll distribute | ||
71 | cd $KMYMONEY_SOURCES | 75 | cd $KMYMONEY_SOURCES | ||
Show All 13 Lines |