diff --git a/arm.patch b/deprecated_patches/arm.patch similarity index 100% rename from arm.patch rename to deprecated_patches/arm.patch diff --git a/context-menu.patch b/deprecated_patches/context-menu.patch similarity index 100% rename from context-menu.patch rename to deprecated_patches/context-menu.patch diff --git a/megabar.patch b/deprecated_patches/megabar.patch similarity index 100% rename from megabar.patch rename to deprecated_patches/megabar.patch diff --git a/mozilla-vpn-ad.patch b/deprecated_patches/mozilla-vpn-ad.patch similarity index 100% rename from mozilla-vpn-ad.patch rename to deprecated_patches/mozilla-vpn-ad.patch diff --git a/remove_addons.patch b/deprecated_patches/remove_addons.patch similarity index 100% rename from remove_addons.patch rename to deprecated_patches/remove_addons.patch diff --git a/unity-menubar.patch b/deprecated_patches/unity-menubar.patch similarity index 100% rename from unity-menubar.patch rename to deprecated_patches/unity-menubar.patch diff --git a/scripts/3_Configure_Source_Code.sh b/scripts/3_Configure_Source_Code.sh index 72e0f2a..8003d26 100755 --- a/scripts/3_Configure_Source_Code.sh +++ b/scripts/3_Configure_Source_Code.sh @@ -7,15 +7,20 @@ set -e srcdir=$1; CI_PROJECT_DIR=${CI_PROJECT_DIR:-$(realpath $(dirname $0)/../)} _COMMON_REPO='https://gitlab.com/librewolf-community/browser/common.git'; +_COMMON_COMMIT='5bce5285fa7046e6987ec3e5a8931ac17ca6c7c0' +_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; -cp -r common/source_files/* $srcdir/; -rm -rf common; +git clone $_COMMON_REPO ${_COMMON_DIR} +cd ${_COMMON_DIR} +git checkout ${_COMMON_COMMIT} +cd .. +cp -r ${_COMMON_DIR}/source_files/* $srcdir/; cd $srcdir @@ -85,9 +90,9 @@ END export RUSTFLAGS="-Cdebuginfo=0" export LDFLAGS+=" -Wl,--no-keep-memory -Wl" - patch -p1 -i ${CI_PROJECT_DIR}/arm.patch - wget https://raw.githubusercontent.com/archlinuxarm/PKGBUILDs/master/extra/firefox/build-arm-libopus.patch -O ${CI_PROJECT_DIR}/build-arm-libopus.patch - patch -p1 -i ${CI_PROJECT_DIR}/build-arm-libopus.patch + patch -Np1 -i ${_PATCHES_DIR}/arm.patch + wget https://raw.githubusercontent.com/archlinuxarm/PKGBUILDs/master/extra/firefox/build-arm-libopus.patch -O ${_PATCHES_DIR}/build-arm-libopus.patch + patch -Np1 -i ${_PATCHES_DIR}/build-arm-libopus.patch else cat >>${CI_PROJECT_DIR}/mozconfig <