Skip to content

Commit

Permalink
epm play firefox: fix PKGURL for xz archive format (eterbug #17838)
Browse files Browse the repository at this point in the history
  • Loading branch information
Boria138 authored and vitlav committed Dec 1, 2024
1 parent 540bf61 commit 4fe8940
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions play.d/firefox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@ URL="https://www.mozilla.org/en-US/firefox"

. $(dirname $0)/common.sh

if [ "$VERSION" = "*" ] ; then
VERSION="$(eget -O- https://www.mozilla.org/en-US/firefox/releases/ | grep -oP '\K[0-9]+\.[0-9]+\.[0-9]+' | sort -V | tail -n1)"
if [ "$VERSION" = "*" ]; then
VERSION="$(eget -O- https://www.mozilla.org/en-US/firefox/releases/ | \
grep -oP '[0-9]+\.[0-9]+(\.[0-9]+)?(?=/releasenotes/)' | \
sort -V | tail -n1)"
fi

PKGURL="https://ftp.mozilla.org/pub/firefox/releases/$VERSION/linux-x86_64/en-US/firefox-$VERSION.tar.bz2"
# --second-latest because firefox-133.0.tar.bz2.asc
PKGURL="$(eget --list --second-latest https://ftp.mozilla.org/pub/firefox/releases/$VERSION/linux-x86_64/en-US/ "firefox-$VERSION.tar.*")"

install_pack_pkgurl $VERSION

0 comments on commit 4fe8940

Please sign in to comment.