mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2025-06-23 03:02:12 +02:00
Update _index.en.md
This commit is contained in:
parent
76bfebfffb
commit
7a83294841
@ -47,13 +47,13 @@ function getLatest()
|
|||||||
$src = [System.Text.Encoding]::Unicode.GetBytes($Page.Content)
|
$src = [System.Text.Encoding]::Unicode.GetBytes($Page.Content)
|
||||||
$HTML.write($src)
|
$HTML.write($src)
|
||||||
}
|
}
|
||||||
|
|
||||||
# Current example link: https://github.com/rustdesk/rustdesk/releases/download/1.2.3/rustdesk-1.2.3-x86_64.exe
|
# 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
|
$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:"
|
# bugfix - sometimes you need to replace "about:"
|
||||||
$Downloadlink = $Downloadlink.Replace('about:', 'https://github.com')
|
$Downloadlink = $Downloadlink.Replace('about:', 'https://github.com')
|
||||||
|
|
||||||
$Version = "unknown"
|
$Version = "unknown"
|
||||||
if ($Downloadlink -match './rustdesk/rustdesk/releases/download/(?<content>.*)/rustdesk-(.)+x86_64.exe')
|
if ($Downloadlink -match './rustdesk/rustdesk/releases/download/(?<content>.*)/rustdesk-(.)+x86_64.exe')
|
||||||
{
|
{
|
||||||
@ -67,7 +67,7 @@ function getLatest()
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Create object to return
|
# Create object to return
|
||||||
$Result = New-Object PSObject -Property
|
$Result = New-Object PSObject -Property
|
||||||
@{
|
@{
|
||||||
Version = $Version
|
Version = $Version
|
||||||
Downloadlink = $Downloadlink
|
Downloadlink = $Downloadlink
|
||||||
@ -83,7 +83,7 @@ $rdver = ((Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Un
|
|||||||
|
|
||||||
if ($rdver -eq $RustDeskOnGitHub.Version)
|
if ($rdver -eq $RustDeskOnGitHub.Version)
|
||||||
{
|
{
|
||||||
Write-Output "RustDesk $rdver is the newest version"
|
Write-Output "RustDesk $rdver is the newest version."
|
||||||
Exit
|
Exit
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -358,4 +358,3 @@ fi
|
|||||||
echo "Password: $rustdesk_pw"
|
echo "Password: $rustdesk_pw"
|
||||||
echo "..............................................."
|
echo "..............................................."
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user