Pier Angelo Vendrame pushed to branch main at The Tor Project / Applications / 
tor-browser-build


Commits:
c89ca221 by Pier Angelo Vendrame at 2026-01-26T15:02:44+01:00
Bug 41699: Keep only arch-specifc prefs on Android.

Currently, our APKs contain preference files for all the architectures.
While they are not very big, they are completely useless and, in our
situation, every saved byte matters.

- - - - -


1 changed file:

- projects/browser/build.android


Changes:

=====================================
projects/browser/build.android
=====================================
@@ -70,6 +70,17 @@ function generate_apk {
       -name '*.js' -or -name '*.mjs' \
       -exec /var/tmp/dist/uglifyjs/bin/uglifyjs --in-situ {} \;
   [% END -%]
+  [% IF !c("var/android-armv7") -%]
+    rm -rf armeabi-v7a
+  [% END -%]
+  [% IF !c("var/android-aarch64") -%]
+    rm -rf arm64-v8a
+  [% END -%]
+  [% IF !c("var/android-x86_64") -%]
+    rm -rf x86_64
+  [% END -%]
+  # Notice: we take for granted we never rewrite on the source archive!
+  # Be sure to change any `rm` with the appropriate command, shall this change.
   [% c('zip', {
         zip_src   => [ '.' ],
         zip_args  => '-0 ../assets/omni.ja',



View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/c89ca22177d553cf4dc7a6c1d606f1c64572e511

-- 
View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/c89ca22177d553cf4dc7a6c1d606f1c64572e511
You're receiving this email because of your account on gitlab.torproject.org.


_______________________________________________
tor-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to