[tbb-commits] [Git][tpo/applications/tor-browser-build][main] Bug 41080: Re-pack omni.ja with 7-zip on Android.

boklm (@boklm) git at gitlab.torproject.org
Fri Feb 9 09:27:28 UTC 2024



boklm pushed to branch main at The Tor Project / Applications / tor-browser-build


Commits:
56df6e4c by Pier Angelo Vendrame at 2024-02-08T16:06:11+01:00
Bug 41080: Re-pack omni.ja with 7-zip on Android.

In this way we can shave a few additional MBs, and get further from the
APK size limit.

- - - - -


2 changed files:

- projects/browser/build.android
- rbm


Changes:

=====================================
projects/browser/build.android
=====================================
@@ -24,18 +24,23 @@ cd /var/tmp/build
 mv $rootdir/[% c('input_files_by_name/noscript') %] "$noscript_path"
 
 [%IF c("var/tor-browser") -%]
-  unzip -j "$apk" assets/omni.ja
   tar -xaf "$rootdir/[% c("input_files_by_name/tor-expert-bundle") %]" tor/pluggable_transports/pt_config.json
-  mkdir omni
-  pushd omni
-  unzip ../omni.ja
-  cp ../tor/pluggable_transports/pt_config.json chrome/toolkit/content/global/pt_config.json
-  [% c('zip', {
-      zip_src => [ '.' ],
-      zip_args => '../assets/omni.ja',
-    }) %]
-  popd
 [% END -%]
+unzip -j "$apk" assets/omni.ja
+mkdir omni
+pushd omni
+unzip ../omni.ja
+[%IF c("var/tor-browser") -%]
+  cp -a ../tor/pluggable_transports/pt_config.json chrome/toolkit/content/global/pt_config.json
+[% END -%]
+[% c('zip', {
+        zip_src   => [ '.' ],
+        zip_args  => '../assets/omni.ja',
+        use_7z    => 1,
+        '7z_bin'  => '7zz',
+        '7z_opts' => '-mx9',
+      }) %]
+popd
 
 
 [% IF c("var/verify_allowed_addons") %]


=====================================
rbm
=====================================
@@ -1 +1 @@
-Subproject commit b5e5b04aaf677c4bacfb5ace45598313286bfdf6
+Subproject commit 10c6b24e90e3dc9c2578290a7d82a87b7f4eb9a3



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

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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tbb-commits/attachments/20240209/5f985658/attachment-0001.htm>


More information about the tbb-commits mailing list