Skip to content
Snippets Groups Projects
Verified Commit a2a506ae authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame :jack_o_lantern:
Browse files

Updated update-apk.sh for 128.

The monorepo migration simplified the procedure to build Firefox for
Android.
parent 1b5e3da0
No related branches found
No related tags found
No related merge requests found
......@@ -27,4 +27,7 @@ set -gx PATH "$GRADLE_HOME/bin" $PATH
# set -gx WASI_SYSROOT "/media/lssd/Tor/wasi-sysroot/"
set -gx TOR_BROWSER_BUILD ~/Tor/tor-browser-build
set -gx LOCAL_DEV_BUILD 1
set -gx MOZ_CHROME_MULTILOCALE "it"
......@@ -13,40 +13,29 @@ set -e
cd "$(dirname "$0")/.."
if [[ -z "$MOZ_BUILD_DATE" ]]; then
export MOZCONFIG=mozconfig-android-x86_64
if [[ -z "$LOCAL_DEV_BUILD" ]]; then
# The magic file is pierenvironment.fish.
echo "Have you sourced your magic file?"
exit 1
fi
pushd tor-browser
if [[ "$1" = "--clobber" ]]; then
MOZCONFIG=mozconfig-android-x86_64 ./mach clobber
MOZCONFIG=mozconfig-android-x86_64 ./mach configure \
--enable-update-channel=nightly \
--with-base-browser-version=testbuild
MOZCONFIG=mozconfig-android-all ./mach clobber
MOZCONFIG=mozconfig-android-all ./mach configure \
--enable-update-channel=nightly \
--with-base-browser-version=testbuild
fi
cd tor-browser
if [[ "$1" = "--clobber" ]]; then
./mach clobber
./mach configure \
--enable-update-channel=nightly \
--with-base-browser-version=testbuild
fi
./mach build
./mach package-multi-locale --locales en-US $MOZ_CHROME_MULTILOCALE
# Only emulator now :P
# MOZCONFIG=mozconfig-android-aarch64 ./mach build
MOZCONFIG=mozconfig-android-x86_64 ./mach build
pushd tools/geckoview
# make fat-aar ARCHS="aarch64 x86_64"
make fataar ARCHS="x86_64"
popd
MOZCONFIG=mozconfig-android-all ./mach gradle \
geckoview:publishWithGeckoBinariesDebugPublicationToMavenLocal \
exoplayer2:publishDebugPublicationToMavenLocal
popd
cd mobile/android/fenix
gradle --no-daemon -Dorg.gradle.jvmargs=-Xmx20g -PdisableOptimization assembleNightly
tools/tba-sign-devbuilds.sh
# Assumption: only one emulator is running and no real Android device with
# debugging enabled is connected.
adb install -r app/build/outputs/apk/fenix/nightly/app-fenix-x86_64-nightly-signed.apk
pushd firefox-android/fenix
gradle --no-daemon -Dorg.gradle.jvmargs=-Xmx20g -PdisableOptimization assembleNightly
tools/tba-sign-devbuilds.sh
# Assumption: only one emulator is running and no real Android device with
# debugging enabled is connected.
adb install -r app/build/outputs/apk/fenix/nightly/app-fenix-x86_64-nightly-signed.apk
popd
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment