tis-anydesk-mac

6.1.0-1
The Remote Desktop for Mac
48 downloads
Download

  Description 

  • package : tis-anydesk-mac
  • version : 6.1.0-1
  • architecture : all
  • categories :
  • maintainer : Administrator
  • description : The Remote Desktop for Mac
  • locale : all
  • target_os : darwin
  • min_os_version :
  • max_os_version :
  • min_wapt_version :
  • sources : https://anydesk.com/en/downloads/mac-os
  • installed_size :
  • impacted_process : AnyDesk
  • description_fr :
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor :
  • licence :
  • signature_date : 2021-01-04T11:49:50.478821
  • Homepage : https://anydesk.com

  Setup.py 

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

def install():
    install_dmg("anydesk.dmg")

def uninstall():
    shutil.rmtree('/Applications/AnyDesk.app')
    # put here what to do when package is removed from host
    # implicit context variables are WAPT, control, user, params, run

def session_setup():
    print('Session setup for %s' % control.asrequirement())
    # put here what to do when package is configured inside a user session
    # implicit context variables are WAPT, control, user, params

def update_package():
    print('Download/Update package content from upstream binary sources')
    import platform

    # Getting proxy informations from WAPT settings
    proxy = {}
    if platform.system()=='Windows' and isfile(makepath(user_local_appdata(),'waptconsole','waptconsole.ini')):
        proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
        if proxywapt :
            proxy = {'http':proxywapt,'https':proxywapt}

    html_source = wgets("https://anydesk.com/fr/downloads/mac-os",proxies=proxy).splitlines()
    for line in html_source:
        if "download-info" in line:
            firstsplit = line.split(" ")[3]
            newversion = firstsplit.split("v")[1]
    print(newversion)

    # Specific app values
    app_name = control.name

    url_dl_deb = 'https://download.anydesk.com/anydesk.dmg'

    print('Latest ' + app_name + ' version is: ' + newversion)
    print('Download url for MacOS is: ' + url_dl_deb)


    # Downloading latest binaries
    if newversion != control.version.split('-')[0]:
        remove_file('anydesk.dmg')
        wget(url_dl_deb,'anydesk.dmg',proxies=proxy)
        pe = PackageEntry()
        pe.load_control_from_wapt(os.getcwd())
        pe.version = newversion +'-0'
        pe.save_control_to_wapt(os.getcwd())
    else:
        print('This package is already up-to-date')


if __name__ == '__main__':
    update_package()


def audit():
    pass
    # put here code to check periodically that state is matching expectations
    # return "OK", "WARNING" or "ERROR" to report status in console.
    # all print statement are reported too
    return "OK"
										

  Changelog 


No changelog
  manifest.sha256 
[["anydesk.dmg","f6459b38491f3a0bbdd01b366101391bbd8b5705c46f46879301e07014d9c38a"],["setup.py","233f5e2ccb621360def57a6ab00a594c2e74183ac041e3b8a68ecaafadef4cea"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/icon.png","61e27edac9e3eeb15cdea6114a0bc2f09a150e39add65fde398c03cd322aab0e"],["WAPT/control","d6a0bdd8107aba13313242103b8196c66e2228c7aef916504fbcd5e4f2e44998"]]