##// END OF EJS Templates
AppImage should build and run now...
jeandet -
r1447:e5aec154e474
parent child
Show More
@@ -1,13 +1,13
1 1 #!/bin/bash
2 2 HERE="$(dirname "$(readlink -f "${0}")")"
3 3 echo ${HERE}
4 4 export PREFIX=$HERE/usr
5 5 export LD_LIBRARY_PATH=$HERE/usr/lib
6 6 export PYTHONHOME=$HERE/usr
7 7 export PYTHONPATH=$HERE/usr/lib/python3.6/:$HERE/usr/lib/python3.6/site-packages
8 8 export QT_QPA_PLATFORM_PLUGIN_PATH=$HERE/usr/plugins
9 9 export QT_XKB_CONFIG_ROOT=$HERE/usr/lib
10 10 export FONTCONFIG_FILE=/etc/fonts/fonts.conf
11 11 export FONTCONFIG_PATH=/etc/fonts
12 ${HERE}/usr/bin/sciqlop "$@"
12 LD_PRELOAD=${HERE}/usr/lib/libpython3.7m.so ${HERE}/usr/bin/sciqlop "$@"
13 13
@@ -1,16 +1,28
1 1 #!/bin/bash
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
2 4 HERE="$(dirname "$(readlink -f "${0}")")"
3 5 mkdir build
4 6 cd build
5 mkdir -p $(pwd)/AppDir/usr
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
9 tar -xf Python-3.7.3.tgz
10 cd Python-3.7.3
11 # Optimisation is damn slow maybe enabled later
12 ./configure --enable-shared --prefix=/usr
13 make -j
14 DESTDIR=$(pwd)/../AppDir make install
15 cd ..
6 16 cp $HERE/AppRun $(pwd)/AppDir/
7 17 chmod +x $(pwd)/AppDir/AppRun
8 virtualenv --always-copy --relocatable -p python3 $(pwd)/AppDir/usr
9 $(pwd)/AppDir/usr/bin/pip3 install git+https://github.com/jeandet/spwc
10 meson --prefix=/usr ..
18 # Tweak to find custom python from build dir
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
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 ..
11 22 ninja
12 23 DESTDIR=$(pwd)/AppDir ninja install
13 mv AppDir/usr/lib64 AppDir/usr/lib
24 cp -r -t AppDir/usr/lib64/* AppDir/usr/lib/
25 rm -rf AppDir/usr/lib64/
14 26 wget https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage
15 27 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 -ignore-glob=$(pwd)/AppDir/usr/lib/python3.6/site-packages/*
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