aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWhymarrh Whitby <whymarrh.whitby@gmail.com>2018-08-17 22:17:50 +0800
committerWhymarrh Whitby <whymarrh.whitby@gmail.com>2018-08-18 05:11:12 +0800
commit7b89d3d47347b9033d57554cfbad58c8bbc41a50 (patch)
tree1ff268f1496794792781d45cc96f85e82a01f071
parente493efb1239d0c730dbcf23faaf7204cf69bc1d9 (diff)
downloadtangerine-wallet-browser-7b89d3d47347b9033d57554cfbad58c8bbc41a50.tar.gz
tangerine-wallet-browser-7b89d3d47347b9033d57554cfbad58c8bbc41a50.tar.zst
tangerine-wallet-browser-7b89d3d47347b9033d57554cfbad58c8bbc41a50.zip
ci: Disable Firefox updates
-rwxr-xr-x.circleci/scripts/firefox-install12
-rw-r--r--.circleci/scripts/firefox.cfg13
2 files changed, 24 insertions, 1 deletions
diff --git a/.circleci/scripts/firefox-install b/.circleci/scripts/firefox-install
index eb2028a27..e2f93c5cd 100755
--- a/.circleci/scripts/firefox-install
+++ b/.circleci/scripts/firefox-install
@@ -7,13 +7,23 @@ 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}"
+FIREFOX_PATH='/opt/firefox'
printf '%s\n' "Removing old Firefox installation"
-sudo rm -r /opt/firefox
+sudo rm -r "${FIREFOX_PATH}"
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"
+
+{
+ printf '%s\n' 'pref("general.config.filename", "firefox.cfg");'
+ printf '%s\n' 'pref("general.config.obscure_value", 0);'
+} | sudo tee "${FIREFOX_PATH}/defaults/pref/autoconfig.js"
+
+sudo cp .circleci/scripts/firefox.cfg "${FIREFOX_PATH}"
+
+printf '%s\n' "Firefox ${FIREFOX_VERSION} configured"
diff --git a/.circleci/scripts/firefox.cfg b/.circleci/scripts/firefox.cfg
new file mode 100644
index 000000000..68dd285f2
--- /dev/null
+++ b/.circleci/scripts/firefox.cfg
@@ -0,0 +1,13 @@
+// IMPORTANT: Start your code on the 2nd line
+
+lockPref("app.update.enabled", false);
+lockPref("app.update.auto", false);
+lockPref("app.update.mode", 0);
+lockPref("app.update.service.enabled", false);
+
+pref("browser.rights.3.shown", true);
+
+pref("browser.startup.homepage_override.mstone","ignore");
+
+lockPref("plugins.hide_infobar_for_outdated_plugin", true);
+clearPref("plugins.update.url");