fix u3d snap

This commit is contained in:
alemuntoni 2020-06-16 17:06:42 +02:00
parent 0a6a249b21
commit b59e3580fd
3 changed files with 9 additions and 3 deletions

View File

@ -1,4 +1,5 @@
#!/bin/bash
HERE="$(dirname "$(readlink -f "${0}")")"
chmod +x ${HERE}/usr/bin/meshlab
export LD_LIBRARY_PATH=${HERE}/usr/lib/meshlab:$LD_LIBRARY_PATH
exec "${HERE}/usr/bin/meshlab" "$@"
exec "${HERE}/usr/bin/meshlab" "$@"

View File

@ -1,4 +1,5 @@
#!/bin/bash
HERE="$(dirname "$(readlink -f "${0}")")"
chmod +x ${HERE}/usr/bin/meshlabserver
export LD_LIBRARY_PATH=${HERE}/usr/lib/meshlab:$LD_LIBRARY_PATH
exec "${HERE}/usr/bin/meshlabserver" "$@"
exec "${HERE}/usr/bin/meshlabserver" "$@"

View File

@ -16,7 +16,7 @@ confinement: strict
apps:
meshlab:
command: desktop-launch meshlab
command: desktop-launch ./AppRun
plugs: [home, x11, mir, opengl]
desktop: usr/share/applications/meshlab.desktop
meshlabserver:
@ -88,6 +88,10 @@ parts:
rsync -av distrib/* $SNAPCRAFT_PART_INSTALL/
rm $SNAPCRAFT_PART_INSTALL/usr/share/applications/meshlab_server.desktop
cp install/linux/resources/AppRunMeshLab $SNAPCRAFT_PART_INSTALL/
mv $SNAPCRAFT_PART_INSTALL/AppRunMeshLab $SNAPCRAFT_PART_INSTALL/AppRun
chmod +x $SNAPCRAFT_PART_INSTALL/AppRun
#mkdir -p $SNAPCRAFT_PART_INSTALL/usr/bin
#mkdir -p $SNAPCRAFT_PART_INSTALL/usr/lib/meshlab