aboutsummaryrefslogtreecommitdiff
path: root/browser/linux/binary_tarball/build_tarball.sh
blob: 91cf4aeb736187cff983481cec1435eede35b26c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
printf "\n------------------------------------- BINARY TARBALL BUILD ------------------------------------------\n";

# Aborts the script upon any faliure
set -e;

# Sets up script variables
BINARY_TARBALL=$1;
_SCRIPT_FOLDER=$(realpath $(dirname $0));
_REPOSITORY_FOLDER=$(realpath $_SCRIPT_FOLDER/../../../);
_BINARY_TARBALL_SOURCE_FOLDER=$_SCRIPT_FOLDER/compile;
_BINARY_TARBALL_SOURCE_CONTENT_FOLDER=$_REPOSITORY_FOLDER/browser/common/source_files/;
_BINARY_TARBALL_SETTINGS_FOLDER=$_REPOSITORY_FOLDER/settings;
_BINARY_TARBALL_LAUNCH_SCRIPT=$_SCRIPT_FOLDER/binary_tarball/content/launch_librewolf.sh;

# Executes the build
$_SCRIPT_FOLDER/1_Install_Dependencies.sh;
$_SCRIPT_FOLDER/2_Download_Source_Code.sh $_BINARY_TARBALL_SOURCE_FOLDER;
$_SCRIPT_FOLDER/3_Configure_Source_Code.sh $_BINARY_TARBALL_SOURCE_FOLDER $_BINARY_TARBALL_SOURCE_CONTENT_FOLDER;
$_SCRIPT_FOLDER/4_Build_Binary_Tarball.sh $_BINARY_TARBALL_SOURCE_FOLDER $BINARY_TARBALL;
$_SCRIPT_FOLDER/5_Configure_Binary_Tarball.sh $BINARY_TARBALL $_BINARY_TARBALL_SETTINGS_FOLDER $_BINARY_TARBALL_LAUNCH_SCRIPT;

bgstack15