Skip to content

Commit 8df3422

Browse files
victoryforceTurboGit
authored andcommitted
Include gphoto2 driver libraries into AppImage
1 parent 26f3237 commit 8df3422

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

packaging/AppImage/AppRun

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ HERE="$(dirname "$(readlink -f "${0}")")"
1414

1515
source "$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+
1719
if [[ ! -z $APPIMAGE ]] ; then
1820
BINARY_NAME=$(basename "$ARGV0")
1921
if [[ ! -z "$1" ]] && [[ -e "$HERE/usr/bin/$1" ]] ; then

tools/appimage-build-script.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ sed -i 's/\/usr\/bin\///' ../AppDir/usr/share/applications/org.darktable.darktab
4848
mkdir -p ../AppDir/usr/share/lensfun
4949
cp -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

0 commit comments

Comments
 (0)