more build

This commit is contained in:
rustdesk
2022-05-14 11:46:20 +08:00
parent 1cb0ad7de2
commit d01eb70b48
7 changed files with 102 additions and 7 deletions

View File

@@ -10,7 +10,11 @@ if [ "$1" = configure ]; then
if [ -e /etc/systemd/system/rustdesk.service ]; then
rm /etc/systemd/system/rustdesk.service
fi
sudo -H pip3 install pynput
version=$(python3 -V 2>&1 | grep -Po '(?<=Python )(.+)')
parsedVersion=$(echo "${version//./}")
if [[ "$parsedVersion" -gt "360" ]]; then
sudo -H pip3 install pynput
fi
cp /usr/share/rustdesk/files/systemd/rustdesk.service /etc/systemd/system/rustdesk.service
systemctl daemon-reload
systemctl enable rustdesk