[Mozilla Enterprise] automatic download latest versions

Stephen Dowdy sdowdy at ucar.edu
Wed Oct 17 20:24:56 UTC 2018


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   -  sdowdy at ucar.edu        -  http://www.ral.ucar.edu/~sdowdy/




More information about the Enterprise mailing list