Fetching contributors…
Cannot retrieve contributors at this time
66 lines (39 sloc) 3.17 KB

FFV - Firefox Versions

FFV is a script that installs a selection of Firefox versions, creates profiles for each version and hard binds each version to it's profile. It also disables auto updates and the default browser check.

It currently installs Firefox versions:

'3.6.9' '4.0.1' '5.0.1' '6.0.2' '7.0.1' '8.0.1' '9.0.1' 
'10.0.1' '11.0' '12.0' '13.0' '14.0.1' '15.0.1' '16.0.2' '17.0.1' '18.0.2' '19.0.2'
'20.0.1' '21.0' '22.0' '23.0.1' '24.0' '25.0.1' '26.0' '27.0.1' '28.0' '29.0.1'
'30.0' '31.0' '32.0.3' '33.1.1' '34.0' '35.0.1' '36.0.4' '37.0.1'

This script assumes that you are probably running a standard, autoupdating copy of Firefox with a configured profile and will leave it alone. It's perfectly safe to run this along side a standard Firefox install.

THIS SCRIPT IS VERY BETA Feel free to offer criticism and feedback and areas for improvement. Or fork and improve it :-)

This only works on OS X and it's entirely possible it relies on things specific to my system configuration. Please file an issue if that is the case.

To install run

curl -s | bash

By default it will use the cached installers if they exist and won't overwrite existing applications and profiles. This should mean when a new version comes out (and I update the script) you can just run it again and it will only download and install the new version

You'll probably notice Finder popping up as it mounts the .dmgs, just leave it to do it's thing, it will unmount them automatically once it's installed the app.

It will take a while to install all versions when downloading the installers for the first time, set it running and go make a cup of tea.

There are a couple of options you can pass in as well

CLEAN=true - Clean install, tell the script to redownload the installers

curl -s | CLEAN=true bash

FORCE=true - Force the script to overwrite existing applications & profiles

curl -s | FORCE=true bash

So if you ever get stuck, CLEAN=true FORCE=true should get you back to a pristine state

curl -s | CLEAN=true FORCE=true bash

UNINSTALL=true - If you decide you don't like FFV, this will remove the installers cache, the FFV versions of the Firefox app and the FFV Firefox profiles.

curl -s | UNINSTALL=true bash

If you have a local copy of the script you can use command line flags instead, -c, -f and -u respectively, e.g

./ -c -f

The Firefox versions are installed to /Applications/Firefox-Versions/ and the installer cache is in ~/.ffv. Profiles will be named with the form Firefox-X.Y.Z-FFV

##To Do

  • A way to specify which versions you want to install
  • Better checking of whether things already exist when creating them, (currently only checking the cached .dmg)
  • Option to empty the cache and force a fresh download of the .dmgs
  • An uninstall option that removes the cache, the firefox apps and the profiles
  • Maybe scrape the firefox release page to work out when new major versions are released

☃ ☃ ☃