Commit 6fc37aec authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play rustdesk: allow install latest 1.2.2 version and fix 1.1.9 install

parent 4f9559a9
#!/bin/sh
BASEPKGNAME=rustdesk
SUPPORTEDARCHES="x86_64 armhf"
PKGNAME=rustdesk
SUPPORTEDARCHES="x86_64"
VERSION="$2"
if [ "$VERSION" = "nightly" ] ; then
SUPPORTEDARCHES="x86_64 aarch64"
fi
DESCRIPTION="RustDesk — Display and control your PC and Android devices"
PRODUCTALT="'' nightly"
# we have no package rustdesk-nightly
if [ "$1" = "--remove" ] ; then
epm remove $BASEPKGNAME
exit
fi
URL="https://github.com/rustdesk/rustdesk/"
. $(dirname $0)/common.sh
arch=$(epm print info -a)
pkgtype=deb
if [ "$PKGNAME" = "$BASEPKGNAME-nightly" ] ; then
PKGNAME=rustdesk
# https://github.com/rustdesk/rustdesk/releases/download/nightly/rustdesk-1.2.0-aarch64.deb
MASK="nightly/$PKGNAME-$VERSION-$arch.$pkgtype"
else
if [ "$VERSION" = "1.1.9" ] ; then
#rustdesk-1.1.9-raspberry-armhf.deb
#rustdesk-1.1.9.deb
[ "$VERSION" = "*" ] && VERSION="[0-9].[0-9].[0-9]"
[ "$arch" = "armhf" ] && VERSION="$VERSION-raspberry-armhf"
MASK="[0-9]/$PKGNAME-$VERSION.$pkgtype"
#[ "$VERSION" = "*" ] && VERSION="[0-9].[0-9].[0-9]"
#[ "$arch" = "armhf" ] && VERSION="$VERSION-raspberry-armhf"
MASK="$PKGNAME-$VERSION.$pkgtype"
else
MASK="$PKGNAME-$VERSION-$arch.$pkgtype"
fi
PKGURL=$(epm tool eget --list --latest https://github.com/rustdesk/rustdesk/releases "$MASK") || fatal "Can't get package URL"
......
......@@ -58,13 +58,11 @@ filter_from_requires /etc/X11/xinit/Xsession /etc/default/locale /usr/etc/X11/xd
fi
set_autoreq 'yes'
#add_libs_requires
add_libs_requires
[ "$(epm print info -s)" = "alt" ] || exit 0
install_requires glib2 libappindicator-gtk3 libcairo libgdk-pixbuf libgtk+3 libpango libpulseaudio libuuid libX11 libXau libxcb libXdmcp libXfixes libXtst xdotool
add_unirequires xdotool
if ! epm install --skip-installed --no-remove python3-module-pynput ; then
case "$(epm print info -e)" in
......
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