#!/bin/bash printf "\n\n------------------------------ FINAL PREBUILD CONFIGURATION ---------------------------------\n"; set -e # Setup Script Variables srcdir=$1; CI_PROJECT_DIR=${CI_PROJECT_DIR:-$(realpath $(dirname $0)/../)} #_COMMON_REPO='https://gitlab.com/librewolf-community/browser/common.git'; _COMMON_REPO='https://git.sakamoto.pl/domi/librewolf-common.git'; _PKGVER_TAG="v${pkgver}-${pkgrel}" _COMMON_TAG=${COMMON_TAG:-${_PKGVER_TAG}} _COMMON_DIR="${CI_PROJECT_DIR}"/common _PATCHES_DIR="${_COMMON_DIR}"/patches _MOZBUILD=$srcdir/../mozbuild mkdir -p ${_MOZBUILD} # Copy Source Code Changes to Source Code printf "\nCopying branding and source code changes to firefox source code\n"; git clone $_COMMON_REPO ${_COMMON_DIR} cd ${_COMMON_DIR} git checkout ${_COMMON_TAG} cd .. cp -r ${_COMMON_DIR}/source_files/* $srcdir/; # get foxgirl branding (ff3.6) wget "https://web.archive.org/web/0/http://people.mozilla.com/~faaborg/files/shiretoko/firefoxIcon/firefoxIcon.zip" mkdir -p icons icons/content pushd icons unzip ../firefoxIcon.zip for i in firefox*noshadow.png; do mv "$i" "default$(grep -Poh "[0-9]+" <<< "$i").png" done mv firefox-256.png content/about-logo.png mv firefox-512.png "content/about-logo@2x.png" popd cp -rlf icons/* $srcdir/browser/branding/librewolf/ cd $srcdir cat >${CI_PROJECT_DIR}/mozconfig <> ${CI_PROJECT_DIR}/mozconfig fi if [[ $CARCH == 'aarch64' ]]; then cat >>${CI_PROJECT_DIR}/mozconfig <>${CI_PROJECT_DIR}/mozconfig <