On 10/8/18 11:50 AM, Thomas Seeling wrote:
Hallo,


I'm using some scripts to automate FF and TB download.
I noticed that my script does not get the latest TB - it would retrieve
60.0, not the current 60.2.1.

Just to follow up on this (from the bug report discourse)...

Here's what i believe the Mozilla developers (Thunderbird) suggest is "The One True 
Way"[1] to get the Firefox/Thunderbird versions:
(i include JSON parsing pipe chain to extract)

curl -s https://product-details.mozilla.org/1.0/firefox_versions.json  | perl -0777 -MJSON -e 
'$t=from_json(<>); print "$t->{'LATEST_FIREFOX_VERSION'}","\n";'
curl -s https://product-details.mozilla.org/1.0/firefox_versions.json  | perl -0777 -MJSON -e 
'$t=from_json(<>); print "$t->{'FIREFOX_ESR'}","\n";'
curl -s https://product-details.mozilla.org/1.0/thunderbird_versions.json  | perl -0777 -MJSON -e 
'$t=from_json(<>); print "$t->{'LATEST_THUNDERBIRD_VERSION'}","\n";'

That number can be variable replaced into a pull-down URL like:

https://download.mozilla.org/?product=thunderbird-${tbird_version}&os=${OS}&lang=${LANG}

[1] At least until it isn't anymore (sigh)

--stephen
--
Stephen Dowdy  -  Systems Administrator  -  NCAR/RAL
303.497.2869   -  [email protected]        -  http://www.ral.ucar.edu/~sdowdy/

_______________________________________________
Enterprise mailing list
[email protected]
https://mail.mozilla.org/listinfo/enterprise

To unsubscribe from this list, please visit https://mail.mozilla.org/listinfo/enterprise 
or send an email to [email protected] with a subject of 
"unsubscribe"

Reply via email to