tis-rustdesk

1.3.8-3
RustDesk est une alternative de contrôle à distance open source complète pour l'auto-hébergement et la sécurité avec une configuration minimale
6914 téléchargements
Télécharger
Voir le résultat de la construction Voir l'analyse de VirusTotal
tis-rustdesk icon
  • package : tis-rustdesk
  • name : RustDesk
  • version : 1.3.8-3
  • categories : Utilities
  • maintainer : WAPT Team,Tranquil IT,Amel FRADJ
  • editor :
  • licence : opensource_free
  • locale : all
  • target_os : windows
  • impacted_process :
  • architecture : x86
  • signature_date : 2025-02-27 17:11
  • size : 10.33 Mo
  • homepage : https://rustdesk.com/
package           : tis-rustdesk
version           : 1.3.8-3
architecture      : x86
section           : base
priority          : optional
name              : RustDesk
categories        : Utilities
maintainer        : WAPT Team,Tranquil IT,Amel FRADJ
description       : RustDesk is a full-featured open source remote control alternative for self-hosting and security with minimal configuration
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.3
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : RustDesk est une alternative de contrôle à distance open source complète pour l'auto-hébergement et la sécurité avec une configuration minimale
description_pl    : RustDesk to w pełni funkcjonalna alternatywa zdalnego sterowania typu open source do samodzielnego hostingu i bezpieczeństwa przy minimalnej konfiguracji
description_de    : RustDesk ist eine voll funktionsfähige Open-Source-Fernsteuerungsalternative für Selbst-Hosting und Sicherheit mit minimaler Konfiguration
description_es    : RustDesk es una completa alternativa de control remoto de código abierto para el autoalojamiento y la seguridad con una configuración mínima
description_pt    : O RustDesk é uma alternativa de controlo remoto de código aberto com todas as funcionalidades para auto-hospedagem e segurança com configuração mínima
description_it    : RustDesk è un'alternativa di controllo remoto open source completa per l'auto-hosting e la sicurezza con una configurazione minima
description_nl    : RustDesk is een volledig open source alternatief voor afstandsbediening voor zelfbeheer en beveiliging met minimale configuratie
description_ru    : RustDesk - это полнофункциональная альтернатива удаленного управления с открытым исходным кодом для самостоятельного размещения и обеспечения безопасности с минимальной конфигурацией
audit_schedule    : 
editor            : 
keywords          : RustDesk
licence           : opensource_free
homepage          : https://rustdesk.com/
package_uuid      : 3e204e8f-6cc5-425f-bd1c-b20c54d5b377
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://github.com/rustdesk/rustdesk/releases
min_os_version    : 10
max_os_version    : 
icon_sha256sum    : 6e1b5881cfd9d438d6aff2c4f9c3f845a728072c75a61d637b842c95b6322a8c
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-02-27T17:11:17.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : e6rhSvnlQwhGxya7VBPTqgI4VYrmN9ks86XcafjbBfkFbsY/plN3j4Rw+cgU09QagTRkP1l3vzo2p3FeWaBDqm2eCuny5tFL//fvUO6oIePJ18OHqcesnESqzIzxHiIbVi2Lxev8ElNdzYfOInOtircNvtGK1eqEfivU52nkhxRYVsJOeGBFYZAgoWN8wgsJzkzfS35OnUKjz+eQ1prLpHO4Xj78c9IQOqg+lGPm7iy1iDAUijhOLwRpnSiqd5nX46Z1xtX+4JpIv9fd2ZSHetn6r1aSIRSrG67vQJKjSuW2YXCylpfCsC/ZO6Ogla6mC+BS6acz3Be2OVMErsfcLg==
# -*- coding: utf-8 -*-
from setuphelpers import *

