[SOLVED] Latest-firefox ruari's script broken due change Firefox download site
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Latest-firefox ruari's script broken due change Firefox download site
Firefox changed the site where the latest firefox is and the script latest-firefox developed by Ruari Oedegaard shows "Could not work out the latest version".
README.txt (from firefox):
Quote:
Please use download.mozilla.org to retrieve the latest Firefox release.
This could be pasted into the location bar of a browser, or used with curl or wget, e.g.
wget -O FirefoxSetup.exe "https://download.mozilla.org/?product=firefox-latest&os=win&lang=en-US"
For other operating systems replace 'os=win' with:
Windows 64bit os=win64
OS X os=osx
Linux x86_64 os=linux64
Linux i686 os=linux
For other languages replace 'lang=en-US' with:
Acholi lang=ach
Afrikaans lang=af
Albanian lang=sq
Arabic lang=ar
....
Hi, sorry I missed all this and have not been using Firefox much for the last few months so did not encounter the problem myself. Thanks in particular to speck for quickly posting a working fix and glorsplitz fr pinging me.
I have updated the Gist on GitHub. I went with a slight variation from speck as I want the script to handle ESR and would prefer only use one download utility—Wget or cURL are both fine but I would prefer the script was reliant on only one of them.
One annoying thing with using a URL that is constructed with the download.mozilla.org download links is that you can't just redefine the variable VERSION to fetch an old package any more. You would need to download the package first and place it in the directory you are running the script from, in addition to redefining that variable. I'm sure that is fixable but I am not sure I can be bothered right now. Maybe when I get bored!
One annoying thing with using a URL that is constructed with the download.mozilla.org download links is that you can't just redefine the variable VERSION to fetch an old package any more. You would need to download the package first and place it in the directory you are running the script from, in addition to redefining that variable. I'm sure that is fixable but I am not sure I can be bothered right now. Maybe when I get bored!
Ok, actually that is easily handled. Another update. The key bit being:
One annoying thing with using a URL that is constructed with the download.mozilla.org download links is that you can't just redefine the variable VERSION to fetch an old package any more.
I was wrong, you can but I need to use product=firefox-${VERSION} and not product=firefox-${FFCHANNEL} for the download link. So another edit to go back to using download.mozilla.org/? for FIREFOXPKG, as it is more likely to result in a secure (https) download and yet you can still download a specific version.
PS: By the way, after read the latest-firefox script I saw that you are now working on Vivaldi and I tried the beta version of the vivaldi browser. It is very fast, when will we have a "latest-vivaldi" script for slackware?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.