foxgirl-linux/browser/linux/binary_tarball/scripts/4_Build_Binary_Tarball.sh

31 lines
823 B
Bash
Raw Normal View History

#!/bin/sh
SOURCE_FOLDER=$1;
OUTPUT_TARBALL=$2;
2019-07-17 22:22:03 +02:00
# Prevents build from breaking in CI/CD environments
export SHELL=/bin/bash;
printf "SHELL=$SHELL\n";
printf "\n\n--------------------------------------- BUILD -----------------------------------------------\n";
2019-07-19 00:43:22 +02:00
cd $SOURCE_FOLDER
# 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";
2019-07-20 00:26:38 +02:00
rm -rf $SOURCE_FOLDER;