Skip to content

Commit

Permalink
Fix appimage linking
Browse files Browse the repository at this point in the history
  • Loading branch information
LyzardKing committed Jun 20, 2018
1 parent 2206c7e commit 33e59a8
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,20 @@ script:
make -j"$NPROC";
make DESTDIR=appdir -j"$NPROC" install ; find appdir/;
cp /usr/lib/python2.7/lib-dynload/_tkinter.so appdir/usr/;
ldd appdir/usr/_tkinter.so | grep "=>" | awk '{print $3}' | xargs -I '{}' cp -v '{}' appdir/usr/lib || true;
cp -r /usr/lib/tcltk appdir/usr/lib/;
cp -r /usr/share/tcltk appdir/usr/share/;
sed -i -e 's|/usr/share/scribus|././/share/scribus|g' usr/bin/scribus
sed -i -e 's|/usr/lib/scribus|././/lib/scribus|g' usr/bin/scribus
sed -i -e 's|/usr/share/doc/scribus/|././/share/doc/scribus/|g' usr/bin/scribus
sed -i -e 's|/usr/share/scribus|././/share/scribus|g' appdir/usr/bin/scribus
sed -i -e 's|/usr/lib/scribus|././/lib/scribus|g' appdir/usr/bin/scribus
sed -i -e 's|/usr/share/doc/scribus/|././/share/doc/scribus/|g' appdir/usr/bin/scribus
wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage";
chmod a+x linuxdeployqt-continuous-x86_64.AppImage;
unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH;
export VERSION=$(git rev-parse --short HEAD);
./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/*.desktop -bundle-non-qt-libs -extra-plugins=iconengines/libqsvgicon.so;
./linuxdeployqt-continuous-x86_64.AppImage --appimage-extract;
mv appdir/usr/_tkinter.so appdir/usr/lib/;
( cd appdir/usr/ ; ln -s ./lib/_tkinter.so . );
./squashfs-root/usr/bin/linuxdeployqt -bundle-non-qt-libs appdir/usr/lib/_tkinter.so;
./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/*.desktop -appimage;
curl --upload-file "${TRAVIS_BUILD_DIR}/Scribus-${VERSION}-x86_64.AppImage" https://transfer.sh/"Scribus-${VERSION}-x86_64.AppImage";
fi
Expand Down

0 comments on commit 33e59a8

Please sign in to comment.