Commit 268b2bb6 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play rustdesk: allow install nigthly version (latest 1.1.9 as stable)

parent 898eb52c
......@@ -3,16 +3,28 @@
PKGNAME=rustdesk
SUPPORTEDARCHES="x86_64 armhf"
DESCRIPTION="RustDesk — Display and control your PC and Android devices"
PRODUCTALT="stable nightly"
. $(dirname $0)/common.sh
arch=$($DISTRVENDOR -a)
[ "$arch" = "armhf" ] || arch="[0-9]"
pkgtype=deb
#rustdesk-1.1.9-raspberry-armhf.deb
#rustdesk-1.1.9.deb
URL=$(epm tool eget --list --latest https://github.com/rustdesk/rustdesk/releases "$PKGNAME-*$arch.$pkgtype") || fatal "Can't get package URL"
BRANCH=stable
if [ "$2" = "nightly" ] ; then
BRANCH=nightly
SUPPORTEDARCHES="x86_64 aarch64"
MASK="$PKGNAME-*$arch*.$pkgtype"
# https://github.com/rustdesk/rustdesk/releases/download/nightly/rustdesk-1.2.0-aarch64-unknown-linux-gnu-ubuntu-18.04.deb
URL=$(epm tool eget --list --latest https://github.com/rustdesk/rustdesk/releases "$MASK") || fatal "Can't get package URL"
else
[ "$arch" = "armhf" ] && arch="raspberry-armhf" || arch="[0-9].[0-9].[0-9]"
MASK="$PKGNAME-$arch.$pkgtype"
#rustdesk-1.1.9-raspberry-armhf.deb
#rustdesk-1.1.9.deb
fi
URL=$(epm tool eget --list --latest https://github.com/rustdesk/rustdesk/releases "$MASK") || fatal "Can't get package URL"
epm install $URL
cat <<EOF
......
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