forked from shaunmclernon/homebrew-firefox
-
Notifications
You must be signed in to change notification settings - Fork 4
Adding New Versions
Dan Caddigan edited this page Oct 11, 2016
·
3 revisions
Go to the FireFox releases page and look for new versions.
If there is a new version perform the following tasks. In this case, we'll do the steps for version 47.
- Go to the download page at
https://ftp.mozilla.org/pub/firefox/releases/{version}/mac/en-US/
- Download the file
- Grab the SHA256 for the file by running
shasum -a 256 ~/Downloads/Firefox\ 47.0.1.dmg
-- ->37f4b7b6a1fec3eb5225a0d1aed3c3d6979b5cf01748479313f6e384929cdc75
- In the terminal, run
brew cask create firefox-47
- The new cask should open, grab the contents of the latest cask from the 'Casks' folder and copy into new local cask.
- Fill in the new version and SHA, save
- Test it by running
brew cask audit firefox-47 --download
-- If you seeaudit for firefox-47: passed
, you're all set.
- Create a new entry in the `homebrew-firefox/Casks folder with contents of local cask
- Submit PR
After the PR is merged, do the following:
Remove local cask:
rm /usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask/Casks/firefox-*
rm /Users/dcaddigan/Library/Caches/Homebrew/Cask/firefox-*
brew cask uninstall firefox-47
Ensure local cask is not installable:
brew cask install firefox-47
This should yield No available Cask for firefox-47
.
Now refresh homebrew-firefox tap from Github to pull in new version:
brew untap goldcaddy77/homebrew-firefox
brew tap goldcaddy77/homebrew-firefox
brew cask install firefox-47