more build

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

No files matched your search

+5 -1
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