From 11604910c1524b523afd6b92d308003fd12debf8 Mon Sep 17 00:00:00 2001 From: miruka Date: Sun, 15 Mar 2020 14:13:23 -0400 Subject: [PATCH] build-appimage.sh: add test instructions --- build-appimage.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/build-appimage.sh b/build-appimage.sh index c2e4005a..5fe1c5f1 100755 --- a/build-appimage.sh +++ b/build-appimage.sh @@ -30,6 +30,28 @@ # You can also start a shell inside (e.g. if something goes wrong): # # lxc exec ubuntu -- /bin/bash +# +# ---------- +# +# To test the AppImage inside a container (any distro), first +# add these lines to "/var/lib/lxd/containers/ubuntu/config" +# (assuming you use LXD and the container is named "ubuntu"): +# +# lxc.mount.entry = /dev/dri dev/dri none bind,optional,create=dir +# lxc.mount.entry = /tmp/.X11-unix tmp/.X11-unix none bind,optional,create=dir +# +# Autorize containers to access your xorg session: +# +# xhost + +# +# Restart the container: +# +# lxc restart ubuntu +# +# You will need to have xorg installed in the container. +# Run the image with the DISPLAY variable correctly set, for example: +# +# lxc exec -- DISPLAY=:0 /root/mirage/build/Mirage-x86_64.AppImage set -eo pipefail