@@ -312,6 +312,16 @@ Available commands:
312312 # - RISC-V & ARMv6: https://github.com/rustdesk/rustdesk-server/releases
313313 aSOFTWARE_AVAIL_G_HW_ARCH[$software_id,1]=0
314314 aSOFTWARE_AVAIL_G_HW_ARCH[$software_id,11]=0
315+ #------------------
316+ software_id=13
317+ aSOFTWARE_NAME[$software_id]='RustDesk Client'
318+ aSOFTWARE_DESC[$software_id]='open-source remote desktop client, written in Rust'
319+ aSOFTWARE_CATX[$software_id]=1
320+ aSOFTWARE_DOCS[$software_id]='https://dietpi.com/docs/software/remote_desktop/#rustdesk-client'
321+ aSOFTWARE_DEPS[$software_id]='6'
322+ # - RISC-V & ARMv6: https://github.com/rustdesk/rustdesk/releases
323+ aSOFTWARE_AVAIL_G_HW_ARCH[$software_id,1]=0
324+ aSOFTWARE_AVAIL_G_HW_ARCH[$software_id,11]=0
315325
316326 # Media Systems
317327 #--------------------------------------------------------------------------------
@@ -12304,6 +12314,19 @@ _EOF_
1230412314 unset -v rd_inst rd_data
1230512315 fi
1230612316
12317+ if To_Install 13 # RustDesk Client
12318+ then
12319+ case "$G_HW_ARCH" in
12320+ 2) local arch='armv7-sciter';;
12321+ 3) local arch='aarch64';;
12322+ *) local arch='x86_64';;
12323+ esac
12324+
12325+ local fallback_url="https://github.com/rustdesk/rustdesk/releases/download/1.4.5/rustdesk-1.4.5-$arch.deb"
12326+ Download_Install "$(curl -sSfL 'https://api.github.com/repos/rustdesk/rustdesk/releases/latest' | mawk -F\" "/^ *\"browser_download_url\": \".*\/rustdesk-[^\"\/]*-$arch\.deb\"$/{print \$4}")"
12327+ unset -v arch
12328+ fi
12329+
1230712330 if To_Install 176 uptime-kuma # Uptime Kuma: https://github.com/louislam/uptime-kuma/wiki/🔧-How-to-Install#-non-docker
1230812331 then
1230912332 local opt='/opt/uptime-kuma' mnt='/mnt/dietpi_userdata/uptime-kuma'
@@ -14465,6 +14488,11 @@ _EOF_
1446514488 G_EXEC rm -Rf /mnt/dietpi_userdata/rustdesk
1446614489 fi
1446714490
14491+ if To_Uninstall 13 # RustDesk Client
14492+ then
14493+ G_AGP rustdesk
14494+ fi
14495+
1446814496 if To_Uninstall 176 # Uptime Kuma
1446914497 then
1447014498 Remove_Service uptime-kuma 1 1
0 commit comments