##// END OF EJS Templates
Don't hard-code build path! #Shame!...
jeandet -
r1449:e51b563754fc
parent child
Show More
@@ -2,8 +2,11
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 SCIQLOP_SCR=$HERE/../../
6 cd build
6 SCIQLOP_BUILD=$SCIQLOP_SCR/build/
7 SCIQLOP_APPDIR=$SCIQLOP_BUILD/AppDir
8 mkdir $SCIQLOP_BUILD
9 cd $SCIQLOP_BUILD
7 # need to build python to easily install/relocate in AppImage
10 # 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
11 wget https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tgz
9 tar -xf Python-3.7.3.tgz
12 tar -xf Python-3.7.3.tgz
@@ -11,18 +14,18 cd Python-3.7.3
11 # Optimisation is damn slow maybe enabled later
14 # Optimisation is damn slow maybe enabled later
12 ./configure --enable-shared --prefix=/usr
15 ./configure --enable-shared --prefix=/usr
13 make -j
16 make -j
14 DESTDIR=$(pwd)/../AppDir make install
17 DESTDIR=$SCIQLOP_BUILD/AppDir make install
15 cd ..
18 cd ..
16 cp $HERE/AppRun $(pwd)/AppDir/
19 cp $HERE/AppRun $SCIQLOP_APPDIR/
17 chmod +x $(pwd)/AppDir/AppRun
20 chmod +x $SCIQLOP_APPDIR/AppRun
18 # Tweak to find custom python from build dir
21 # Tweak to find custom python from build dir
19 sed s/\\/usr/\\/SciQLop\\/build\\/AppDir\\/usr/ -i AppDir/usr/lib/pkgconfig/python3.pc
22 sed s|/usr|$SCIQLOP_APPDIR/usr| -i $SCIQLOP_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
23 LD_PRELOAD=$SCIQLOP_APPDIR/usr/lib/libpython3.7m.so.1.0 PATH=$SCIQLOP_APPDIR/usr/bin/:/usr/bin/ LD_LIBRARY_PATH=AppDir/usr/lib/:AppDir/usr/lib/python3.7/ $SCIQLOP_APPDIR/usr/bin/python3 $SCIQLOP_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 ..
24 LD_LIBRARY_PATH=$SCIQLOP_APPDIR/usr/lib/ PKG_CONFIG_PATH=$SCIQLOP_APPDIR/usr/lib/pkgconfig/:$PKG_CONFIG_PATH PATH=$SCIQLOP_APPDIR/usr/bin/:$PATH meson --prefix=/usr ..
22 ninja
25 ninja
23 DESTDIR=$(pwd)/AppDir ninja install
26 DESTDIR=$$SCIQLOP_APPDIR ninja install
24 cp -rf AppDir/usr/lib64/* AppDir/usr/lib/
27 cp -rf $SCIQLOP_APPDIR/usr/lib64/* $SCIQLOP_APPDIR/usr/lib/
25 rm -rf AppDir/usr/lib64/
28 rm -rf $SCIQLOP_APPDIR/usr/lib64/
26 wget https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage
29 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
30 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
31 LD_LIBRARY_PATH=$SCIQLOP_APPDIR/usr/lib:$SCIQLOP_APPDIR/usr/lib/SciQLop/:$SCIQLOP_APPDIR/usr/lib/python3.7/site-packages/numpy/.libs/ ./squashfs-root/AppRun $SCIQLOP_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