[tor-commits] [tor-browser-build/maint-7.5] Bug 25020: add a tbb_version.json file

gk at torproject.org gk at torproject.org
Wed May 2 07:31:30 UTC 2018


commit 38e9d1caaa0d7cf49e4052e7c709b48ebdba9e31
Author: Nicolas Vigier <boklm at torproject.org>
Date:   Thu Feb 8 14:55:10 2018 +0100

    Bug 25020: add a tbb_version.json file
    
    Add a tbb_version.json file containing informations about the installed
    bundle.
---
 projects/tor-browser/build | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/projects/tor-browser/build b/projects/tor-browser/build
index 7431e26..978d988 100644
--- a/projects/tor-browser/build
+++ b/projects/tor-browser/build
@@ -198,6 +198,8 @@ echo "pref(\"general.useragent.locale\", \"en-US\");" >> defaults/preferences/00
 [% c("var/touch") %] defaults/preferences/000-tor-browser.js
 zip -Xm omni.ja defaults/preferences/000-tor-browser.js
 rm -rf defaults
+# create tbb_version.json file for #25020
+echo '{"version":"[% c("var/torbrowser_version") %]","architecture":"[% c("var/mar_osname") %]","channel":"[% c("var/channel") %]","locale":"en-US"}' > ../tbb_verson.json
 popd
 
 # Prepare our language packs for using the proper search engines and embed
@@ -327,6 +329,8 @@ cp $rootdir/[% c('input_files_by_name/firefox') %]/mar-tools-*.zip "$OUTDIR"/
       [% c("var/touch") %] defaults/preferences/000-tor-browser.js
       zip -Xm omni.ja defaults/preferences/000-tor-browser.js
       rm -rf defaults
+      # create tbb_version.json file for #25020
+      echo '{"version":"[% c("var/torbrowser_version") %]","architecture":"[% c("var/mar_osname") %]","channel":"[% c("var/channel") %]","locale":"[% lang %]"}' > ../tbb_verson.json
       popd
 
       # Set the update.locale (it is used to replace %LOCALE% within





More information about the tor-commits mailing list