1 # How to create AppImages for Geeqie
3 ## Download the required tools
5 Download the `linuxdeploy` tools. At the time of writing, these are:
8 wget -c https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
9 chmod +x linuxdeploy-x86_64.AppImage
10 wget -c https://raw.githubusercontent.com/linuxdeploy/linuxdeploy-plugin-gtk/master/linuxdeploy-plugin-gtk.sh
11 chmod +x linuxdeploy-plugin-gtk.sh
12 sudo apt install patchelf
13 sudo apt install librsvg2-dev
16 The first two of these files must be in your `$PATH` environment variable.
18 ## Generate the executable
21 cd <your working area>
24 Download Geeqie sources:
27 git clone git://www.geeqie.org/geeqie.git
31 If a run has already been made, remove any existing targets:
34 rm -r <target dir>/AppDir
38 Create a fresh target directory:
41 mkdir <target dir>/AppDir
44 Generate the Geeqie executable:
47 meson setup appimage-build
48 meson configure -Dprefix=/usr appimage-build
49 DESTDIR=<full path to target dir>/AppDir ninja -C build-appimage install
52 ## Generate the AppImage
56 linuxdeploy-x86_64.AppImage \
57 --appdir ./AppDir --output appimage \
58 --desktop-file ./AppDir/usr/share/applications/geeqie.desktop \
59 --icon-file ./AppDir/usr/share/pixmaps/geeqie.png \
61 --executable ./AppDir/usr/bin/geeqie`
66 If required, rename the AppImage executable - e.g.:
69 mv ./Geeqie-v1.6-x86_64.AppImage $(./Geeqie-v1.6-x86_64.AppImage -v | sed 's/git//' | sed 's/-.* /-/' | sed 's/ /-v/' | sed 's/-GTK3//').AppImage
74 The script `./scripts/generate-appimage.sh` automates this process.