Files
IronFox/scripts/env_common.sh
celenity 9ee53aa6c0 IronFox v144.0.1
ironfox-oss/IronFox!94
____

## Important

We are currently unable to provide updates to IronFox on **Accrescent**, [due to ongoing client and server issues that Accrescent is facing](https://infosec.exchange/@accrescent/115408303090609483). This impacts **all** apps on Accrescent, and is not just limited to IronFox.

**For the time being, we would highly recommend Accrescent users use our `Nightly` CI builds**. As we now use a separate package ID for these builds, it is possible to install Nightly builds *alongside* your existing, standard install of IronFox. This ensures that you can continue to receive the latest security updates and fixes from us, without losing any existing data. **Once updates resume on Accrescent, you can *(and **should**)* simply switch back to your existing standard install.**

Please see [here](https://gitlab.com/ironfox-oss/IronFox/-/blob/dev/docs/FAQ.md#how-can-i-download-nightly-builds) for details on how to install our `Nightly` builds.

## Changes

- [Enabled the display of certain advanced options](bb47aee7e6) at [`about:support`](about:support).
- [Implemented support to block/filter unwanted Remote Settings collections on the Application Services level](33373ec291), similar to [the current Remote Settings Blocker patch](e6c69ef28d/patches/gecko-rs-blocker.patch) *(derived from LibreWolf)* for Gecko. This is necessary due to this Remote Settings instance being separate from Gecko's instance.
- Replaced the `Enable WebGL` settings toggle with a **`Disable WebGL`** toggle that disables WebGL instead, to improve clarity and help avoid confusion.
- Updated to Firefox [`144.0.1`](https://firefox.com/firefox/android/144.0.1/releasenotes/).
- [Other minor tweaks and adjustments](https://gitlab.com/ironfox-oss/IronFox/-/merge_requests/94/diffs).

MR-author: celenity <celenity@celenity.dev>
Co-authored-by: Weblate <hosted@weblate.org>
Co-authored-by: Akash Yadav <itsaky01@gmail.com>
Approved-by: Akash Yadav <itsaky01@gmail.com>
Merged-by: celenity <celenity@celenity.dev>
2025-10-22 19:20:53 +00:00

77 lines
2.0 KiB
Bash

#!/bin/bash
# Caution: Should not be sourced directly!
# Use 'env_local.sh' or 'env_fdroid.sh' instead.
if [[ "$OSTYPE" == "darwin"* ]]; then
PLATFORM=darwin
else
PLATFORM=linux
fi
# Set architecture
PLATFORM_ARCH=$(uname -m)
if [[ "$PLATFORM_ARCH" == "arm64" ]]; then
PLATFORM_ARCHITECTURE=aarch64
else
PLATFORM_ARCHITECTURE=x86-64
fi
# Set locations for GNU make + nproc
if [[ "$PLATFORM" == "darwin" ]]; then
export MAKE_LIB="gmake"
export NPROC_LIB="sysctl -n hw.logicalcpu"
else
export MAKE_LIB="make"
export NPROC_LIB="nproc"
fi
# Configure Mach
## https://firefox-source-docs.mozilla.org/mach/usage.html#user-settings
## https://searchfox.org/mozilla-central/rev/f008b9aa/python/mach/mach/telemetry.py#95
## https://searchfox.org/mozilla-central/rev/f008b9aa/python/mach/mach/telemetry.py#284
export DISABLE_TELEMETRY=1
export MACHRC="$patches/machrc"
export MOZCONFIG="$mozilla_release/mozconfig"
IRONFOX_LOCALES=$(<"$patches/locales")
export IRONFOX_LOCALES
export NSS_DIR="$application_services/libs/desktop/$PLATFORM-$PLATFORM_ARCHITECTURE/nss"
export NSS_STATIC=1
export ARTIFACTS="$rootdir/artifacts"
export APK_ARTIFACTS=$ARTIFACTS/apk
export APKS_ARTIFACTS=$ARTIFACTS/apks
export AAR_ARTIFACTS=$ARTIFACTS/aar
mkdir -vp "$APK_ARTIFACTS"
mkdir -vp "$APKS_ARTIFACTS"
mkdir -vp "$AAR_ARTIFACTS"
export env_source="true"
if [[ -z ${CARGO_HOME+x} ]]; then
export CARGO_HOME=$HOME/.cargo
fi
if [[ -z ${GRADLE_USER_HOME+x} ]]; then
export GRADLE_USER_HOME=$HOME/.gradle
fi
if [[ -z ${IRONFOX_RELEASE+x} ]]; then
# Default to a "nightly" dev build
export IRONFOX_RELEASE=0
echo "Preparing to build IronFox Nightly..."
fi
if [[ -z ${IRONFOX_UBO_ASSETS_URL+x} ]]; then
# Default to development assets
# shellcheck disable=SC2059
IRONFOX_UBO_ASSETS_URL="https://gitlab.com/ironfox-oss/assets/-/raw/main/uBlock/assets.dev.json"
export IRONFOX_UBO_ASSETS_URL
echo "Using uBO Assets: ${IRONFOX_UBO_ASSETS_URL}"
fi