diff options
author | BeatLink <beatlink@protonmail.com> | 2019-08-16 20:00:38 -0500 |
---|---|---|
committer | BeatLink <beatlink@protonmail.com> | 2019-08-16 20:00:38 -0500 |
commit | d16a5b29e81bb6e0e58af2a97484defccacf355c (patch) | |
tree | 4ef06da3e1d9548a99fc4ce8adf4587d7bd14621 /linux/binary_tarball/scripts/4_Build_Binary_Tarball.sh | |
parent | move toggle settings folder to linux script (diff) | |
download | librewolf-linux-d16a5b29e81bb6e0e58af2a97484defccacf355c.tar.gz librewolf-linux-d16a5b29e81bb6e0e58af2a97484defccacf355c.tar.bz2 librewolf-linux-d16a5b29e81bb6e0e58af2a97484defccacf355c.zip |
Move branding and settings to seperate repos and move browser to top level
Diffstat (limited to 'linux/binary_tarball/scripts/4_Build_Binary_Tarball.sh')
-rwxr-xr-x | linux/binary_tarball/scripts/4_Build_Binary_Tarball.sh | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/linux/binary_tarball/scripts/4_Build_Binary_Tarball.sh b/linux/binary_tarball/scripts/4_Build_Binary_Tarball.sh new file mode 100755 index 0000000..5f3ebe5 --- /dev/null +++ b/linux/binary_tarball/scripts/4_Build_Binary_Tarball.sh @@ -0,0 +1,34 @@ +#!/bin/sh +printf "\n\n--------------------------------------- BUILD -----------------------------------------------\n"; + +# Setup Script Variables +SOURCE_FOLDER=$1; +OUTPUT_TARBALL=$2; +_SOURCE_CODE_BINARY_TARBALL_LOCATION="./obj*/dist/librewolf*.tar.bz2"; + +# Prevents build from breaking in CI/CD environments +export SHELL=/bin/bash; + +# Changes current folder to the source code folder +cd $SOURCE_FOLDER; + +# Runs bootstrapper to install dependencies +printf "\nRunning bootstrapper to install build dependencies (using ./mach script within source code)\n"; +./mach bootstrap --application-choice=browser --no-interactive; + +# Executes the actual build +printf "\nBuilding LibreWolf\n"; +./mach build; + +# Packages the build into a binary tarball +printf "\nPackaging LibreWolf\n"; +./mach package; + +# Moves the packaged tarball to the specified location +printf "\nMoving Binary Tarball to output location\n"; +mv $_SOURCE_CODE_BINARY_TARBALL_LOCATION $OUTPUT_TARBALL; + +# Deletes the source code +printf "\nDeleting source code\n"; +rm -rf $SOURCE_FOLDER; + |