[tbb-commits] [tor-browser-build/master] Bug 40073: Repack omni.ja to include builtin HTTPS Everywhere
gk at torproject.org
gk at torproject.org
Wed Sep 9 09:29:05 UTC 2020
commit 7e49b0e534b6880aa4241c66f670e17d739b645a
Author: Alex Catarineu <acat at torproject.org>
Date: Tue Sep 8 00:45:49 2020 +0200
Bug 40073: Repack omni.ja to include builtin HTTPS Everywhere
---
projects/tor-browser/build | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/projects/tor-browser/build b/projects/tor-browser/build
index 2763ce4..33a3f42 100644
--- a/projects/tor-browser/build
+++ b/projects/tor-browser/build
@@ -45,7 +45,6 @@ mkdir -p "$TBDIR/$EXTSPATH"
unzip -d $rootdir $rootdir/[% c('input_files_by_name/firefox') %]/mar-tools-*.zip
MARTOOLS=$rootdir/mar-tools
-mv [% c('input_files_by_name/https-everywhere') %] "$TBDIR/$EXTSPATH/https-everywhere-eff at eff.org.xpi"
mv [% c('input_files_by_name/noscript') %] "$TBDIR/$EXTSPATH/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi"
tar -C "$TBDIR" -xf [% c('input_files_by_name/obfs4') %]
@@ -74,6 +73,18 @@ RBM_TB_EOF
[% END %]
tar -C ${TB_STAGE_DIR} -xf [% c('input_files_by_name/firefox') %]/tor-browser.tar.gz
+
+# Make unpacked HTTPS Everywhere available in resource://torbutton/content/extensions/https-everywhere/ as TB expects
+TMP_HTTPS_EVERYWHERE_PATH=$rootdir/tmp_https_everywhere/
+mkdir $TMP_HTTPS_EVERYWHERE_PATH
+pushd $TMP_HTTPS_EVERYWHERE_PATH
+mkdir -p chrome/torbutton/content/extensions/https-everywhere/
+unzip $rootdir/[% c('input_files_by_name/https-everywhere') %] -d chrome/torbutton/content/extensions/https-everywhere/
+find . -exec [% c("var/touch") %] {} \;
+zip -Xr "$TBDIR[% IF c("var/osx") %]/Contents/Resources[% END %]/omni.ja" chrome/
+popd
+rm -rf $TMP_HTTPS_EVERYWHERE_PATH
+
tar -C "$TBDIR[% IF ! c("var/osx") %]/TorBrowser[% END %]" -xf [% c('input_files_by_name/tor') %]/tor.tar.gz
[% IF c("var/namecoin") %]
# Extract Electrum-NMC
More information about the tbb-commits
mailing list