Commit ff8baf6a authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play telegram: fix beta (prerelease) install and update

parent 3356944c
...@@ -15,8 +15,9 @@ if [ "$VERSION" = "*" ] && ! is_glibc_enough 2.32 ; then ...@@ -15,8 +15,9 @@ if [ "$VERSION" = "*" ] && ! is_glibc_enough 2.32 ; then
fi fi
if [ "$VERSION" = "*" ] ; then if [ "$VERSION" = "*" ] ; then
if [ "$PKGNAME" != "$BASEPKGNAME" ] ; then if [ "$PKGNAME" = "$BASEPKGNAME-beta" ] ; then
prerelease="prelease" prerelease="prerelease"
VERSION="$VERSION.beta"
fi fi
# can't use get_github_tag (not every tag has binary release) # can't use get_github_tag (not every tag has binary release)
PKGURL=$(get_github_url "https://github.com/telegramdesktop/tdesktop/" "tsetup.$VERSION.tar.xz" $prerelease) PKGURL=$(get_github_url "https://github.com/telegramdesktop/tdesktop/" "tsetup.$VERSION.tar.xz" $prerelease)
...@@ -26,7 +27,7 @@ if [ "$VERSION" = "*" ] ; then ...@@ -26,7 +27,7 @@ if [ "$VERSION" = "*" ] ; then
fi fi
else else
PKGBASEURL="https://github.com/telegramdesktop/tdesktop/releases/download/v$VERSION" PKGBASEURL="https://github.com/telegramdesktop/tdesktop/releases/download/v$VERSION"
[ "$PKGNAME" = "$BASEPKGNAME" ] || VERSION="$VERSION.beta" [ "$PKGNAME" = "$BASEPKGNAME-beta" ] && VERSION="$VERSION.beta"
# version can be 1.2.3.beta or 1.2.3 # version can be 1.2.3.beta or 1.2.3
PKGURL="$PKGBASEURL/tsetup.$VERSION.tar.xz" PKGURL="$PKGBASEURL/tsetup.$VERSION.tar.xz"
fi fi
......
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