aboutsummaryrefslogtreecommitdiff
path: root/flatpak/build_flatpak.sh
diff options
context:
space:
mode:
Diffstat (limited to 'flatpak/build_flatpak.sh')
-rwxr-xr-xflatpak/build_flatpak.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/flatpak/build_flatpak.sh b/flatpak/build_flatpak.sh
index 4d74dd3..6317b1c 100755
--- a/flatpak/build_flatpak.sh
+++ b/flatpak/build_flatpak.sh
@@ -16,6 +16,17 @@ _FLATPAK_JSON_FILE=$_SCRIPT_FOLDER/content/io.gitlab.LibreWolf.json;
_FLATPAK_BUILD_SOURCE_FOLDER=$_SCRIPT_FOLDER/source;
_FLATPAK_BUILD_FOLDER=build-dir;
+
+if [[ -z "${TARBALL_URL}" ]];then
+ apt update && apt-install -y wget
+ wget "${TARBALL_URL}"
+fi
+
+if [[ ! -f "${BINARY_TARBALL}" ]];then
+ echo "Tarball not provided via pipeline or download."
+ exit 1
+fi
+
# Install build dependencies
printf "\nInstalling flatpak build dependencies\n";
bgstack15