@@ -1,16 +1,16 | |||||
1 | #!/bin/bash |
|
1 | #!/bin/bash | |
2 | HERE="$(dirname "$(readlink -f "${0}")")" |
|
2 | HERE="$(dirname "$(readlink -f "${0}")")" | |
3 | mkdir build |
|
3 | mkdir build | |
4 | cd build |
|
4 | cd build | |
5 | mkdir -p $(pwd)/AppDir/usr |
|
5 | mkdir -p $(pwd)/AppDir/usr | |
6 | cp $HERE/AppRun $(pwd)/AppDir/ |
|
6 | cp $HERE/AppRun $(pwd)/AppDir/ | |
7 | chmod +x $(pwd)/AppDir/AppRun |
|
7 | chmod +x $(pwd)/AppDir/AppRun | |
8 | virtualenv -p python3 $(pwd)/AppDir/usr |
|
8 | virtualenv --always-copy --relocatable -p python3 $(pwd)/AppDir/usr | |
9 | $(pwd)/AppDir/usr/bin/pip3 install git+https://github.com/jeandet/spwc |
|
9 | $(pwd)/AppDir/usr/bin/pip3 install git+https://github.com/jeandet/spwc | |
10 | meson --prefix=/usr .. |
|
10 | meson --prefix=/usr .. | |
11 | ninja |
|
11 | ninja | |
12 | DESTDIR=$(pwd)/AppDir ninja install |
|
12 | DESTDIR=$(pwd)/AppDir ninja install | |
13 | mv AppDir/usr/lib64 AppDir/usr/lib |
|
13 | mv AppDir/usr/lib64 AppDir/usr/lib | |
14 | wget https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage |
|
14 | wget https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage | |
15 | chmod +x linuxdeployqt-continuous-x86_64.AppImage && ./linuxdeployqt-continuous-x86_64.AppImage --appimage-extract |
|
15 | chmod +x linuxdeployqt-continuous-x86_64.AppImage && ./linuxdeployqt-continuous-x86_64.AppImage --appimage-extract | |
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 |
|
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 -ignore-glob=$(pwd)/AppDir/usr/lib/python3.6/site-packages/* |
General Comments 0
You need to be logged in to leave comments.
Login now