From 80178174c9f1a7bad5daad060a047ce8df29c34d 2019-01-16 20:37:32 From: Alexis Jeandet Date: 2019-01-16 20:37:32 Subject: [PATCH] Added AppImage build support for linux Signed-off-by: Alexis Jeandet --- diff --git a/app/resources/SciQLOP.desktop b/app/resources/SciQLOP.desktop index d928f6c..36f6cfb 100644 --- a/app/resources/SciQLOP.desktop +++ b/app/resources/SciQLOP.desktop @@ -1,14 +1,13 @@ [Desktop Entry] Version=1.0 -Name=QLop -Name[en_US]=SciQLOP +Name=SciQLOP Type=Application GenericName=SciQLOP Comment=SCIentific Qt application for Learning from Observations of Plasmas -Exec=sciqlopapp -Icon=/usr/share/SciQLOP/icons/sciqlopLOGO.svg +Exec=sciqlop +Icon=sciqlopLOGO Terminal=false Categories=Qt;Education;Science; diff --git a/build_cfg/linux/appImage.sh b/build_cfg/linux/appImage.sh new file mode 100644 index 0000000..abd48a0 --- /dev/null +++ b/build_cfg/linux/appImage.sh @@ -0,0 +1,12 @@ +#!/bin/bash +mkdir build +cd build +meson --prefix=/usr .. +ninja +DESTDIR=AppDir ninja install +wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage +chmod +x linuxdeploy-x86_64.AppImage +LD_LIBRARY_PATH=AppDir/usr/lib/ ./linuxdeploy-x86_64.AppImage --appdir AppDir +mv ./AppDir/usr/lib64/*.so ./AppDir/usr/lib/ +mv ./AppDir/usr/lib/*plugin.so ./AppDir/usr/bin/ +LD_LIBRARY_PATH=AppDir/usr/lib/ ./linuxdeploy-x86_64.AppImage --appdir AppDir --output appimage \ No newline at end of file diff --git a/meson.build b/meson.build index cfa4c8b..a35d703 100644 --- a/meson.build +++ b/meson.build @@ -21,6 +21,9 @@ if build_machine.system()=='darwin' meson.add_install_script('build_cfg/mac/install_script.sh') elif host_machine.system()=='windows' meson.add_install_script('build_cfg/windows/install_script.sh') +elif host_machine.system()=='linux' + install_data('app/resources/sciqlopLOGO.svg', install_dir : 'share/icons/hicolor/scalable/') + install_data('app/resources/SciQLOP.desktop', install_dir : 'share/applications') endif # Sets AMDA server that will be used during execution.