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

26 lines
690 B
Bash
Executable file

#!/bin/sh
SOURCE_FOLDER=$1;
OUTPUT_TARBALL=$2;
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 ./;