64gram.sh 526 Bytes
Newer Older
Vitaly Lipatov's avatar
Vitaly Lipatov committed
1 2 3 4 5
#!/bin/sh

PKGNAME=64Gram
SUPPORTEDARCHES="x86_64"
DESCRIPTION="64Gram (unofficial Telegram Desktop)"
6
TIPS="Run 'epm play 64gram=<version>' to install the version of the 64Gram Telegram client."
Vitaly Lipatov's avatar
Vitaly Lipatov committed
7 8 9 10 11 12 13 14 15 16 17

BRANCH="[0-9]"
VERSION=".*$BRANCH"
[ -n "$2" ] && [ "$2" != "beta" ] && VERSION="$2"

. $(dirname $0)/common.sh


PKGURL=$(epm tool eget --list --latest https://github.com/TDesktop-x64/tdesktop/releases "${PKGNAME}_${VERSION}_linux.zip") #"
[ -n "$PKGURL" ] || fatal "Can't get package URL"

18
epm --install pack $PKGNAME "$PKGURL"