From b6571848674a438001d4a0e05b950708f7b97727 Mon Sep 17 00:00:00 2001 From: miruka Date: Fri, 20 Mar 2020 14:01:52 -0400 Subject: [PATCH] Add MIRAGE_REPO_URL variable to build-appimage.sh --- build-appimage.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/build-appimage.sh b/build-appimage.sh index 2590efcd..631e27b6 100755 --- a/build-appimage.sh +++ b/build-appimage.sh @@ -17,11 +17,12 @@ # # lxc launch images:ubuntu/xenial/amd64 ubuntu # -# Copy the mirage repository inside the container -# (assuming you are currently in its root, else change the './*'): +# If you want to build an image for something else than the official unmodified +# repo, either change the MIRAGE_REPO_URL variable or directly copy your +# repository inside the container. Example: # # lxc exec ubuntu -- /bin/mkdir -p /root/mirage -# lxc file push -vr ./* ubuntu/root/mirage +# lxc file push -vr /* ubuntu/root/mirage # # Run this script inside the container: # @@ -33,6 +34,8 @@ set -eo pipefail +MIRAGE_REPO_URL='https://github.com/mirukan/mirage' + check_distro() { if grep -q '^\s*Ubuntu\s*16.04' /etc/issue; then return; fi @@ -156,7 +159,7 @@ get_app_and_pip_dependencies() { cd ~ if ! [ -d mirage ]; then - git clone --recursive https://github.com/mirukan/mirage + git clone --recursive "$MIRAGE_REPO_URL" fi cd mirage