From 33a9ab4d8b272420ee53f19326b699353eb6bbda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20=F0=9F=A6=84?= <43847817+codiflow@users.noreply.github.com> Date: Mon, 27 Oct 2025 21:56:03 +0100 Subject: [PATCH 1/5] Bump to 1.4.3 and fixed var name In line 23 the file `/etc/os-release` gets parsed and in some cases this sets the env variable `VERSION` which would override the rustdesk version variable breaking the script. So the var name was changed. --- static/configs/install-linux.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/static/configs/install-linux.sh b/static/configs/install-linux.sh index 7f8126e0..397f145c 100644 --- a/static/configs/install-linux.sh +++ b/static/configs/install-linux.sh @@ -1,7 +1,7 @@ #!/bin/bash # RustDesk version (manually set by now) -VERSION="1.3.9" +RD_VERSION="1.4.3" # Assign a random value to the password variable rustdesk_pw=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1) @@ -71,11 +71,11 @@ fi echo "Installing RustDesk" if [ "${ID}" = "debian" ] || [ "$OS" = "Ubuntu" ] || [ "$OS" = "Debian" ] || [ "${UPSTREAM_ID}" = "ubuntu" ] || [ "${UPSTREAM_ID}" = "debian" ]; then - wget https://github.com/rustdesk/rustdesk/releases/download/"${VERSION}"/rustdesk-"${VERSION}"-"${ARCH}".deb - apt-get install -fy ./rustdesk-"${VERSION}"-"${ARCH}".deb > null + wget https://github.com/rustdesk/rustdesk/releases/download/"${RD_VERSION}"/rustdesk-"${RD_VERSION}"-"${ARCH}".deb + apt-get install -fy ./rustdesk-"${RD_VERSION}"-"${ARCH}".deb > null elif [ "$OS" = "CentOS" ] || [ "$OS" = "RedHat" ] || [ "$OS" = "Fedora Linux" ] || [ "${UPSTREAM_ID}" = "rhel" ] ; then - wget https://github.com/rustdesk/rustdesk/releases/download/"${VERSION}"/rustdesk-"${VERSION}"-0."${ARCH}".rpm - yum localinstall ./rustdesk-"${VERSION}"-0."${ARCH}".rpm -y > null + wget https://github.com/rustdesk/rustdesk/releases/download/"${RD_VERSION}"/rustdesk-"${RD_VERSION}"-0."${ARCH}".rpm + yum localinstall ./rustdesk-"${RD_VERSION}"-0."${ARCH}".rpm -y > null else echo "Unsupported OS" # here you could ask the user for permission to try and install anyway From 13df725274b83131882547466df4c05a0d53efa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20=F0=9F=A6=84?= <43847817+codiflow@users.noreply.github.com> Date: Mon, 27 Oct 2025 21:56:34 +0100 Subject: [PATCH 2/5] Bump to 1.4.3 and fixed var name --- static/configs/install-mac.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/configs/install-mac.sh b/static/configs/install-mac.sh index 8b4f6f2e..e852c5c0 100644 --- a/static/configs/install-mac.sh +++ b/static/configs/install-mac.sh @@ -1,7 +1,7 @@ #!/bin/bash # RustDesk version (manually set by now) -VERSION="1.3.9" +RD_VERSION="1.4.3" # Assign the value random password to the password variable rustdesk_pw=$(openssl rand -hex 4) @@ -27,9 +27,9 @@ mount_point="/Volumes/RustDesk" echo "Downloading RustDesk Now" if [[ $(arch) == 'arm64' ]]; then -curl -L https://github.com/rustdesk/rustdesk/releases/download/"${VERSION}"/rustdesk-"${VERSION}"-aarch64.dmg --output "$dmg_file" +curl -L https://github.com/rustdesk/rustdesk/releases/download/"${RD_VERSION}"/rustdesk-"${RD_VERSION}"-aarch64.dmg --output "$dmg_file" else -curl -L https://github.com/rustdesk/rustdesk/releases/download/"${VERSION}"/rustdesk-"${VERSION}"-x86_64.dmg --output "$dmg_file" +curl -L https://github.com/rustdesk/rustdesk/releases/download/"${RD_VERSION}"/rustdesk-"${RD_VERSION}"-x86_64.dmg --output "$dmg_file" fi # Mount the DMG file to the specified mount point From 2b52cd9efec3c82dbd0badf6858dc339f9b08248 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20=F0=9F=A6=84?= <43847817+codiflow@users.noreply.github.com> Date: Mon, 27 Oct 2025 21:57:17 +0100 Subject: [PATCH 3/5] Bump to 1.4.3 and fixed var name --- static/configs/install.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/configs/install.bat b/static/configs/install.bat index cea2659d..cb17f46d 100644 --- a/static/configs/install.bat +++ b/static/configs/install.bat @@ -1,6 +1,6 @@ @echo off REM RustDesk version (manually set by now) -set version=1.3.9 +set rd_version=1.4.3 REM Assign the value random password to the password variable setlocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION @@ -20,7 +20,7 @@ REM ############################### Please Do Not Edit Below This Line ######### if not exist C:\Temp\ md C:\Temp\ cd C:\Temp\ -curl -L "https://github.com/rustdesk/rustdesk/releases/download/%version%/rustdesk-%version%-x86_64.exe" -o rustdesk.exe +curl -L "https://github.com/rustdesk/rustdesk/releases/download/%rd_version%/rustdesk-%rd_version%-x86_64.exe" -o rustdesk.exe rustdesk.exe --silent-install timeout /t 20 From b6148399a300de3a7ed4a7d42fc463eab62d66fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20=F0=9F=A6=84?= <43847817+codiflow@users.noreply.github.com> Date: Mon, 27 Oct 2025 21:58:03 +0100 Subject: [PATCH 4/5] Bump to 1.4.3 and fixed var name --- static/configs/install.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/configs/install.ps1 b/static/configs/install.ps1 index d7f907e9..3e85f325 100644 --- a/static/configs/install.ps1 +++ b/static/configs/install.ps1 @@ -1,7 +1,7 @@ $ErrorActionPreference= 'silentlycontinue' # RustDesk version (manually set by now) -$version = "1.3.9" +$rd_version = "1.4.3" # Assign the value random password to the password variable $rustdesk_pw=(-join ((65..90) + (97..122) | Get-Random -Count 12 | % {[char]$_})) @@ -21,7 +21,7 @@ if (-Not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdenti $rdver = ((Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\RustDesk\").Version) -if($rdver -eq $version) +if($rdver -eq $rd_version) { write-output "RustDesk $rdver is the newest version" @@ -34,7 +34,7 @@ If (!(Test-Path C:\Temp)) { cd C:\Temp -powershell Invoke-WebRequest "https://github.com/rustdesk/rustdesk/releases/download/$version/rustdesk-$version-x86_64.exe" -Outfile "rustdesk.exe" +powershell Invoke-WebRequest "https://github.com/rustdesk/rustdesk/releases/download/$rd_version/rustdesk-$rd_version-x86_64.exe" -Outfile "rustdesk.exe" Start-Process .\rustdesk.exe --silent-install -wait $ServiceName = 'Rustdesk' From 85a61c630892e5fd2fa2da0f5f4f964a0eca85b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20=F0=9F=A6=84?= <43847817+codiflow@users.noreply.github.com> Date: Mon, 27 Oct 2025 22:15:59 +0100 Subject: [PATCH 5/5] Fixed wrong version number in tmp file of install-mac.sh --- static/configs/install-mac.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/configs/install-mac.sh b/static/configs/install-mac.sh index e852c5c0..f218cd3e 100644 --- a/static/configs/install-mac.sh +++ b/static/configs/install-mac.sh @@ -18,7 +18,7 @@ if [[ $EUID -ne 0 ]]; then fi # Specify the path to the rustdesk.dmg file -dmg_file="/tmp/rustdesk-1.3.7.dmg" +dmg_file="/tmp/rustdesk-${RD_VERSION}.dmg" # Specify the mount point for the DMG (temporary directory) mount_point="/Volumes/RustDesk"