##// END OF EJS Templates
AppImage Python test...
jeandet -
r1445:7b301118a3a5
parent child
Show More
@@ -0,0 +1,13
1 #!/bin/bash
2 HERE="$(dirname "$(readlink -f "${0}")")"
3 echo ${HERE}
4 export PREFIX=$HERE/usr
5 export LD_LIBRARY_PATH=$HERE/usr/lib
6 export PYTHONHOME=$HERE/usr
7 export PYTHONPATH=$HERE/usr/lib/python3.6/:$HERE/usr/lib/python3.6/site-packages
8 export QT_QPA_PLATFORM_PLUGIN_PATH=$HERE/usr/plugins
9 export QT_XKB_CONFIG_ROOT=$HERE/usr/lib
10 export FONTCONFIG_FILE=/etc/fonts/fonts.conf
11 export FONTCONFIG_PATH=/etc/fonts
12 ${HERE}/usr/bin/sciqlop "$@"
13
@@ -1,14 +1,16
1 1 #!/bin/bash
2 HERE="$(dirname "$(readlink -f "${0}")")"
2 3 mkdir build
3 4 cd build
4 5 mkdir -p $(pwd)/AppDir/usr
6 cp $HERE/AppRun $(pwd)/AppDir/
7 chmod +x $(pwd)/AppDir/AppRun
5 8 virtualenv -p python3 $(pwd)/AppDir/usr
6 source $(pwd)/AppDir/usr/bin/activate
7 pip install git+https://github.com/jeandet/spwc
9 $(pwd)/AppDir/usr/bin/pip3 install git+https://github.com/jeandet/spwc
8 10 meson --prefix=/usr ..
9 11 ninja
10 12 DESTDIR=$(pwd)/AppDir ninja install
11 13 mv AppDir/usr/lib64 AppDir/usr/lib
12 14 wget https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage
13 15 chmod +x linuxdeployqt-continuous-x86_64.AppImage && ./linuxdeployqt-continuous-x86_64.AppImage --appimage-extract
14 LD_LIBRARY_PATH=AppDir/usr/lib/:AppDir/usr/lib/SciQLop/ ./squashfs-root/AppRun AppDir/usr/share/applications/*.desktop -appimage -extra-plugins=iconengines,platformthemes/libqgtk3.so
16 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
General Comments 0
You need to be logged in to leave comments. Login now