From 291b7621ddb7d1427fe0b39611e58c4d88004568 Mon Sep 17 00:00:00 2001 From: a1346054 <36859588+a1346054@users.noreply.github.com> Date: Fri, 22 Oct 2021 18:12:13 +0000 Subject: [PATCH] Improve readability of readme Additionally makes it easier to copy commands to terminal. --- appimages/README.md | 75 ++++++++++++++++++++++++++------------------- 1 file changed, 44 insertions(+), 31 deletions(-) diff --git a/appimages/README.md b/appimages/README.md index 778ecb78..2a27223b 100644 --- a/appimages/README.md +++ b/appimages/README.md @@ -2,46 +2,59 @@ ## Download the required tools: -Download the `linuxdeploy` tool. At the time of writing, this is: - -`wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage` - +Download the `linuxdeploy` tool. At the time of writing, this is: +```sh +wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage +``` Move this file to `$HOME/bin` or somewhere else in your `$PATH` and make executable. - ## Generate the executable -`cd ` - -Download Geeqie sources: -`git clone git://www.geeqie.org/geeqie.git` -`cd geeqie` - -If a run has already been made, remove any existing targets: -`rm -r /AppDir` -`sudo rm -rf doc/html` - -Create a fresh target directory: -`mkdir /AppDir` - -Generate the Geeqie executable: -`sudo make maintainer-clean` -`./autogen.sh --prefix="/usr/"` -`make -j` -`make install DESTDIR=/AppDir` +```sh +cd +``` + +Download Geeqie sources: +```sh +git clone git://www.geeqie.org/geeqie.git +cd geeqie +``` + +If a run has already been made, remove any existing targets: +```sh +rm -r /AppDir +sudo rm -rf doc/html +``` + +Create a fresh target directory: +```sh +mkdir /AppDir +``` + +Generate the Geeqie executable: +```sh +sudo make maintainer-clean +./autogen.sh --prefix="/usr/" +make -j +make install DESTDIR=/AppDir +``` ## Generate the AppImage -`cd ` -`linuxdeploy-x86_64.AppImage \` -`--appdir ./AppDir --output appimage \` -`--desktop-file ./AppDir/usr/share/applications/geeqie.desktop \` -`--icon-file ./AppDir/usr/share/pixmaps/geeqie.png \` -`--executable ./AppDir/usr/bin/geeqie` +```sh +cd +linuxdeploy-x86_64.AppImage \ + --appdir ./AppDir --output appimage \ + --desktop-file ./AppDir/usr/share/applications/geeqie.desktop \ + --icon-file ./AppDir/usr/share/pixmaps/geeqie.png \ + --executable ./AppDir/usr/bin/geeqie` +``` ## Rename AppImage -If required, rename the AppImage executable - e.g.: -`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` +If required, rename the AppImage executable - e.g.: +```sh +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 +``` The script `./scripts/generate-appimage.sh` automates this process. -- 2.20.1