Skip to content

Commit

Permalink
Exclude python libs when using linuxdeployqt
Browse files Browse the repository at this point in the history
  • Loading branch information
thestr4ng3r committed Jul 14, 2018
1 parent 4f545f9 commit 9fcf031
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,14 @@ after_success:
export FILE_TO_UPLOAD="Cutter.dmg"
; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo make INSTALL_ROOT=appdir install &&
sudo chown -R $USER appdir &&
make INSTALL_ROOT=appdir install &&
cp -r /usr/share/radare2 appdir/usr/share/ &&
"$TRAVIS_BUILD_DIR/scripts/appimage_embed_python.sh" "$CUSTOM_PYTHON_PREFIX" appdir &&
wget -c "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage" &&
wget -c "https://github.com/thestr4ng3r/linuxdeployqt/releases/download/cutter-v1/linuxdeployqt-continuous-x86_64.AppImage" &&
chmod a+x linuxdeployqt*.AppImage &&
unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH &&
LD_LIBRARY_PATH=$CUSTOM_PYTHON_PREFIX/lib ./linuxdeployqt*.AppImage ./appdir/usr/share/applications/*.desktop -bundle-non-qt-libs -no-strip -exclude-libs=libnss3.so,libnssutil3.so -verbose=2 &&
LD_LIBRARY_PATH=$CUSTOM_PYTHON_PREFIX/lib ./linuxdeployqt*.AppImage ./appdir/usr/share/applications/*.desktop -appimage -no-strip -exclude-libs=libnss3.so,libnssutil3.so -verbose=2 &&
LD_LIBRARY_PATH=$CUSTOM_PYTHON_PREFIX/lib ./linuxdeployqt*.AppImage ./appdir/usr/share/applications/*.desktop -bundle-non-qt-libs -no-strip -exclude-libs=libnss3.so,libnssutil3.so -ignore-glob=usr/lib/python3.6/** -verbose=2 &&
LD_LIBRARY_PATH=$CUSTOM_PYTHON_PREFIX/lib ./linuxdeployqt*.AppImage ./appdir/usr/share/applications/*.desktop -appimage -no-strip -exclude-libs=libnss3.so,libnssutil3.so -ignore-glob=usr/lib/python3.6/** -verbose=2 &&
find ./appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq &&
export FILE_TO_UPLOAD="Cutter-x86_64.AppImage"
; fi
Expand Down
4 changes: 2 additions & 2 deletions scripts/prepare_python_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

mkdir -p python && cd python || exit 1

export CUSTOM_PYTHON_PREFIX="`pwd`/prefix"

wget "https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tar.xz" || exit 1
tar -xf Python-3.6.4.tar.xz || exit 1

export CUSTOM_PYTHON_PREFIX="`pwd`/prefix"

cd Python-3.6.4 || exit 1
echo "Building Python to install to prefix $CUSTOM_PYTHON_PREFIX"

Expand Down

0 comments on commit 9fcf031

Please sign in to comment.