Add MIRAGE_REPO_URL variable to build-appimage.sh

This commit is contained in:
miruka 2020-03-20 14:01:52 -04:00
parent d0a19852b7
commit b657184867

View File

@ -17,11 +17,12 @@
# #
# lxc launch images:ubuntu/xenial/amd64 ubuntu # lxc launch images:ubuntu/xenial/amd64 ubuntu
# #
# Copy the mirage repository inside the container # If you want to build an image for something else than the official unmodified
# (assuming you are currently in its root, else change the './*'): # 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 exec ubuntu -- /bin/mkdir -p /root/mirage
# lxc file push -vr ./* ubuntu/root/mirage # lxc file push -vr <path to repo root>/* ubuntu/root/mirage
# #
# Run this script inside the container: # Run this script inside the container:
# #
@ -33,6 +34,8 @@
set -eo pipefail set -eo pipefail
MIRAGE_REPO_URL='https://github.com/mirukan/mirage'
check_distro() { check_distro() {
if grep -q '^\s*Ubuntu\s*16.04' /etc/issue; then return; fi if grep -q '^\s*Ubuntu\s*16.04' /etc/issue; then return; fi
@ -156,7 +159,7 @@ get_app_and_pip_dependencies() {
cd ~ cd ~
if ! [ -d mirage ]; then if ! [ -d mirage ]; then
git clone --recursive https://github.com/mirukan/mirage git clone --recursive "$MIRAGE_REPO_URL"
fi fi
cd mirage cd mirage