Commit 0700c1ba authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play firefox: update url

parent 18eae1ca
#!/bin/sh #!/bin/sh
PKGNAME=firefox-nightly PKGNAME=firefox-nightly
SUPPORTEDARCHES="x86_64" SUPPORTEDARCHES="x86_64 aarch64"
VERSION="$2" VERSION="$2"
DESCRIPTION="Firefox nightly from the official site" DESCRIPTION="Firefox nightly from the official site"
URL="https://ftp.mozilla.org/pub/firefox/nightly/latest-mozilla-central/" URL="https://ftp.mozilla.org/pub/firefox/nightly/latest-mozilla-central/"
...@@ -10,9 +10,8 @@ URL="https://ftp.mozilla.org/pub/firefox/nightly/latest-mozilla-central/" ...@@ -10,9 +10,8 @@ URL="https://ftp.mozilla.org/pub/firefox/nightly/latest-mozilla-central/"
warn_version_is_not_supported warn_version_is_not_supported
arch=x86_64 arch=$(epm print info -a)
VERSION="*"
PKGURL="https://ftp.mozilla.org/pub/firefox/nightly/latest-mozilla-central/firefox-$VERSION.en-US.linux-$arch.deb" PKGURL="https://ftp.mozilla.org/pub/firefox/nightly/latest-mozilla-central/firefox-$VERSION.en-US.linux-$arch.deb"
install_pkgurl install_pkgurl
...@@ -11,6 +11,14 @@ if [ "$VERSION" = "*" ] ; then ...@@ -11,6 +11,14 @@ 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)" VERSION="$(eget -O- https://www.mozilla.org/en-US/firefox/releases/ | grep -oP '\K[0-9]+\.[0-9]+\.[0-9]+' | sort -V | tail -n1)"
fi fi
PKGURL="https://ftp.mozilla.org/pub/firefox/releases/$VERSION/linux-x86_64/en-US/firefox-$VERSION.tar.bz2" arch=$(epm print info -a)
if [ "$(epm print compare "$VERSION" 136.0)" != "-1" ] ; then
ext="tar.xz"
else
ext="tar.bz2"
fi
PKGURL="https://ftp.mozilla.org/pub/firefox/releases/$VERSION/linux-$arch/en-US/firefox-$VERSION.$ext"
install_pack_pkgurl $VERSION install_pack_pkgurl $VERSION
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment