mirror of
https://github.com/ironfox-oss/IronFox.git
synced 2026-01-26 15:03:43 -05:00
39 lines
981 B
Bash
39 lines
981 B
Bash
#!/bin/bash
|
|
|
|
# Caution: Should not be sourced directly!
|
|
# Use 'env_local.sh' or 'env_fdroid.sh' instead.
|
|
|
|
IRONFOX_LOCALES=$(<"$patches/locales")
|
|
export IRONFOX_LOCALES
|
|
|
|
export NSS_DIR="$application_services/libs/desktop/linux-x86-64/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 -p "$APK_ARTIFACTS"
|
|
mkdir -p "$APKS_ARTIFACTS"
|
|
mkdir -p "$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_UBO_ASSETS_URL+x} ]]; then
|
|
# Default to development assets
|
|
# shellcheck disable=SC2059
|
|
IRONFOX_UBO_ASSETS_URL="https://gitlab.com/ironfox-oss/IronFox/-/raw/dev/uBlock/assets.dev.json"
|
|
export IRONFOX_UBO_ASSETS_URL
|
|
|
|
echo "Using uBO Assets: ${IRONFOX_UBO_ASSETS_URL}"
|
|
fi
|