Disable legacy packaging to improve performance

Mozilla only enables this due to it being necessary for the Gecko Profiler (https://bugzilla.mozilla.org/show_bug.cgi?id=1865634). We disable the Gecko Profiler at build-time though, so this doesn't apply to us

Signed-off-by: celenity <celenity@celenity.dev>
This commit is contained in:
celenity
2025-07-26 02:07:18 -04:00
parent d59067449c
commit 7ac48e8db0

View File

@@ -229,6 +229,11 @@ mkdir -vp app/src/main/assets/wallpapers/dark-dune
mkdir -vp app/src/main/assets/wallpapers/dune
mkdir -vp app/src/main/assets/wallpapers/firey-red
# Disable legacy packaging to improve performance
## Mozilla only keeps this on for the Gecko Profiler; we disable the Gecko Profiler at build-time, so we don't need to worry about it
## https://bugzilla.mozilla.org/show_bug.cgi?id=1865634
sed -i -e 's|useLegacyPackaging = .*|useLegacyPackaging = false|g' app/build.gradle
# Set up target parameters
case "$1" in
arm)