File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ HERE="$(dirname "$(readlink -f "${0}")")"
1414
1515source " $HERE " /apprun-hooks/" linuxdeploy-plugin-gtk.sh"
1616
17+ export CAMLIBS=$HERE /usr/lib/libgphoto2/` ls -1 --group-directories-first $HERE /usr/lib/libgphoto2| head -1`
18+
1719if [[ ! -z $APPIMAGE ]] ; then
1820 BINARY_NAME=$( basename " $ARGV0 " )
1921 if [[ ! -z " $1 " ]] && [[ -e " $HERE /usr/bin/$1 " ]] ; then
Original file line number Diff line number Diff line change @@ -48,6 +48,12 @@ sed -i 's/\/usr\/bin\///' ../AppDir/usr/share/applications/org.darktable.darktab
4848mkdir -p ../AppDir/usr/share/lensfun
4949cp -a /var/lib/lensfun-updates/* ../AppDir/usr/share/lensfun
5050
51+ # Include gphoto2 driver libraries. We also have to set the CAMLIBS
52+ # environment variable in AppRun.wrapped accordingly when starting
53+ # AppImage so that libgphoto2 can find these drivers.
54+ mkdir -p ../AppDir/usr/lib/libgphoto2
55+ cp -a /usr/lib/x86_64-linux-gnu/libgphoto2/* ../AppDir/usr/lib/libgphoto2
56+
5157# Since linuxdeploy is itself an AppImage, we don't rely on it being installed
5258# on the build system, but download it every time we run this script. If that
5359# doesn't suit you (for example, you want to build an AppImage without an
You can’t perform that action at this time.
0 commit comments