[tor-commits] [Git][tpo/applications/tor-browser-build][main] Bug 41261: Use an uncompressed NoScript xpi file to improve apk compression

morgan (@morgan) git at gitlab.torproject.org
Thu Oct 10 23:05:48 UTC 2024



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


Commits:
6bf962cd by cypherpunks1 at 2024-10-10T00:35:11+00:00
Bug 41261: Use an uncompressed NoScript xpi file to improve apk compression

- - - - -


1 changed file:

- projects/browser/build.android


Changes:

=====================================
projects/browser/build.android
=====================================
@@ -21,7 +21,15 @@ noscript_path="$ext_dir/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi"
 
 mkdir -p /var/tmp/build/$ext_dir [% dest_dir _ '/' _ c('filename') %]
 cd /var/tmp/build
-mv $rootdir/[% c('input_files_by_name/noscript') %] "$noscript_path"
+
+mkdir noscript
+pushd noscript
+unzip $rootdir/[% c('input_files_by_name/noscript') %]
+[% c('zip', {
+    zip_src  => [ '.' ],
+    zip_args => '-0 ../$noscript_path',
+  }) %]
+popd
 
 [%IF c("var/tor-browser") -%]
   tar -xaf "$rootdir/[% c("input_files_by_name/tor-expert-bundle") %]/tor-expert-bundle.tar.gz" tor/pluggable_transports/pt_config.json



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

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/6bf962cd0a1d1cfd922600b665d322cbde2b45ae
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/tor-commits/attachments/20241010/e32ffcf5/attachment.htm>


More information about the tor-commits mailing list