mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2025-01-13 01:38:15 +01:00
Update _index.en.md
This commit is contained in:
parent
41673436b2
commit
8a348732e9
@ -24,8 +24,10 @@ $rustdesk_cfg="configstring"
|
|||||||
################################### Please Do Not Edit Below This Line #########################################
|
################################### Please Do Not Edit Below This Line #########################################
|
||||||
|
|
||||||
# Run as administrator and stays in the current directory
|
# Run as administrator and stays in the current directory
|
||||||
if (-Not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
|
if (-Not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator))
|
||||||
if ([int](Get-CimInstance -Class Win32_OperatingSystem | Select-Object -ExpandProperty BuildNumber) -ge 6000) {
|
{
|
||||||
|
if ([int](Get-CimInstance -Class Win32_OperatingSystem | Select-Object -ExpandProperty BuildNumber) -ge 6000)
|
||||||
|
{
|
||||||
Start-Process PowerShell -Verb RunAs -ArgumentList "-NoProfile -ExecutionPolicy Bypass -Command `"cd '$pwd'; & '$PSCommandPath';`"";
|
Start-Process PowerShell -Verb RunAs -ArgumentList "-NoProfile -ExecutionPolicy Bypass -Command `"cd '$pwd'; & '$PSCommandPath';`"";
|
||||||
Exit;
|
Exit;
|
||||||
}
|
}
|
||||||
@ -156,9 +158,9 @@ mount_point="/Volumes/RustDesk"
|
|||||||
echo "Downloading RustDesk Now"
|
echo "Downloading RustDesk Now"
|
||||||
|
|
||||||
if [[ $(arch) == 'arm64' ]]; then
|
if [[ $(arch) == 'arm64' ]]; then
|
||||||
curl -L https://github.com/rustdesk/rustdesk/releases/download/1.2.2/rustdesk-1.2.2-aarch64.dmg --output "$dmg_file"
|
curl -L https://github.com/rustdesk/rustdesk/releases/download/1.2.2/rustdesk-1.2.2-aarch64.dmg --output "$dmg_file"
|
||||||
else
|
else
|
||||||
curl -L https://github.com/rustdesk/rustdesk/releases/download/1.2.2/rustdesk-1.2.2-x86_64.dmg --output "$dmg_file"
|
curl -L https://github.com/rustdesk/rustdesk/releases/download/1.2.2/rustdesk-1.2.2-x86_64.dmg --output "$dmg_file"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Mount the DMG file to the specified mount point
|
# Mount the DMG file to the specified mount point
|
||||||
@ -239,7 +241,6 @@ if [ -f /etc/os-release ]; then
|
|||||||
UPSTREAM_ID="$(echo ${ID_LIKE,,} | sed s/\"//g | cut -d' ' -f1)"
|
UPSTREAM_ID="$(echo ${ID_LIKE,,} | sed s/\"//g | cut -d' ' -f1)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
elif type lsb_release >/dev/null 2>&1; then
|
elif type lsb_release >/dev/null 2>&1; then
|
||||||
# linuxbase.org
|
# linuxbase.org
|
||||||
OS=$(lsb_release -si)
|
OS=$(lsb_release -si)
|
||||||
@ -294,7 +295,6 @@ rustdesk --config $rustdesk_cfg
|
|||||||
|
|
||||||
systemctl restart rustdesk
|
systemctl restart rustdesk
|
||||||
|
|
||||||
|
|
||||||
echo "..............................................."
|
echo "..............................................."
|
||||||
# Check if the rustdesk_id is not empty
|
# Check if the rustdesk_id is not empty
|
||||||
if [ -n "$rustdesk_id" ]; then
|
if [ -n "$rustdesk_id" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user