diff options
Diffstat (limited to 'binary_tarball/scripts/5_Configure_Binary_Tarball.sh')
-rwxr-xr-x | binary_tarball/scripts/5_Configure_Binary_Tarball.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/binary_tarball/scripts/5_Configure_Binary_Tarball.sh b/binary_tarball/scripts/5_Configure_Binary_Tarball.sh new file mode 100755 index 0000000..562b05e --- /dev/null +++ b/binary_tarball/scripts/5_Configure_Binary_Tarball.sh @@ -0,0 +1,26 @@ +#!/bin/sh +printf "\n\n--------------------------------- SETTINGS INTEGRATION --------------------------------------\n"; + +# Setup Script Variables +BINARY_TARBALL=$1; +TOGGLE_SETTINGS_SCRIPT=$2l +LAUNCHER_SCRIPT=$3; +_EXTRACTED_TARBALL_FOLDER=./librewolf; +_SETTINGS_REPO='git@gitlab.com:librewolf-community/librewolf-settings.git'; + +# Extracts the binary tarball +printf "\nExtracting librewolf binary tarball\n"; +tar -xvf $BINARY_TARBALL; + +# Adds the librefox config files to the packaged tarball +printf "\nCopying librewolf settings to extracted binary tarball\n"; + +git clone _SETTINGS_REPO $_EXTRACTED_TARBALL_FOLDER/settings; +cp $TOGGLE_SETTINGS_SCRIPT $_EXTRACTED_TARBALL_FOLDER/settings; +cp $LAUNCHER_SCRIPT $_EXTRACTED_TARBALL_FOLDER/launch_librewolf.sh; + +# Repacks the binary tarball +printf "\nRecompressing binary tarball\n"; +tar -jcvf $BINARY_TARBALL $_EXTRACTED_TARBALL_FOLDER; + + |