foxgirl-linux/browser/linux/binary_tarball/scripts/4_Build_Binary_Tarball.sh
2019-07-17 15:22:03 -05:00

30 lines
793 B
Bash
Executable file

#!/bin/sh
SOURCE_FOLDER=$1;
OUTPUT_TARBALL=$2;
# Prevents build from breaking in CI/CD environments
export SHELL=/bin/bash;
printf "SHELL=$SHELL\n";
printf "\n\n--------------------------------------- BUILD -----------------------------------------------\n";
# Installs build dependencies (using the ./mach script inside the source code)
printf "\nRunning bootstrapper to install build dependencies (using ./mach script within source code)\n";
./mach bootstrap --application-choice=browser --no-interactive;
cd $SOURCE_FOLDER;
printf "\nBuilding LibreWolf\n";
./mach build;
printf "\nPackaging LibreWolf\n";
./mach package;
printf "\nMoving Binary Tarball to output location\n";
mv ./obj*/dist/librewolf*.tar.bz2 $OUTPUT_TARBALL;
printf "\nDeleting the compile_folder\n";
rm -rf ./;