mirror of
https://github.com/ironfox-oss/IronFox.git
synced 2026-04-17 13:37:36 -04:00
ironfox-oss/IronFox!127 # IronFox 148.0 ____ ## Changes - Updated to Firefox [`148.0`](https://firefox.com/firefox/android/148.0/releasenotes/). - Updated to Phoenix [`2026.02.23.1`](https://codeberg.org/celenity/Phoenix/releases/tag/2026.02.23.1). - Minor tweaks, fixes, and enhancements. MR-author: celenity <celenity@celenity.dev> Co-authored-by: Weblate <hosted@weblate.org> Approved-by: Akash Yadav <itsaky01@gmail.com> Merged-by: celenity <celenity@celenity.dev>
59 lines
1.5 KiB
Bash
Executable File
59 lines
1.5 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
# Set-up our environment
|
|
bash -x $(dirname $0)/env.sh
|
|
source $(dirname $0)/env.sh
|
|
|
|
if [ -z "${1+x}" ]; then
|
|
echo_red_text "Usage: $0 arm|arm64|x86_64|bundle" >&1
|
|
exit 1
|
|
fi
|
|
|
|
target=$(echo "${1}" | "${IRONFOX_AWK}" '{print tolower($0)}')
|
|
|
|
# Build IronFox
|
|
export IRONFOX_FROM_BUILD=1
|
|
if [ "${IRONFOX_LOG_BUILD}" == 1 ]; then
|
|
BUILD_LOG_FILE="${IRONFOX_LOG_DIR}/build-${target}.log"
|
|
|
|
# If the log file already exists, remove it
|
|
if [ -f "${BUILD_LOG_FILE}" ]; then
|
|
rm "${BUILD_LOG_FILE}"
|
|
fi
|
|
|
|
# Ensure our log directory exists
|
|
mkdir -vp "${IRONFOX_LOG_DIR}"
|
|
|
|
bash -x "${IRONFOX_SCRIPTS}/build-if.sh" "${target}" > >(tee -a "${BUILD_LOG_FILE}") 2>&1
|
|
else
|
|
bash -x "${IRONFOX_SCRIPTS}/build-if.sh" "${target}"
|
|
fi
|
|
|
|
# Sign IronFox
|
|
source "${IRONFOX_ENV_BUILD}"
|
|
|
|
if [ "${IRONFOX_SIGN}" == 1 ]; then
|
|
if [ "${IRONFOX_LOG_SIGN}" == 1 ]; then
|
|
SIGN_LOG_FILE="${IRONFOX_LOG_DIR}/sign.log"
|
|
|
|
# If the log file already exists, remove it
|
|
if [ -f "${SIGN_LOG_FILE}" ]; then
|
|
rm "${SIGN_LOG_FILE}"
|
|
fi
|
|
|
|
# Ensure our log directory exists
|
|
mkdir -vp "${IRONFOX_LOG_DIR}"
|
|
|
|
if [ "${IRONFOX_CI}" == 1 ] && [ "${IRONFOX_TARGET_ARCH}" != 'bundle' ]; then
|
|
# CI should only try to sign bundle builds (which create/include all APKs)
|
|
exit 0
|
|
fi
|
|
|
|
bash -x "${IRONFOX_SCRIPTS}/sign.sh" > >(tee -a "${SIGN_LOG_FILE}") 2>&1
|
|
else
|
|
bash -x "${IRONFOX_SCRIPTS}/sign.sh" "${target}"
|
|
fi
|
|
fi
|