##// END OF EJS Templates
AppImage minor fix...
jeandet -
r1448:2b004fc27713
parent child
Show More
@@ -1,28 +1,28
1 1 #!/bin/bash
2 2 # guess using centos 7 as build host
3 3 yum install -y gtk3 openssl-devel.x86_64 ncurses-devel.x86_64 sqlite-devel.x86_64 tkinter.x86_64 readline-devel.x86_64 xz-devel.x86_64 gdbm-devel.x86_64 bzip2-devel.x86_64 tk-devel.x86_64 libffi-devel.x86_64 make
4 4 HERE="$(dirname "$(readlink -f "${0}")")"
5 5 mkdir build
6 6 cd build
7 7 # need to build python to easily install/relocate in AppImage
8 8 wget https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tgz
9 9 tar -xf Python-3.7.3.tgz
10 10 cd Python-3.7.3
11 11 # Optimisation is damn slow maybe enabled later
12 12 ./configure --enable-shared --prefix=/usr
13 13 make -j
14 14 DESTDIR=$(pwd)/../AppDir make install
15 15 cd ..
16 16 cp $HERE/AppRun $(pwd)/AppDir/
17 17 chmod +x $(pwd)/AppDir/AppRun
18 18 # Tweak to find custom python from build dir
19 19 sed s/\\/usr/\\/SciQLop\\/build\\/AppDir\\/usr/ -i AppDir/usr/lib/pkgconfig/python3.pc
20 20 LD_PRELOAD=$(pwd)/AppDir/usr/lib/libpython3.7m.so.1.0 PATH=$(pwd)/AppDir/usr/bin/:/usr/bin/ LD_LIBRARY_PATH=AppDir/usr/lib/:AppDir/usr/lib/python3.7/ $(pwd)/AppDir/usr/bin/python3 $(pwd)/AppDir/usr/bin/pip3 install git+https://github.com/jeandet/spwc
21 21 LD_LIBRARY_PATH=AppDir/usr/lib/ PKG_CONFIG_PATH=./AppDir/usr/lib/pkgconfig/:$PKG_CONFIG_PATH PATH=./AppDir/usr/bin/:$PATH meson --prefix=/usr ..
22 22 ninja
23 23 DESTDIR=$(pwd)/AppDir ninja install
24 cp -r -t AppDir/usr/lib64/* AppDir/usr/lib/
24 cp -rf AppDir/usr/lib64/* AppDir/usr/lib/
25 25 rm -rf AppDir/usr/lib64/
26 26 wget https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage
27 27 chmod +x linuxdeployqt-continuous-x86_64.AppImage && ./linuxdeployqt-continuous-x86_64.AppImage --appimage-extract
28 28 LD_LIBRARY_PATH=AppDir/usr/lib:AppDir/usr/lib/SciQLop/:AppDir/usr/lib/python3.7/site-packages/numpy/.libs/ ./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