mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
e493efb123
Two important notes: 1. The time it takes to download is negligble compared to e2e test runs 2. Since we cannot use environment variables in CircleCI cache keys we can't cache the download correctly and have it update when we switch firefox versions—this isn't the end of the world because of point 1
20 lines
530 B
Bash
Executable File
20 lines
530 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
set -u
|
|
set -o pipefail
|
|
|
|
FIREFOX_VERSION='61.0.1'
|
|
FIREFOX_BINARY="firefox-${FIREFOX_VERSION}.tar.bz2"
|
|
FIREFOX_BINARY_URL="https://ftp.mozilla.org/pub/firefox/releases/${FIREFOX_VERSION}/linux-x86_64/en-US/${FIREFOX_BINARY}"
|
|
|
|
printf '%s\n' "Removing old Firefox installation"
|
|
|
|
sudo rm -r /opt/firefox
|
|
|
|
printf '%s\n' "Downloading & installing Firefox ${FIREFOX_VERSION}"
|
|
|
|
wget --quiet --show-progress -O- "${FIREFOX_BINARY_URL}" | sudo tar xj -C /opt
|
|
|
|
printf '%s\n' "Firefox ${FIREFOX_VERSION} installed"
|