aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2025-08-04 23:48:05 +0200
committerGitHub <noreply@github.com>2025-08-04 23:48:05 +0200
commitdc5d1f7c61bea9e415cda89f677355eb8217a057 (patch)
treeb2c551271b17b7a1df27efa9930b6c86566ee1b6
parent0ef6020295b670ad91fba530c854f863faa97a90 (diff)
downloadjquery-dc5d1f7c61bea9e415cda89f677355eb8217a057.tar.gz
jquery-dc5d1f7c61bea9e415cda89f677355eb8217a057.zip
Build: Try to unpack Firefox ESR via xz, fall back to bzip2
The `-j` switch passed to `tar` indicates the archive is compressed using the bzip2 format (`bz2` extension). That was how Firefox used to be compressed until recently, but the new ESR release now uses xz. Ubuntu `tar` doesn't auto-guess the encryption algorithm, so to support both, first try with xz and fall back to bzip2 if that fails. Note: this will download the old Firefox ESR twice, but it will still work when the current ESR version starts to use xz with no changes to the code. Closes gh-5682 Ref gh-5684
-rw-r--r--.github/workflows/node.js.yml8
1 files changed, 7 insertions, 1 deletions
diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml
index 851116ef7..cd2bb3f45 100644
--- a/.github/workflows/node.js.yml
+++ b/.github/workflows/node.js.yml
@@ -72,7 +72,13 @@ jobs:
- name: Install Firefox ESR
run: |
- wget --no-verbose $FIREFOX_SOURCE_URL -O - | tar -jx -C ${HOME}
+ # Support: Firefox <135 only
+ # Older Firefox used to be compressed using bzip2, newer using xz. Try
+ # to uncompress using xz, fall back to bzip2 if that fails.
+ # Note: this will download the old Firefox ESR twice, but it will still work
+ # when the current ESR version starts to use xz with no changes to the code.
+ wget --no-verbose "$FIREFOX_SOURCE_URL" -O - | tar -Jx -C "$HOME" || \
+ wget --no-verbose "$FIREFOX_SOURCE_URL" -O - | tar -jx -C "$HOME"
echo "PATH=${HOME}/firefox:$PATH" >> "$GITHUB_ENV"
echo "FIREFOX_BIN=${HOME}/firefox/firefox" >> "$GITHUB_ENV"
if: contains(matrix.NAME, 'Firefox ESR')