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

gk at torproject.org gk at torproject.org
Mon Feb 19 12:09:55 UTC 2018


commit b2201eb2571c885f45bd6632e483310b169759dc
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 59fbda5..655e157 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 tbb-commits mailing list