#!/bin/sh PKGNAME=WebCord SUPPORTEDARCHES="x86_64 arm64" VERSION="$2" DESCRIPTION="A Discord and Spacebar client implemented directly without Discord API from the official github" . $(dirname $0)/common.sh arch="$(epm print info -a)" case "$arch" in x86_64) arch=x64 ;; aarch64) arch=arm64 ;; *) fatal "$arch arch is not supported" ;; esac pkgtype=AppImage PKGURL=$(epm tool eget --list --latest https://github.com/SpacingBat3/WebCord/releases "WebCord-$VERSION-$arch.$pkgtype") [ -n "$PKGURL" ] || fatal "Can't get package URL" epm install "$PKGURL"