updates - Programatically Get the Latest Version Number of Firefox -
how can parse version number of firefox programatically.
so, don't have visit page every time. have run script, , give me latest version.
http://download.cdn.mozilla.net/pub/mozilla.org/firefox/releases/latest/update/win32/en-us/
the file have ".complete.mar" in it. it's file word "complete" under directory. how can parse version "40.0.2" it.
the simple answer mozilla release engineering provides way download latest version. see https://ftp.mozilla.org/pub/firefox/releases/latest/readme.txt
for example, want download latest linux 64-bit english version of firefox. would:
curl -lo firefox.tar.bz2 'https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-us' tar -xjf firefox.tar.bz2 cd firefox ./firefox --version
mind stable releases , not rc or nightly. see release notes in appropriate subfolder.
notes:
- the
curl
command url surrounded single quotes ('
) avoid bash interpreting ampersands (&
). - you want add downloaded firefox @ beginning of
$path
(or%path%
in windows) environment variable.
Comments
Post a Comment