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