Hacker News new | ask | show | jobs
by Marsymars 116 days ago
Good as long as you don't want the EME-free version.
1 comments

In that case you can use the simple Mozilla API (all code in pwsh)

  irm https://product-details.mozilla.org/1.0/firefox_versions.json

Will output a table of latests Firefox versions. (LATEST_FIREFOX_VERSION is the one we care about. Save it in $v), then simply:

  iwr "https://download-origin.cdn.mozilla.net/pub/firefox/releases/$v/win64-EME-free/en-US/Firefox%20Setup%20$v.exe" -OutFile Firefox.exe

  start Firefox.exe
So simple. So elegant. So thankful that Mozilla uses their millions of funding for maintenance of a subset of their packages on winget.