webcord.sh 618 Bytes
Newer Older
X1mper's avatar
X1mper committed
1 2 3
#!/bin/sh

PKGNAME=WebCord
4
SUPPORTEDARCHES="x86_64 arm64"
X1mper's avatar
X1mper committed
5 6 7 8 9
VERSION="$2"
DESCRIPTION="A Discord and Spacebar client implemented directly without Discord API from the official github"

. $(dirname $0)/common.sh

10 11 12 13 14 15 16 17 18 19 20 21 22 23
arch="$(epm print info -a)"
case "$arch" in
    x86_64)
        arch=x64
        ;;
    aarch64)
        arch=arm64
        ;;
    *)
        fatal "$arch arch is not supported"
        ;;
esac


X1mper's avatar
X1mper committed
24 25
pkgtype=AppImage

26
PKGURL=$(epm tool eget --list --latest https://github.com/SpacingBat3/WebCord/releases "WebCord-$VERSION-$arch.$pkgtype")
X1mper's avatar
X1mper committed
27 28 29
[ -n "$PKGURL" ] || fatal "Can't get package URL"

epm install "$PKGURL"