From 7a83294841c84e65d147b142c32716bd8e2715d1 Mon Sep 17 00:00:00 2001 From: Mr-Update <37781396+Mr-Update@users.noreply.github.com> Date: Fri, 9 Feb 2024 21:38:15 +0100 Subject: [PATCH] Update _index.en.md --- content/self-host/client-deployment/_index.en.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/content/self-host/client-deployment/_index.en.md b/content/self-host/client-deployment/_index.en.md index 6a0735a..ef5d45b 100644 --- a/content/self-host/client-deployment/_index.en.md +++ b/content/self-host/client-deployment/_index.en.md @@ -47,13 +47,13 @@ function getLatest() $src = [System.Text.Encoding]::Unicode.GetBytes($Page.Content) $HTML.write($src) } - + # Current example link: https://github.com/rustdesk/rustdesk/releases/download/1.2.3/rustdesk-1.2.3-x86_64.exe $Downloadlink = ($HTML.Links | Where {$_.href -match '(.)+\/rustdesk\/rustdesk\/releases\/download\/\d{1}.\d{1,2}.\d{1,2}(.{0,3})\/rustdesk(.)+x86_64.exe'} | select -first 1).href - + # bugfix - sometimes you need to replace "about:" $Downloadlink = $Downloadlink.Replace('about:', 'https://github.com') - + $Version = "unknown" if ($Downloadlink -match './rustdesk/rustdesk/releases/download/(?.*)/rustdesk-(.)+x86_64.exe') { @@ -67,7 +67,7 @@ function getLatest() } # Create object to return - $Result = New-Object PSObject -Property + $Result = New-Object PSObject -Property @{ Version = $Version Downloadlink = $Downloadlink @@ -83,7 +83,7 @@ $rdver = ((Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Un if ($rdver -eq $RustDeskOnGitHub.Version) { - Write-Output "RustDesk $rdver is the newest version" + Write-Output "RustDesk $rdver is the newest version." Exit } @@ -358,4 +358,3 @@ fi echo "Password: $rustdesk_pw" echo "..............................................." ``` -