diff options
author | ohfp <1813007-ohfp@users.noreply.gitlab.com> | 2020-03-28 23:15:41 +0100 |
---|---|---|
committer | ohfp <1813007-ohfp@users.noreply.gitlab.com> | 2020-03-28 23:15:41 +0100 |
commit | b409944faddbfa5dc4e318ef14942f7d9847397a (patch) | |
tree | 619c0d52a6f50680554686a5ffec62fdd4c462fb /scripts/02_configure_tarball.sh | |
parent | update eol gnome dependencies for flatpak (diff) | |
download | librewolf-linux-b409944faddbfa5dc4e318ef14942f7d9847397a.tar.gz librewolf-linux-b409944faddbfa5dc4e318ef14942f7d9847397a.tar.bz2 librewolf-linux-b409944faddbfa5dc4e318ef14942f7d9847397a.zip |
de-Archify some aspects of builds and -scripts; allow to initiate separate steps manually; first attempt to build tarball on ubuntu 16.04
Diffstat (limited to 'scripts/02_configure_tarball.sh')
-rwxr-xr-x | scripts/02_configure_tarball.sh | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/scripts/02_configure_tarball.sh b/scripts/02_configure_tarball.sh deleted file mode 100755 index 2b4d959..0000000 --- a/scripts/02_configure_tarball.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash -set -e - -printf "\n\n---------------- prepare package for other distros ----------------\n" - -# Setup Script Variables - -# use $CI_PROJECT_DIR unless not in CI, then assign script path -CI_PROJECT_DIR=${CI_PROJECT_DIR:-$(realpath $(dirname $0)/../)} -OUTPUT_TARBALL=$CI_PROJECT_DIR/LibreWolf.${CARCH}.tar.bz2 -SOURCE_CODE_BINARY_TARBALL_LOCATION="$CI_PROJECT_DIR/src/firefox-*/obj*/dist/librewolf*.tar.bz2" -EXTRACTED_TARBALL_FOLDER=$CI_PROJECT_DIR/librewolf_unpacked/librewolf - -# Prevents build from breaking in CI/CD environments -export SHELL=/bin/bash - -# Moves the packaged tarball to the specified location -printf "\nMoving Binary Tarball to output location\n" -mv $SOURCE_CODE_BINARY_TARBALL_LOCATION $OUTPUT_TARBALL - -# Extracts the binary tarball -printf "\nExtracting librewolf binary tarball\n" -mkdir librewolf_unpacked -tar -xf $OUTPUT_TARBALL -C librewolf_unpacked - -# Adds the librefox config files to the packaged tarball -printf "\nCopying librewolf settings to extracted binary tarball\n" -cp -r $CI_PROJECT_DIR/src/settings $EXTRACTED_TARBALL_FOLDER/settings -# no need to keep that in there -rm -rf "${EXTRACTED_TARBALL_FOLDER}/settings/.git"; -cp $CI_PROJECT_DIR/content/toggle-settings.sh $EXTRACTED_TARBALL_FOLDER/settings -cp $CI_PROJECT_DIR/content/launch_librewolf.sh $EXTRACTED_TARBALL_FOLDER/launch_librewolf.sh - -# Somewhat crude workaround to use settings per default -# until we've worked out how to use `--install-settings` with links -# in all major packages instead -printf "\nWorkaround: auto-enable Settings\n" -cp -r $EXTRACTED_TARBALL_FOLDER/settings/* $EXTRACTED_TARBALL_FOLDER; - -# Repacks the binary tarball -printf "\nRecompressing binary tarball\n" -tar -jvcf $OUTPUT_TARBALL -C $EXTRACTED_TARBALL_FOLDER . |