Commit b7491d26 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add rustdesk support

parent c8eb90eb
#!/bin/sh
PKGNAME=rustdesk
SUPPORTEDARCHES="x86_64 armhf"
DESCRIPTION="RustTDesk — Display and control your PC and Android devices"
. $(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"
epm install $URL
cat <<EOF
Note: run
# serv rustdesk on
to enable needed rustdesk system service (daemon)
EOF
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCT=rustdesk
. $(dirname $0)/common.sh
subst '1iAutoProv:no' $SPEC
# put service file to the normal place
mkdir -p $BUILDROOT/etc/systemd/system/
cp $BUILDROOT/usr/share/rustdesk/files/systemd/rustdesk.service $BUILDROOT/etc/systemd/system/$PRODUCT.service
remove_file /usr/share/rustdesk/files/systemd/rustdesk.service
pack_file /etc/systemd/system/$PRODUCT.service
# TODO
# if [[ "$parsedVersion" -gt "360" ]]; then
# sudo -H pip3 install pynput
remove_file /usr/share/rustdesk/files/pynput_service.py
# filter_from_requires "python3(pynput.*"
echo "Categories=GNOME;GTK;Network;RemoteAccess;" >> $BUILDROOT/usr/share/applications/$PRODUCT.desktop
epm install glib2 libcairo libgdk-pixbuf libgtk+3 libpango libpulseaudio libuuid libX11 libXau libxcb libXdmcp libXfixes libXtst xdotool
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