r"""
{
   "key":"RustDesk",
   "name":"RustDesk",
   "version":"1.2.3.2",
   "install_date":"",
   "install_location":"C:\\Program Files\\RustDesk",
   "uninstall_string":"\"C:\\Program Files\\RustDesk\\RustDesk.exe\" --uninstall",
   "publisher":"RustDesk",
   "system_component":0,
   "win64":true
  }

"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls


def install():
    # Declaring local variables
    bin_name = glob.glob("rustdesk-*.exe")[0]
    # Installing the software

    nb=0
    while True:
        nb=nb+1

        try:
            install_exe_if_needed(
                bin_name,
                silentflags="--silent-install",
                key="RustDesk",
                min_version=control.get_software_version(),
                timeout=60
            )
            break

        except TimeoutExpired :
            if nb == 2:
                raise
            pass

    # Clear the uninstallkeys to avoid the no-code audit and uninstall
    uninstallkey.clear()


def audit():
    # Declaring local variables
    audit_status = "OK"
    detected_apps = installed_softwares("RustDesk")
    if detected_apps:
        installed_version = detected_apps[0]["version"]
        control.name = detected_apps[0]["name"]
    else:
        installed_version = ""
        control.name = control.package.split("-", 1)[-1].replace("-", " ").title()
    audit_version = False

    # Auditing software
    if not installed_version:
        print(f"{control.name} is not installed.")
        audit_status = "ERROR"
    elif audit_version and Version(installed_version, 4) < Version(control.get_software_version(), 4):
        print(f"{control.name} ({installed_version}) installed version should be: {control.get_software_version()}")
        audit_status = "WARNING"
    else:
        print(f'{control.name} ({installed_version if not installed_version in control.name else "" }) is installed.')
        audit_status = "OK"

    return audit_status


def uninstall():
    # Uninstalling the software
    for to_uninstall in installed_softwares("RustDesk"):
        print("Removing: %s (%s)" % (to_uninstall["name"], to_uninstall["version"]))
        killalltasks(ensure_list(control.impacted_process))
        run(uninstall_cmd(to_uninstall["key"])[:2], accept_returncodes=[0, 1, 3010])
        wait_uninstallkey_absent(to_uninstall["key"])
# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *
import glob


def update_package():
    # Declaration of local variables
    package_updated = False
    proxies = get_proxies_from_wapt_console()
    if not proxies:
        proxies = get_proxies()
    api_url = "https://api.github.com/repos/rustdesk/rustdesk/releases/latest"
    update_dict = {
        "latest_bin": {
            "windows-x64": "x86_64.exe",
            "windows-x86": "x86-sciter.exe",
        }
    }

    # Get data from API
    releases_dict = wgets(api_url, proxies=proxies, as_json=True)
    exe_found = False  # Flag pour indiquer la découverte d'un fichier .msi
    for release in releases_dict:
        if exe_found:
            break
        for asset in releases_dict["assets"]:
            if asset["browser_download_url"].endswith(
                update_dict["latest_bin"][f'{ensure_list(control.target_os)[0].split("(")[0]}-{ensure_list(control.architecture)[0]}']
            ):
                url_download = asset["browser_download_url"]
                filename = url_download.split("/")[-1]
                last_version = releases_dict["name"].replace("-",".")
                exe_found = True  # Mettre à jour le flag pour indiquer qu'un .exe a été trouvé
                break

    if not isfile(filename):
        package_updated = True
        wget(url_download, filename, proxies=proxies)

    # nettoyer les fichiers temporaires
    for f in glob.glob("*.exe"):
        if f != filename:
            remove_file(f)

    control.set_software_version(last_version)
    control.save_control_to_wapt()

    return package_updated
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
57f41d7ddbb58a5f8935a72dc04e0a13d4d0a97ffa8b8d13aff83ac71e67b6a9 : WAPT/control
6e1b5881cfd9d438d6aff2c4f9c3f845a728072c75a61d637b842c95b6322a8c : WAPT/icon.png
b57d6bc2f1a0b40a32b5841398f141a34ca43f69cb1c75b1ac261f227466958f : luti.json
cf9e824003c1ad3aa0b1b46046e678fb1774592f0bc037f76829f8cbd6e5e0a8 : rustdesk-1.3.8-x86-sciter.exe
bd643c45c2ec2342cc92e3bf04bfa70e7a576fce83fb7e14533d0c44f992061a : setup.py
e2d993178e4181d70ca54c50ac4cb37e51c341d9e62a9612f7416f33bdb4dda6 : update_package.py