comparison deploy/linux/build-and-test-appimage.sh @ 705:b93d662a12df

Load up appimage builder
author Chris Cannam
date Wed, 12 Dec 2018 10:36:06 +0000
parents 0720152d1914
children
comparison
equal deleted inserted replaced
704:bec2618313d8 705:b93d662a12df
8 8
9 case "$current" in 9 case "$current" in
10 *+) echo "ERROR: Current working copy has been modified - unmodified copy required so we know we can check it out separately and obtain the same contents"; exit 2;; 10 *+) echo "ERROR: Current working copy has been modified - unmodified copy required so we know we can check it out separately and obtain the same contents"; exit 2;;
11 *);; 11 *);;
12 esac 12 esac
13
14 if [ ! -x ./appimagetool-x86_64.AppImage ]; then
15 echo "Failed to find executable ./appimagetool-x86_64.AppImage, please provide that first"
16 exit 2
17 fi
13 18
14 echo 19 echo
15 echo "Building appimage from revision $current..." 20 echo "Building appimage from revision $current..."
16 21
17 dockerdir=deploy/linux/docker 22 dockerdir=deploy/linux/docker
27 grep '^bitbucket.org' ~/.ssh/known_hosts > "$dockerdir"/known_hosts 32 grep '^bitbucket.org' ~/.ssh/known_hosts > "$dockerdir"/known_hosts
28 cp ~/.ssh/id_dsa_build "$dockerdir"/id_dsa_build 33 cp ~/.ssh/id_dsa_build "$dockerdir"/id_dsa_build
29 chmod 600 "$dockerdir"/known_hosts "$dockerdir"/id_dsa_build 34 chmod 600 "$dockerdir"/known_hosts "$dockerdir"/id_dsa_build
30 trap "rm $dockerdir/known_hosts $dockerdir/id_dsa_build" 0 35 trap "rm $dockerdir/known_hosts $dockerdir/id_dsa_build" 0
31 36
37 cp appimagetool-x86_64.AppImage "$dockerdir/"
38
32 dockertag="cannam/easymercurial-appimage-$current" 39 dockertag="cannam/easymercurial-appimage-$current"
33 40
34 sudo docker build -t "$dockertag" -f "$dockerdir"/Dockerfile_appimage.gen "$dockerdir" 41 sudo docker build -t "$dockertag" -f "$dockerdir"/Dockerfile_appimage.gen "$dockerdir"
35 42
36 outdir="$dockerdir/output" 43 outdir="$dockerdir/output"