2019-07-17 20:50:38 +02:00
|
|
|
#!/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";
|
|
|
|
|
2019-07-17 20:50:38 +02:00
|
|
|
printf "\n\n--------------------------------------- BUILD -----------------------------------------------\n";
|
2019-07-19 00:43:22 +02:00
|
|
|
cd $SOURCE_FOLDER
|
2019-07-17 20:50:38 +02:00
|
|
|
|
2019-07-17 21:02:01 +02:00
|
|
|
# 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;
|
2019-07-17 20:50:38 +02:00
|
|
|
|
|
|
|
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 ./;
|
|
|
|
|