зеркало из https://github.com/openwpm/OpenWPM.git
Use unbranded build of latest firefox release instead of esr60
This commit is contained in:
Родитель
1ab398b37b
Коммит
2c41e4b592
28
install.sh
28
install.sh
|
@ -58,19 +58,27 @@ if [ "$TRAVIS" != "true" ]; then
|
|||
pip install --user --upgrade -r requirements.txt
|
||||
fi
|
||||
|
||||
# Grab the latest version of Firefox ESR.
|
||||
# For security reasons it is very important to keep up with patch releases
|
||||
# of the ESR, but a major version bump needs to be tested carefully.
|
||||
# Older ESRs are not supported by geckodriver.
|
||||
firefox_version="$(curl 'https://ftp.mozilla.org/pub/firefox/releases/' |
|
||||
grep '/pub/firefox/releases/60.' |
|
||||
tail -n 1 | sed -e 's/.*releases\///g' | cut -d '/' -f1)"
|
||||
# ESR 60 has a bug that prevents WebExtension Experiments in unsigned
|
||||
# addons from working. Until its fixed, we'll download an Unbranded
|
||||
# build of the latest release.
|
||||
|
||||
wget https://ftp.mozilla.org/pub/firefox/releases/${firefox_version}/linux-$(uname -m)/en-US/firefox-${firefox_version}.tar.bz2
|
||||
tar jxf firefox-${firefox_version}.tar.bz2
|
||||
# # Grab the latest version of Firefox ESR.
|
||||
# # For security reasons it is very important to keep up with patch releases
|
||||
# # of the ESR, but a major version bump needs to be tested carefully.
|
||||
# # Older ESRs are not supported by geckodriver.
|
||||
# firefox_version="$(curl 'https://ftp.mozilla.org/pub/firefox/releases/' |
|
||||
# grep '/pub/firefox/releases/60.' |
|
||||
# tail -n 1 | sed -e 's/.*releases\///g' | cut -d '/' -f1)"
|
||||
#
|
||||
# wget https://ftp.mozilla.org/pub/firefox/releases/${firefox_version}/linux-$(uname -m)/en-US/firefox-${firefox_version}.tar.bz2
|
||||
# tar jxf firefox-${firefox_version}.tar.bz2
|
||||
|
||||
wget https://index.taskcluster.net/v1/task/gecko.v2.mozilla-release.latest.firefox.linux64-add-on-devel/artifacts/public/build/target.tar.bz2
|
||||
tar jxf target.tar.bz2
|
||||
rm -rf firefox-bin
|
||||
mv firefox firefox-bin
|
||||
rm firefox-${firefox_version}.tar.bz2
|
||||
# rm firefox-${firefox_version}.tar.bz2
|
||||
rm target.tar.bz2
|
||||
|
||||
# Selenium 3.3+ requires a 'geckodriver' helper executable, which is not yet
|
||||
# packaged.
|
||||
|
|
Загрузка…
Ссылка в новой задаче