From b409944faddbfa5dc4e318ef14942f7d9847397a Mon Sep 17 00:00:00 2001 From: ohfp <1813007-ohfp@users.noreply.gitlab.com> Date: Sat, 28 Mar 2020 23:15:41 +0100 Subject: de-Archify some aspects of builds and -scripts; allow to initiate separate steps manually; first attempt to build tarball on ubuntu 16.04 --- appimage/build_appimage.sh | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'appimage') diff --git a/appimage/build_appimage.sh b/appimage/build_appimage.sh index 1317bab..939a948 100755 --- a/appimage/build_appimage.sh +++ b/appimage/build_appimage.sh @@ -1,9 +1,4 @@ #!/bin/bash -""" - - -""" - printf "\n\n------------------------------------ APPIMAGE BUILD -----------------------------------------\n"; # Aborts the script upon any faliure @@ -21,7 +16,16 @@ _APPIMAGETOOL_FILE=$_SCRIPT_FOLDER/appimagetool; _APPIMAGE_CONTENT_FOLDER=$_SCRIPT_FOLDER/content # Installs needed dependencies -apt-get update && apt-get -y install file; +apt-get update && apt-get -y install file wget; + +if [[ -z "${TARBALL_URL}" ]];then + wget "${TARBALL_URL}" +fi + +if [[ ! -f "${BINARY_TARBALL}" ]];then + echo "Tarball not provided via pipeline or download." + exit 1 +fi if [[ $CARCH == 'aarch64' ]]; then apt install -y zlib1g-dev -- cgit