Commit e026f806 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play telegram: add direct URL support

parent 7e9f8002
...@@ -18,13 +18,18 @@ if [ "$VERSION" = "*" ] ; then ...@@ -18,13 +18,18 @@ if [ "$VERSION" = "*" ] ; then
if ! is_glibc_enough 2.28 ; then if ! is_glibc_enough 2.28 ; then
fatal "glibc is too old, upgrade your system." fatal "glibc is too old, upgrade your system."
fi fi
PKGURL=$(eget --list --latest https://github.com/telegramdesktop/tdesktop/releases "tsetup.$VERSION.tar.xz") #"
else else
VERSION="$VERSION*" PKGBASEURL="https://github.com/telegramdesktop/tdesktop/releases/download/v$VERSION"
[ "$PKGNAME" = "$BASEPKGNAME" ] || VERSION="$VERSION.beta"
# version can be 1.2.3.beta or 1.2.3
PKGURL="$PKGBASEURL/tsetup.$VERSION.tar.xz"
#if [ "$PKGNAME" = "$BASEPKGNAME" ] && ! epm tool eget --check-url "$PKGURL" ; then
# PKGURL="$PKGBASEURL/tsetup.$VERSION.beta.tar.xz"
#fi
fi fi
PKGURL=$(eget --list --latest https://github.com/telegramdesktop/tdesktop/releases "tsetup.$VERSION.tar.xz") #"
# override PKGNAME for beta version # override PKGNAME for beta version
echo "$PKGURL" | grep -q "beta.tar.xz" && override_pkgname "$BASEPKGNAME-beta" echo "$PKGURL" | grep -q "beta.tar.xz" && override_pkgname "$BASEPKGNAME-beta"
......
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