aboutsummaryrefslogtreecommitdiff
path: root/browser/linux/binary_tarball/scripts/4_Build_Binary_Tarball.sh
blob: 8faac4989aad2943b2d9089e25def5b379d818d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/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";
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";
rm -rf $SOURCE_FOLDER;

bgstack15