appImage.sh
16 lines
| 915 B
| application/x-sh
|
BashLexer
r1391 | #!/bin/bash | |||
r1445 | HERE="$(dirname "$(readlink -f "${0}")")" | |||
r1391 | mkdir build | |||
cd build | ||||
r1443 | mkdir -p $(pwd)/AppDir/usr | |||
r1445 | cp $HERE/AppRun $(pwd)/AppDir/ | |||
chmod +x $(pwd)/AppDir/AppRun | ||||
r1446 | virtualenv --always-copy --relocatable -p python3 $(pwd)/AppDir/usr | |||
r1445 | $(pwd)/AppDir/usr/bin/pip3 install git+https://github.com/jeandet/spwc | |||
r1391 | meson --prefix=/usr .. | |||
ninja | ||||
r1443 | DESTDIR=$(pwd)/AppDir ninja install | |||
r1394 | mv AppDir/usr/lib64 AppDir/usr/lib | |||
r1393 | wget https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage | |||
chmod +x linuxdeployqt-continuous-x86_64.AppImage && ./linuxdeployqt-continuous-x86_64.AppImage --appimage-extract | ||||
r1446 | LD_LIBRARY_PATH=AppDir/usr/lib/:AppDir/usr/lib/SciQLop/:$(python3-config --prefix)/lib64 ./squashfs-root/AppRun AppDir/usr/share/applications/*.desktop -appimage -extra-plugins=iconengines,platformthemes/libqgtk3.so -ignore-glob=$(pwd)/AppDir/usr/lib/python3.6/site-packages/* | |||