rustdesk.sh 906 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
#!/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

28
epm install glib2 libappindicator-gtk3 libcairo libgdk-pixbuf libgtk+3 libpango libpulseaudio libuuid libX11 libXau libxcb libXdmcp libXfixes libXtst xdotool