Commit 1146564d authored by Ivan Mazhukin's avatar Ivan Mazhukin Committed by Vitaly Lipatov

epm play anydesk: fix PKGURL; use browser user agent (eterbug #17865)

parent ef0bee4b
......@@ -5,7 +5,7 @@ SUPPORTEDARCHES="x86_64"
VERSION="$2"
RELEASE="$3"
DESCRIPTION="AnyDesk from the official site"
URL="https://download.anydesk.com/linux/"
URL="https://anydesk.com/en/downloads/linux"
. $(dirname $0)/common.sh
......@@ -20,11 +20,14 @@ URL="https://download.anydesk.com/linux/"
PKGMASK="$(epm print constructname $PKGNAME "$VERSION" '' '' '_')"
if [ "$VERSION" = "*" ] ; then
PKGURL="$(eget --list --latest "https://download.anydesk.com/linux/$PKGMASK")"
PKGURL="$(eget -A --list --latest "https://anydesk.com/en/downloads/linux" "$PKGMASK")"
else
PKGURL="https://download.anydesk.com/linux/$PKGMASK"
fi
# Site requires browser User-Agent
export EGET_OPTIONS="-U"
install_pkgurl || exit
echo
......
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