changeset 705:b93d662a12df

Load up appimage builder
author Chris Cannam
date Wed, 12 Dec 2018 10:36:06 +0000
parents bec2618313d8
children 345c12e02e3e
files deploy/linux/build-and-test-appimage.sh deploy/linux/docker/Dockerfile_appimage.in
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/deploy/linux/build-and-test-appimage.sh	Wed Dec 12 10:31:13 2018 +0000
+++ b/deploy/linux/build-and-test-appimage.sh	Wed Dec 12 10:36:06 2018 +0000
@@ -11,6 +11,11 @@
     *);;
 esac
 
+if [ ! -x ./appimagetool-x86_64.AppImage ]; then
+    echo "Failed to find executable ./appimagetool-x86_64.AppImage, please provide that first"
+    exit 2
+fi
+
 echo
 echo "Building appimage from revision $current..."
 
@@ -29,6 +34,8 @@
 chmod 600 "$dockerdir"/known_hosts "$dockerdir"/id_dsa_build
 trap "rm $dockerdir/known_hosts $dockerdir/id_dsa_build" 0
 
+cp appimagetool-x86_64.AppImage "$dockerdir/"
+
 dockertag="cannam/easymercurial-appimage-$current"
 
 sudo docker build -t "$dockertag" -f "$dockerdir"/Dockerfile_appimage.gen "$dockerdir"
--- a/deploy/linux/docker/Dockerfile_appimage.in	Wed Dec 12 10:31:13 2018 +0000
+++ b/deploy/linux/docker/Dockerfile_appimage.in	Wed Dec 12 10:36:06 2018 +0000
@@ -36,6 +36,8 @@
 RUN hg clone -r[[REVISION]] ssh://hg@bitbucket.org/cannam/easyhg
 
 WORKDIR /easyhg
+COPY appimagetool-x86_64.AppImage appimagetool-x86_64.AppImage
+RUN chmod +x appimagetool-x86_64.AppImage
 ENV QTDIR /opt/qt510
 ENV PATH /opt/qt510/bin:$PATH
 RUN qmake -r